4 Replies Latest reply on Jan 7, 2015 3:53 PM by Wolf-Dieter Fink

    JBOSS 4.0 error

    s k Newbie

      Hi,

       

      I have application deployed in JBOSS 4.0 server on Linux. Its working fine. Java version is 1.5.0_13

      Now Issue is - We have copied complete JBOSS 4.0 folder on another Linux machine. Server startup is done there but getting error while validating our application -

       

      java.lang.NoSuchMethodError: javax.xml.bind.JAXBContext.newInstance([Ljava/lang/Class;)Ljavax/xml/bind/JAXBContext;

              at com.test.jaxb.JAXBUtils.convertXMLToPreviousClaims(Unknown Source)

       

       

      We are using class JAXBContext in our application.  This class existing in 2 jars - lib/jboss-j2ee.jar and lib/jaxb-api.jar. I think there is some class loading issue -  jboss-j2ee.jar is loading first and then jaxb-api.jar. However It should be opposite. But Not sure how its working on first linux box and giving error on another linux box.

       

      Please let me know if anybody know about it.

       

      Thanks.