I played a bit more with jersey 1.3 and removing the dynamic imports in
our rest module.
Now getting java.lang.ExceptionInInitializerError
at
org.glassfish.admin.rest.LazyJerseyInit.exposeContext(LazyJerseyInit.java:76)
at
org.glassfish.admin.rest.RestAdapter.exposeContext(RestAdapter.java:412)
at org.glassfish.admin.rest.RestAdapter.service(RestAdapter.java:166)
at
com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:166)
at
com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:113)
at
com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:246)
at
com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:803)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:706)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:987)
at
com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:217)
at
com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
at
com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
at
com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
at
com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
at
com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:526)
at
com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:507)
at java.lang.Thread.run(Thread.java:637)
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)
javax.ws.rs.core.MediaType class is in jsr311-api.1.1.1.jar
but this jar does not import *anything*, only export packages in its
manifest...and was build on 11/09/2009
How can it find com.sun.ws.rs.ext.RuntimeDelegateImpl ?
this class is in jersey-client.jar which is not supposed to be used by
our rest admin module anyway...(only for tests)
It is not even exported from this jar.
In fact this jar manifest contains:
Private-Package: com.sun.ws.rs.ext
So I am not sure at all how this is supposed to work at all...
Please, clarify this before the meeting...
Ludo