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
191 stars 98 forks source link

Missing Import-Package org.eclipse.persistence.internal.jaxb.many in jersey-all/jersey-min #174

Closed cyrilballagny closed 8 years ago

cyrilballagny commented 8 years ago

Hi, I am building some REST services with JSON serialization/deserialization relying on MOXy. An exception NoClassDefFoundError is thrown related to org.eclipse.persistence.internal.jaxb.many.CollectionValue when JAXB marshaller is created. Adding org.eclipse.persistence.internal.jaxb.many to list of Import-Packages in jersey-min and jersey-min fixes this issue. Could you add this import package statement when building Jersey-All and Jersey-Min (Maybe some other packages related to jaxb are missing but not used in my case) In any case, Thank you very much for your effort!

BryanHunt commented 8 years ago

Adding an import to jersey would couple it to MOXy and that is the wrong way to go. I would bring this issue up with the MOXy developers.

cyrilballagny commented 8 years ago

Indeed, I understand your point. Thank you for this quick answer.