web services – com.sun.jersey.api.container.ContainerException: The ResourceConfig instance does not contain any root resource classes

web services – com.sun.jersey.api.container.ContainerException: The ResourceConfig instance does not contain any root resource classes

You have the HelloWorldService.java in the wrong source folder. It must be in src/main/java not in src/main/resources. Its a big big difference!

It means that your Java code has not been compiled and thats why you get the error. No class that can handle the request.

Take a look at the Maven Standard Directory Layout.

Yes, its a problem in Eclipse Indigo while developing RESTful web services in Java using Maven because it doesnt create correct directory structure. So, deleting the given source directory and adding source as src/main/java as @maba rightly mentioned is the best workaround.
You may refer this for detailed explanation on developing RESTful web services in Java in Eclipse Indigo using Maven…

http://kausalmalladi.blogspot.in/2012/11/developing-restful-java-web-service-in.html

web services – com.sun.jersey.api.container.ContainerException: The ResourceConfig instance does not contain any root resource classes

Leave a Reply

Your email address will not be published.