Developing REST Web Services Tutorial – not working

This topic contains 1 reply, has 2 voices, and was last updated by Profile photo of support-swapna support-swapna 6 years, 4 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #317388 Reply
    Profile photo of Ruchi

    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(

    #317392 Reply
    Profile photo of support-swapna


    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.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Developing REST Web Services Tutorial – not working