users@glassfish.java.net

(no subject)

From: <forums_at_java.net>
Date: Wed, 10 Oct 2012 12:19:00 -0500 (CDT)

I get the same Exception when trying to get a new JAXBContext instance like
this (Using the test case [1] of course): JAXBContext jc =
JAXBContext.newInstance(ObjectFactory.class.getPackage().getName(),ObjectFactory.class.getClassLoader());
If I leave the test case [1] as it is, the bundle deploys correctly. However,
if I verify the sets of classes included in the context using
JAXBContext.toString(), it only includes these: Classes known to this
context: [B boolean byte char com.sun.xml.bind.api.CompositeStructure double
float int java.awt.Image java.io.File java.lang.Boolean java.lang.Byte
java.lang.Character java.lang.Class java.lang.Double java.lang.Float
java.lang.Integer java.lang.Long java.lang.Object java.lang.Short
java.lang.String java.lang.Void java.math.BigDecimal java.math.BigInteger
java.net.URI java.net.URL java.util.Calendar java.util.Date
java.util.GregorianCalendar java.util.UUID javax.activation.DataHandler
javax.xml.bind.JAXBElement javax.xml.datatype.Duration
javax.xml.datatype.XMLGregorianCalendar javax.xml.namespace.QName
javax.xml.transform.Source long sahoo.metainfservicetest.ObjectFactory short
void |#] I'm not sure if this is the expected behavior. I thought it would
include all the classes referenced in the ObjectFactory class, just like in a
normal EE app (not an osgi bundle). Does anyone have some insight on this?
Thanks.

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