4 Replies Latest reply on Dec 13, 2005 10:55 AM by drnickit

    Overriding Xalan.jar with older version for web-app.

    drnickit

      Hello,

      We have a product of an external company.
      The problem here is that the product uses older versions of Xalan and Xerces and the external company isn't prepared to update their product with new xalan and xerces.

      Currently we are using Jboss-4.0.1. We were able to add the OLDER Xalan and xerces to the endorsed lib of jboss. I know we shouldn't do this but hey it worked all fine. We had to do this because we couldn't find a way to override the xalan and xerces of jboss.

      Now we are trying to use jboss-4.0.3SP1 and trying to apply the same settings but it fails.

      Is there a way to tell a web-app, in jboss, to use OLDER versions of xalan and xerces instead of the ones in the endorsed library?

      kind regards

        • 2. Re: Overriding Xalan.jar with older version for web-app.
          drnickit

          I already tried everything standing in this documentation. But nothing could make our program work.

          NOW after try and error i added our xerces.jar to the endorsed lib.
          There i renamed it to 1-xerces.jar. Then i renamed the rest also to 2-xalan.jar, 3-xercesImp.jar, ... etc.

          Now our program works. I know this isn't the right thing to do but hey it works.
          If you have any comments on this please let me know.

          Best regards

          • 3. Re: Overriding Xalan.jar with older version for web-app.
            jaikiran

            How have you packaged your application. if you post the details of the same then we can know the reason why its not working

            • 4. Re: Overriding Xalan.jar with older version for web-app.
              drnickit

              Ok with folowing installation our program does not work:
              We use jboss-4.0.3SP1
              We made a copy of the default directory.
              We deleted all exessive files and subdirectories until we only had following:

              jbossweb-tomcat55.sar
              client-deployer-service.xml
              jbossjca-service.xml
              properties-service.xml
              jboss-local-jdbc.rar
              jboss-xa-jdbc.rar
              jboss-ha-local-jdbc.rar
              jboss-ha-xa-jdbc.rar

              We packaged our application in a WAR which looks like this:

              *.jsp
              WEB-INF

              classes

              *.properties
              web.xml

              lib

              xalan.jar
              xerces.jar
              castor-0.9.4.1.jar
              crimson.jar
              jaxp.jar
              jndi.jar
              jta.jar
              *ExternalCompany.jar*
              *OurApplication.jar*




              In the web.xml we declare all the servlets necessary for the program of the external company and session-timeout-config.
              This external program uses an older version of xerces and xalan.jar.
              But the application gives errors because i think it uses the xerces of the endorsed lib instead of the ones in our lib-directory.
              If we put the xerces and xalan in the lib of the defined server it doesn't work either.
              Neither does it work when we create a java2parentdelegation in jboss-web.xml and add this xml to our war.

              I hope this is enough information to find a better solution.

              best regards.