[jboss-dev-forums] [JBoss AS7 Development] - Using JAXB and see java.lang.ClassNotFoundException: __redirected/__DatatypeFactory
Ramesh Reddy
do-not-reply at jboss.com
Wed Aug 24 17:39:33 EDT 2011
Ramesh Reddy [http://community.jboss.org/people/rareddy] created the discussion
"Using JAXB and see java.lang.ClassNotFoundException: __redirected/__DatatypeFactory"
To view the discussion, visit: http://community.jboss.org/message/622808#622808
--------------------------------------------------------------
Hi,
In Teiid we have couple JAXB classes, I am trying to migrate the code to AS7 container and I see this below when I instantiate the JAXBContext. I understand that using JAXB is discouraged for the speed. For time being I still would like to use these classes. I am using Sun JDK on Fedora box.
Caused by: javax.xml.datatype.DatatypeConfigurationException: Provider __redirected.__DatatypeFactory not found
at javax.xml.datatype.DatatypeFactory.newInstance(DatatypeFactory.java:137) [:1.6.0_26]
at com.sun.xml.bind.DatatypeConverterImpl.<clinit>(DatatypeConverterImpl.java:833)
... 26 more
Caused by: java.lang.ClassNotFoundException: __redirected/__DatatypeFactory
at java.lang.Class.forName0(Native Method) [:1.6.0_26]
at java.lang.Class.forName(Class.java:247) [:1.6.0_26]
at javax.xml.datatype.FactoryFinder.getProviderClass(FactoryFinder.java:121) [:1.6.0_26]
at javax.xml.datatype.FactoryFinder.newInstance(FactoryFinder.java:146) [:1.6.0_26]
at javax.xml.datatype.FactoryFinder.find(FactoryFinder.java:187) [:1.6.0_26]
at javax.xml.datatype.DatatypeFactory.newInstance(DatatypeFactory.java:131) [:1.6.0_26]
Any suggestions on how I can fix this? I see the classes in the jboss-modules class, but they were explicitly not exported.
Thanks
Ramesh..
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/622808#622808]
Start a new discussion in JBoss AS7 Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20110824/cfe0630a/attachment.html
More information about the jboss-dev-forums
mailing list