« Return to Thread: 1.0.3 - No such property: context for class: java.lang.String

Re: 1.0.3 - No such property: context for class: java.lang.String

by Graeme Rocher-2 :: Rate this Message:

Reply to Author | View in Thread

I would say the problem is caused by this code in Package.groovy

    // Get the application context path by looking for a property
named 'app.context' in the following order of precedence:
    // System properties
    // application.properties
    // config
    // default to grailsAppName if not specified

    serverContextPath = System.getProperty("app.context")
    serverContextPath = serverContextPath ?:
Ant.antProject.properties.'app.context'
    serverContextPath = serverContextPath ?: config.grails.app.context
    serverContextPath = serverContextPath ?: grailsAppName


The third ternary

Cheers

On Thu, Jul 17, 2008 at 7:44 PM, Marc Palmer <marc@...> wrote:

>
> Ack!
>
> Upgraded a perfectly good 1.0.2 project to 1.0.3 and after a clean it still
> won't start:
>
>  [groovyc] Compiling 1 source file to
> /Users/marc/.grails/1.0.3/projects/Cobra/classes
> Could not execute method context.
> No such property: context for class: java.lang.String
>
> I have commented out all the per-env log stuff (which should work - breaking
> that is a regression) and anything that mentions "context" e.g. I use FCK
> editor which uses "web.app.context.path" settings. Anyway, all commented
> out, still broken.
>
> Is there any info on this regression and the workarounds? It seems rather
> painful...
>
> Marc
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>   http://xircles.codehaus.org/manage_email
>
>
>



--
Graeme Rocher
Grails Project Lead
G2One, Inc. Chief Technology Officer
http://www.g2one.com

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


 « Return to Thread: 1.0.3 - No such property: context for class: java.lang.String