This thread has been locked & this forum has been archived.
Please post new topics to General Development
Author Message

Joined: Mar 27, 2006
Posts: 1

I imported the project as listed on the tutorial page. I am using JEE 5 but still getting this error.


Check the error I am getting;

SEVERE: Servlet /restdemo threw load() exception
com.sun.jersey.api.container.ContainerException: The ResourceConfig instance does not contain any root resource classes.
at com.sun.jersey.server.impl.application.WebApplicationImpl.processRootResources(
at com.sun.jersey.server.impl.application.WebApplicationImpl.initiate(
at com.sun.jersey.server.impl.application.WebApplicationImpl.initiate(
at com.sun.jersey.spi.container.servlet.ServletContainer.initiate(
at com.sun.jersey.spi.container.servlet.ServletContainer$InternalWebComponent.initiate(
at com.sun.jersey.spi.container.servlet.WebComponent.load(
at com.sun.jersey.spi.container.servlet.WebComponent.init(
at com.sun.jersey.spi.container.servlet.ServletContainer.init(
at com.sun.jersey.spi.container.servlet.ServletContainer.init(
at javax.servlet.GenericServlet.init(
at org.apache.catalina.core.StandardWrapper.loadServlet(
at org.apache.catalina.core.StandardWrapper.load(
at org.apache.catalina.core.StandardContext.loadOnStartup(
at org.apache.catalina.core.StandardContext.start(
at org.apache.catalina.core.ContainerBase.addChildInternal(
at org.apache.catalina.core.ContainerBase.addChild(
at org.apache.catalina.core.StandardHost.addChild(
at org.apache.catalina.startup.HostConfig.deployDirectory(
at org.apache.catalina.startup.HostConfig.deployDirectories(
at org.apache.catalina.startup.HostConfig.deployApps(
at org.apache.catalina.startup.HostConfig.start(
at org.apache.catalina.startup.HostConfig.lifecycleEvent(
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(
at org.apache.catalina.core.ContainerBase.start(
at org.apache.catalina.core.StandardHost.start(
at org.apache.catalina.core.ContainerBase.start(
at org.apache.catalina.core.StandardEngine.start(
at org.apache.catalina.core.StandardService.start(
at org.apache.catalina.core.StandardServer.start(
at org.apache.catalina.startup.Catalina.start(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at org.apache.catalina.startup.Bootstrap.start(
at org.apache.catalina.startup.Bootstrap.main(
 View user's profile Send private message  
Reply with quote Back to top

Joined: Nov 11, 2010
Posts: 2907


I could not replicate this issue with MyEclipse 9.

Can you please answer some more questions for me ?

1) Share your build id from Help > About MyEclipse Enterprise Workbench > Build Id. Paste the Build Id here.

2) Did you import the example from this link ?

3) To which App Server are you deploying the project to?

4) Here are the steps I followed :

a) Downloaded the file from the tutorial page.
b) File > Import > Existing Projects into Workspace > Select archive file. Upgrade the project when it prompts to be compatible for MyEclipse 9.
c) Right click project > Run As > MyEclipse Server Configuration > MyEclipse Tomcat.
d) Right click project > MyEclipse > Test with REST webservices explorer
e) You can test it as explained in the Section 5 of the tutorial.

Let me know how this works for you.

MyEclipse Support
 View user's profile Send private message  
Reply with quote Back to top
All times are GMT - 6 Hours
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
® 2014 - Genuitec, LLC.