mehandih / grails-jaxrs

Automatically exported from code.google.com/p/grails-jaxrs
0 stars 0 forks source link

ERROR on latest Grails 2.2.1: "The ResourceConfig instance does not contain any root resource classes." #75

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

- Follow the installation instructions on the page
- Fix the Spock problems in the config

What is the expected output? What do you see instead?

mdesales@mdesales-desktop-vm:~/dev/tap-grails$ grails run-app
| Running Grails application
| Error 2013-04-23 09:26:15,593 [localhost-startStop-1] ERROR 
application.RootResourceUriRules  - The ResourceConfig instance does not 
contain any root resource classes.
| Error 2013-04-23 09:26:15,597 [localhost-startStop-1] ERROR 
servlet.SpringServlet  - Exception occurred when intialization
Message: The ResourceConfig instance does not contain any root resource classes.
    Line | Method
->>   99 | <init>             in 
com.sun.jersey.server.impl.application.RootResourceUriRules
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
|   1300 | _initiate          in 
com.sun.jersey.server.impl.application.WebApplicationImpl
|    163 | access$700 . . . . in     ''
|    769 | f                  in 
com.sun.jersey.server.impl.application.WebApplicationImpl$13
|    765 | f . . . . . . . .  in     ''
|    193 | processWithErrors  in com.sun.jersey.spi.inject.Errors
|    765 | initiate . . . . . in 
com.sun.jersey.server.impl.application.WebApplicationImpl
|    117 | initiate           in 
com.sun.jersey.spi.spring.container.servlet.SpringServlet
|    319 | initiate . . . . . in 
com.sun.jersey.spi.container.servlet.ServletContainer$InternalWebComponent
|    609 | load               in 
com.sun.jersey.spi.container.servlet.WebComponent
|    210 | init . . . . . . . in     ''
|    374 | init               in 
com.sun.jersey.spi.container.servlet.ServletContainer
|    557 | init . . . . . . . in     ''
|     51 | init               in org.grails.jaxrs.web.JerseyServlet
|    174 | init . . . . . . . in org.grails.jaxrs.web.JaxrsContext
|    164 | init               in     ''
|     45 | contextInitialized in org.grails.jaxrs.web.JaxrsListener
|    334 | innerRun           in java.util.concurrent.FutureTask$Sync
|    166 | run . . . . . . .  in java.util.concurrent.FutureTask
|   1145 | runWorker          in java.util.concurrent.ThreadPoolExecutor
|    615 | run . . . . . . .  in java.util.concurrent.ThreadPoolExecutor$Worker
^    722 | run                in java.lang.Thread
| Error 2013-04-23 09:26:15,635 [localhost-startStop-1] ERROR 
[localhost].[/tap-grails]  - Exception sending context initialized event to 
listener instance of class org.grails.jaxrs.web.JaxrsListener
Message: The ResourceConfig instance does not contain any root resource classes.
    Line | Method
->>   99 | <init>             in 
com.sun.jersey.server.impl.application.RootResourceUriRules
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
|   1300 | _initiate          in 
com.sun.jersey.server.impl.application.WebApplicationImpl
|    163 | access$700 . . . . in     ''
|    769 | f                  in 
com.sun.jersey.server.impl.application.WebApplicationImpl$13
|    765 | f . . . . . . . .  in     ''
|    193 | processWithErrors  in com.sun.jersey.spi.inject.Errors
|    765 | initiate . . . . . in 
com.sun.jersey.server.impl.application.WebApplicationImpl
|    117 | initiate           in 
com.sun.jersey.spi.spring.container.servlet.SpringServlet
|    319 | initiate . . . . . in 
com.sun.jersey.spi.container.servlet.ServletContainer$InternalWebComponent
|    609 | load               in 
com.sun.jersey.spi.container.servlet.WebComponent
|    210 | init . . . . . . . in     ''
|    374 | init               in 
com.sun.jersey.spi.container.servlet.ServletContainer
|    557 | init . . . . . . . in     ''
|     51 | init               in org.grails.jaxrs.web.JerseyServlet
|    174 | init . . . . . . . in org.grails.jaxrs.web.JaxrsContext
|    164 | init               in     ''
|     45 | contextInitialized in org.grails.jaxrs.web.JaxrsListener
|    334 | innerRun           in java.util.concurrent.FutureTask$Sync
|    166 | run . . . . . . .  in java.util.concurrent.FutureTask
|   1145 | runWorker          in java.util.concurrent.ThreadPoolExecutor
|    615 | run . . . . . . .  in java.util.concurrent.ThreadPoolExecutor$Worker
^    722 | run                in java.lang.Thread
| Error 2013-04-23 09:26:15,640 [localhost-startStop-1] ERROR 
core.StandardContext  - Error listenerStart
| Error 2013-04-23 09:26:15,646 [localhost-startStop-1] ERROR 
core.StandardContext  - Context [/tap-grails] startup failed due to previous 
errors
| Server running. Browse to http://localhost:8080/tap-grails

What version of the product are you using? On what operating system?

- Grails 2.2.1
- Latest plugin as of 04/23/2013
- Ubuntu Linux 64bit
- JDK 7

Original issue reported on code.google.com by marcellodesales on 23 Apr 2013 at 4:38

GoogleCodeExporter commented 8 years ago
After installing the plugin and resolving the issues, I just tried doing 
"grails clean" and the server started correctly!

Original comment by marcellodesales on 24 Apr 2013 at 1:47

GoogleCodeExporter commented 8 years ago

Original comment by n...@10ne.org on 25 Apr 2013 at 7:08