JBoss Community

Using JAXB and see java.lang.ClassNotFoundException: __redirected/__DatatypeFactory

created by Ramesh Reddy in JBoss AS7 Development - View the full discussion

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

Start a new discussion in JBoss AS7 Development at Community