MyEclipse Forums
This thread has been locked & this forum has been archived.
Please post new topics to General Development
View previous topic Printable version Log in to check your private messages View next topic
Author Message
Post subject: Developing REST Web Services Tutorial - not working  PostPosted: Jun 08, 2011 - 11:05 PM

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
Post subject: RE: Developing REST Web Services Tutorial - not working  PostPosted: Jun 09, 2011 - 06:24 AM

Joined: Nov 11, 2010
Posts: 2676


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
Display posts from previous:     
Jump to:  
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.
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group