5 Replies Latest reply on Aug 26, 2011 4:31 PM by rareddy

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

    rareddy

      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..