4 Replies Latest reply on Jan 7, 2015 3:53 PM by wdfink

    JBOSS 4.0 error

    sachin.kataria

      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.

        • 1. Re: JBOSS 4.0 error
          wdfink

          Did you use the same JVM version? Mabe it is an issue what the JVM provide or how it is implemented.

          Not sure but IIRC JAXB was first a separate jar and then integrated ...

          • 2. Re: JBOSS 4.0 error
            sachin.kataria

            Yes JVM version is same on both machines.

            • 3. Re: JBOSS 4.0 error
              sachin.kataria

              Hi,

               

              Issue is resolved.

              Issue was - Source server was in running state when we copied to Target server.

              We have stopped the source jboss server and again copied then it started working.

              But still not clear what difference does it make when we copy entire jboss in running state ? After copy we also deleted log, tmp, work, data folder then also it was not working.

              Other than these folder, internally does it cache anything anywhere?

               

              Thanks.

              • 4. Re: JBOSS 4.0 error
                wdfink

                IIRC delete the directories should be enough.

                Maybe you compare the directories (ecept tmp data work) for both copies