Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Apricot » Missing com.sun.ws.rs.ext.RuntimeDelegateImpl class
Missing com.sun.ws.rs.ext.RuntimeDelegateImpl class [message #816348] Thu, 08 March 2012 13:46
Matt Butler is currently offline Matt Butler
Messages: 3
Registered: March 2012
Location: Ottawa, Ont, Canada
Junior Member

Hi,

I pulled Apricot from git yesterday and managed to get it to build. Today I've tried out the Hello-World-Plugin sample on the github page //github.com/nuxeo/org.eclipse.ecr/wiki/Hello-World-Plugin . When I git the URL associated with the JAX-RS site, I get java.lang.ClassNotFoundException: com.sun.ws.rs.ext.RuntimeDelegateImpl (full stack trace below).

The 3 Jersey bundles are there in the run configuration

com.sun.jersey.jersey-core (1.11.0)
com.sun.jersey.jersey-server (1.11.0)
com.sun.jersey.jersey-servlet (1.11.0)

But that class isn't in any of those bundles. I note that in Jersey 1.12 that class is now in a jersey-client jar, but I haven't gone back to figure out where it was in jersey 1.11.

Unfortunately, I'm a Maven/Eclipse / Tycho newbie, so I can't figure out how to replace the references to jersey 1.11 with jersey 1.12 and add jersey-client, but I'm hoping that there's a Jersey 1.11 based solution out there within easy reach.

Any help appreciated!

java.lang.ExceptionInInitializerError
at org.eclipse.ecr.automation.server.jaxrs.io.JsonRequestReader.<clinit>(JsonRequestReader.java:43)
at org.eclipse.ecr.automation.server.jaxrs.AutomationModule.setupSingletons(AutomationModule.java:49)
at org.eclipse.ecr.automation.server.jaxrs.AutomationModule.getSingletons(AutomationModule.java:65)
at org.eclipse.ecr.web.jaxrs.ApplicationFragment.getSingletons(ApplicationFragment.java:112)
at org.eclipse.ecr.web.jaxrs.ApplicationHost.getSingletons(ApplicationHost.java:187)
at com.sun.jersey.api.core.ApplicationAdapter.<init>(ApplicationAdapter.java:56)
at org.eclipse.ecr.web.jaxrs.servlet.ApplicationServlet.init(ApplicationServlet.java:85)
at org.eclipse.ecr.web.jaxrs.servlet.RequestChain.init(RequestChain.java:69)
at org.eclipse.ecr.web.jaxrs.servlet.ServletHolder.lazyInit(ServletHolder.java:110)
at org.eclipse.ecr.web.jaxrs.servlet.ServletHolder.service(ServletHolder.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:126)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.eclipse.equinox.http.jetty.internal.HttpServerManager$InternalHttpServiceServlet.service(HttpServerManager.java:318)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:322)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:924)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: com.sun.ws.rs.ext.RuntimeDelegateImpl
at javax.ws.rs.ext.RuntimeDelegate.findDelegate(RuntimeDelegate.java:122)
at javax.ws.rs.ext.RuntimeDelegate.getInstance(RuntimeDelegate.java:91)
at javax.ws.rs.core.MediaType.<clinit>(MediaType.java:44)
... 29 more
Caused by: java.lang.ClassNotFoundException: com.sun.ws.rs.ext.RuntimeDelegateImpl
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:506)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at javax.ws.rs.ext.FactoryFinder.newInstance(FactoryFinder.java:62)
at javax.ws.rs.ext.FactoryFinder.find(FactoryFinder.java:155)
at javax.ws.rs.ext.RuntimeDelegate.findDelegate(RuntimeDelegate.java:105)
... 31 more
Previous Topic:Error on create document/folder
Next Topic:Building Apricot from the Eclipse Git repo
Goto Forum:
  


Current Time: Wed Jul 23 10:10:23 EDT 2014

Powered by FUDForum. Page generated in 0.01647 seconds