This discussion is archived
2 Replies Latest reply: Mar 18, 2013 10:52 AM by 997538 RSS

JAX-RS webservice -deployment issue

997538 Newbie
Currently Being Moderated
I am trying to create a restful webservice in Eclipse OEPE + Weblogic 10.3.6. when using 'com.sun.jersey.spi.container.servlet.ServletContainer' i don't have any issues in deploying & running the service. (kept jersey jars in lib directory of the application).

but when using 'weblogic.jaxrs.server.portable.servlet.ServletContainer', getting class not found exception during deployment. Can anyone tell me which jar has this class that needs to be available on the classpath?

FYI: i have selected weblogic system libraries in the build path and JAX-RS project facet is selected.

Thanks
A
  • 1. Re: JAX-RS webservice -deployment issue
    user696 Explorer
    Currently Being Moderated
    This class is only available from WLS 12.1.1.0 'weblogic.jaxrs.server.portable.servlet.ServletContainer' please check below for weblogic 12c documentation which supports both classes
    weblogic.jaxrs.server.portable.servlet.ServletContainer
    com.sun.jersey.spi.container.servlet.ServletContainer
    http://docs.oracle.com/cd/E24329_01/web.1211/e24983/configure.htm#RESTF179

    For 10.3.6 only 'com.sun.jersey.spi.container.servlet.ServletContainer' is available.
    http://docs.oracle.com/cd/E23943_01/web.1111/e13734/rest.htm#WSADV572

    Regards,
    Sunil P
  • 2. Re: JAX-RS webservice -deployment issue
    997538 Newbie
    Currently Being Moderated
    Thanks Sunil. i was referring to the 12c docs.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points