3 Replies Latest reply on Mar 28, 2005 12:00 AM by dcartier

    Autodeploy

    rgroth

      09-07-2001

      JBoss-2.2.2_Tomcat-3.2.2
      JDK 1.3.0

      Hi all,

      I've deployed a web application that uses Apache Xalan 2.1.0.
      Thus I put xalan.jar into WEB-INF/lib.

      But when I execute my servlet (opening a JSP), the javax.xml.transform.TransformerFactory class is loaded from jboss/lib/jaxp.jar and not from WEB-INF/lib/xalan.jar (leading at the end to an exception java.lang.ClassNotFoundException: org.apache.xalan.processor.TransformerFactoryImpl).

      The javax.xml.transform package is different in jboss/lib and in xalan 2.1.0 (different versions of JAXP).

      How can I avoid this side-effect (ie, the JSP/servlet container having in its classpath jboss/lib)?

      Thanks,

      Olivier

        • 1. Re: Autodeploy - Servlet Conflict
          romm

          Hello,

          I'm having a similar problem as well. I am deploying a WAR to JBoss 3.2 which has packaged the O'Reilly servlet library as part of the web application. A co-worker has also deployed the O'Reilly library as well as in a separate WAR (under /WEB-INF/classes/). Well, my application is using the MultiPartRequest class from her application versus my own. This is causing problems as she has modified her MultiPartRequest to use a class which is not registered in a classpath for myself.

          What is the solution or explanation as to why JBoss is not allowing my application to use its own packaged libraries, and is sharing another from a separate app.

          Regards,

          • 2. Re: Autodeploy
            romm

            Correction: I'm running JBoss v.4.0.1

            • 3. Re: Autodeploy
              dcartier

              You both are having classloader issues. See this http://www.jboss.org/wiki/Wiki.jsp?page=JBossClassLoadingUseCases

              You can work around this by disabling the "UseJBossWebLoader" in the jbossweb-tomcat50.sar/META-INF/jboss-service.xml file.

              Best to read up on the JBoss UCL to get a handle on why this happens.

              Dennis