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

Invalid services defined in com.eclipsesource.jaxrs.jersey.min #131

Closed dvanherbergen closed 8 years ago

dvanherbergen commented 8 years ago

The com.eclipsesource.jaxrs.jersey-min bundle contains service definitions in META-INF/services for service providers, which are not offered by the bundle.

When using this bundle with pax-web, pax-web scans the bundle for it services, finds the META-INF/services/javax.servlet.ServletContainerInitializer file that contains a reference to org.glassfish.jersey.servlet.init.JerseyServletContainerInitializer. Next pax-web tries to load this class, but because it is not included in the bundle, it fails with a warning.

IMHO, the javax.servlet.ServletContainerInitializer file should be removed from the META-INF/services folder.

dvanherbergen commented 8 years ago

Sorry, I just rechecked and the class is indeed included in the jar, it appears there may be a problem with the class loading mechanism in pax-web. So there is no problem with the build and this issue can be closed.

hstaudacher commented 8 years ago

ahh, if only any issue would solve itself :). Anyway thanks for reporting.