Wednesday, April 27, 2011

The way how I resolved "The ResourceConfig instance does not contain any root resource classes" problem

Check new series of the articles. Review and user experience on test management systems. Functionality and usability.

While passing the tutorial for  JAX-RS services in Eclipse I faced the problem that as it turned the pretty much common for the rookies. When I tried to publish the service I got the following error message from GlassFish:

Deployment Error for module: Services: Exception while loading the app : java.lang.Exception: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: org.apache.catalina.LifecycleException: com.sun.jersey.api.container.ContainerException: The ResourceConfig instance does not contain any root resource classes.

Any solution I tried to apply didn't work. However the valid solution was pretty much simple. So if you have the same problem try to just to build your project first before service publishing :) It worked for me and hope will work for you as well.

1 comment:

  1. Tried to "Clean and Build" and then Deploy but still doesn't work