Skip to content
This repository has been archived by the owner on Oct 8, 2023. It is now read-only.

getting error Bootstrap file #3

Closed
kaushalaspire opened this issue May 16, 2013 · 1 comment
Closed

getting error Bootstrap file #3

kaushalaspire opened this issue May 16, 2013 · 1 comment
Labels

Comments

@kaushalaspire
Copy link

when line is executing
JSON.registerObjectMarshaller(new EasyuiDomainClassMarshaller(true, grailsApplication))

getting error

| Error 2013-05-16 10:05:24,913 [localhost-startStop-1] ERROR context.GrailsContextLoader - Error initializing the application: No such property: grailsApplication for class: BootStrap
Message: No such property: grailsApplication for class: BootStrap
Line | Method
->> 11 | doCall in BootStrap$_closure1


| 308 | evaluateEnvironmentSpecificBlock in grails.util.Environment
| 301 | executeForEnvironment . . . . . in ''
| 277 | executeForCurrentEnvironment in ''
| 303 | innerRun . . . . . . . . . . . . in java.util.concurrent.FutureTask$Sync
| 138 | run in java.util.concurrent.FutureTask
| 886 | runTask . . . . . . . . . . . . in java.util.concurrent.ThreadPoolExecutor$Worker
| 908 | run in ''
^ 662 | run . . . . . . . . . . . . . . in java.lang.Thread
| Error 2013-05-16 10:05:24,983 [localhost-startStop-1] ERROR context.GrailsContextLoader - Error initializing Grails: No such property: grailsApplication for class: BootStrap
Message: No such property: grailsApplication for class: BootStrap
Line | Method
->> 11 | doCall in BootStrap$_closure1


| 308 | evaluateEnvironmentSpecificBlock in grails.util.Environment
| 301 | executeForEnvironment . . . . . in ''
| 277 | executeForCurrentEnvironment in ''
| 303 | innerRun . . . . . . . . . . . . in java.util.concurrent.FutureTask$Sync
| 138 | run in java.util.concurrent.FutureTask
| 886 | runTask . . . . . . . . . . . . in java.util.concurrent.ThreadPoolExecutor$Worker
| 908 | run in ''
^ 662 | run . . . . . . . . . . . . . . in java.lang.Thread
| Error 2013-05-16 10:05:25,033 [localhost-startStop-1] ERROR [localhost].[/person-demo] - Exception sending context initialized event to listener instance of class org.codehaus.groovy.grails.web.context.GrailsContextLoaderListener
Message: Error executing bootstraps; nested exception is groovy.lang.MissingPropertyException: No such property: grailsApplication for class: BootStrap
Line | Method
->> 303 | innerRun in java.util.concurrent.FutureTask$Sync


| 138 | run in java.util.concurrent.FutureTask
| 886 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker
| 908 | run in ''
^ 662 | run . . in java.lang.Thread

Caused by MissingPropertyException: No such property: grailsApplication for class: BootStrap
->> 11 | doCall in BootStrap$_closure1


| 308 | evaluateEnvironmentSpecificBlock in grails.util.Environment
| 301 | executeForEnvironment in ''
| 277 | executeForCurrentEnvironment in ''
| 303 | innerRun in java.util.concurrent.FutureTask$Sync
| 138 | run in java.util.concurrent.FutureTask
| 886 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker
| 908 | run in ''
^ 662 | run . . in java.lang.Thread
| Error 2013-05-16 10:05:25,058 [localhost-startStop-1] ERROR core.StandardContext - Error listenerStart
| Error 2013-05-16 10:05:25,105 [localhost-startStop-1] ERROR core.StandardContext - Context [/person-demo] startup failed due to previous errors
| Server running. Browse to http://localhost:8090/person-demo
| Application loaded in interactive mode. Type 'stop-app' to shutdown.
| Compiling 1 source files.
grails> stop-app
| Stopping Grails server
grails> clean
| Application cleaned.
grails> -Dserver.port=8090 run-app
| Compiling 282 source files

| Running Grails application

Configuring Spring Security Core ...
... finished configuring Spring Security Core
| Server running. Browse to http://localhost:8090/person-demo
| Application loaded in interactive mode. Type 'stop-app' to shutdown.
| Enter a script name to run. Use TAB for completion:

@leandrogehlen
Copy link
Owner

you have not declared the property "grailsApplication" in BootStrap. See the second line of BootStrap class

import grails.converters.JSON
import org.codehaus.groovy.grails.commons.GrailsApplication
import org.grails.plugins.easyui.EasyuiDomainClassMarshaller

...

class BootStrap {

    GrailsApplication grailsApplication

    def init = { servletContext ->       
        JSON.registerObjectMarshaller(new EasyuiDomainClassMarshaller(true, grailsApplication))
        ...
    }
    ...
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants