users@glassfish.java.net

JAXBContext ClassCastException from osgi bundle with full glassfish platform,

From: <forums_at_java.net>
Date: Thu, 20 Oct 2011 08:15:15 -0500 (CDT)

 Hello,

Trying to deploy some bundle using JAXB, this bundle works perfectly on
Glassfish 3.1.1 web profile version, but strangely, the same bundle on
Glassfish 3.1.1 full platform give folloiwing exception:

 javax.xml.bind.JAXBException: ClassCastException: attempting to cast
bundle://2.0:1/javax/xml/bind/JAXBContext.class to
jar:file:/C:/progs/jee/glassfish/glassfish-3.1.1/glassfish3/glassfish/modules/endorsed/jaxb-api-osgi.jar!/javax/xml/bind/JAXBContext.class

Does it ring some bell to someone ?

Thanks, and regards,

Arnaud


--
[Message sent by forum member 'amergey']
View Post: http://forums.java.net/node/855100