Click here to Skip to main content
15,892,517 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am trying to create RESTClient in grails for reference implementation of REST service domain classes. I am getting following errors even after adding dependent jar files jersey-bundle-1.12.jar & jersey-0.7-ea.jar and other jars.


Error 2012-03-20 10:21:06,912 [T`enter code here`hread-7] ERROR application.RootResourceUriRules  - The ResourceConfig instance does not contain any root resource classes.
| Error 2012-03-20 10:21:06,912 [Thread-7] ERROR inject.Errors  - The following errors and warnings have been detected with resource and/or provider classes:
  SEVERE: Missing dependency for field: com.sun.ws.rest.spi.template.TemplateContext com.sun.ws.rest.impl.template.ViewableMessageBodyWriter.tc
| Error 2012-03-20 10:21:06,912 [Thread-7] ERROR servlet.SpringServlet  - Exception occurred when intialization
Message: The ResourceConfig instance does not contain any root resource classes.
    Line | Method
->>  103 | <init>             in com.sun.jersey.server.impl.application.RootResourceUriRules
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
|   1182 | _initiate          in com.sun.jersey.server.impl.application.WebApplicationImpl
|    161 | access$600 . . . . in     ''
|    698 | f                  in com.sun.jersey.server.impl.application.WebApplicationImpl$12
|    695 | f . . . . . . . .  in     ''
|    193 | processWithErrors  in com.sun.jersey.spi.inject.Errors
|    695 | initiate . . . . . in com.sun.jersey.server.impl.application.WebApplicationImpl
|    117 | initiate           in com.sun.jersey.spi.spring.container.servlet.SpringServlet
|    287 | initiate . . . . . in com.sun.jersey.spi.container.servlet.ServletContainer$InternalWebComponent
|    587 | load               in com.sun.jersey.spi.container.servlet.WebComponent
|    213 | init . . . . . . . in     ''
|    342 | init               in com.sun.jersey.spi.container.servlet.ServletContainer
|    516 | 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
|    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 2012-03-20 10:21:06,943 [Thread-7] ERROR [localhost].[/GrailsRESTClient]  - 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
->>  103 | <init>             in com.sun.jersey.server.impl.application.RootResourceUriRules
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
|   1182 | _initiate          in com.sun.jersey.server.impl.application.WebApplicationImpl
|    161 | access$600 . . . . in     ''
|    698 | f                  in com.sun.jersey.server.impl.application.WebApplicationImpl$12
|    695 | f . . . . . . . .  in     ''
|    193 | processWithErrors  in com.sun.jersey.spi.inject.Errors
|    695 | initiate . . . . . in com.sun.jersey.server.impl.application.WebApplicationImpl
|    117 | initiate           in com.sun.jersey.spi.spring.container.servlet.SpringServlet
|    287 | initiate . . . . . in com.sun.jersey.spi.container.servlet.ServletContainer$InternalWebComponent
|    587 | load               in com.sun.jersey.spi.container.servlet.WebComponent
|    213 | init . . . . . . . in     ''
|    342 | init               in com.sun.jersey.spi.container.servlet.ServletContainer
|    516 | 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
|    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 2012-03-20 10:21:06,958 [main] ERROR core.StandardContext  - Error listenerStart
| Error 2012-03-20 10:21:06,958 [main] ERROR core.StandardContext  - Context [/GrailsRESTClient] startup failed due to previous errors



Any idea about above error & how to solve it ? Thanks!!
Posted
Updated 19-Mar-12 20:17pm
v2

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900