hstaudacher / osgi-jax-rs-connector

An OSGi - JAX-RS 2.0 Connector, software repository available on the link below
http://hstaudacher.github.io/osgi-jax-rs-connector
Other
190 stars 98 forks source link

Problem when a service is unregistered [Karaf] #102

Closed jhernandezb closed 8 years ago

jhernandezb commented 9 years ago

Based on the example of jersey as a http service Http Service Example i'm able to get working with this, but when the bundle is unregistered gets an error

Caused by: java.lang.ClassNotFoundException: org.glassfish.jersey.examples.osgihttpservice.JerseyApplication not found by com.eclipsesource.jaxrs.jersey-all [92]
    at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1556)
    at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:77)
    at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1993)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:358)[:1.7.0_75]
    at java.lang.Class.forName0(Native Method)[:1.7.0_75]
    at java.lang.Class.forName(Class.java:191)[:1.7.0_75]
    at org.glassfish.jersey.internal.util.ReflectionHelper$7.run(ReflectionHelper.java:407)[92:com.eclipsesource.jaxrs.jersey-all:2.17.0]
    at org.glassfish.jersey.internal.util.ReflectionHelper$7.run(ReflectionHelper.java:397)[92:com.eclipsesource.jaxrs.jersey-all:2.17.0]
    at java.security.AccessController.doPrivileged(Native Method)[:1.7.0_75]
    at org.glassfish.jersey.servlet.WebComponent.createResourceConfig(WebComponent.java:491)[92:com.eclipsesource.jaxrs.jersey-all:2.17.0]

What this cause is when the bundle is updated unregister fails and it have to be restarted manually

hstaudacher commented 9 years ago

Where does this class org.glassfish.jersey.examples.osgihttpservice.JerseyApplication life? In your application bundle?

hstaudacher commented 8 years ago

no response so I will close this issue. Please feel free to reopen.