2 Replies Latest reply on Oct 31, 2002 11:51 AM by jworker

    jBoss+Tomcat+dependency JARs

    jworker

      Hello,
      I had a servlet developed in previous version of log4j, xalan.jar, and xerces.jar (i'm not sure with version, but the file size are about: log4j=126KB, xalan=687KB, xerces=1,465KB).
      I run OK under Tomcat4.1.12 standalone version (What I did was to put all these jar files under WEB-INF\lib folder). When deployed with jBoss (I copy the whole folder to deploy/default), the servlet is deployed OK, but when I calll the servlet, I got error java.lang.NoSuchMethodError.
      I think jBoss use newer version of these jar files above. How do I solve this problem in jBoss without modify my servlet code at the moment (again, It works with Tomcat4.1.12 standalone version!, but not under jBoss3.0.3_Tomcat4.1.12 bundle)? What did I do wrong in the deployment of the servlet?
      -- Thanks.

        • 1. Re: jBoss+Tomcat+dependency JARs
          prabhakar

          Have you tried deploying without including those jars in the WEB-INF directory of your webapp? Are you using versions of these jars that are very old?

          -prabhakar

          • 2. Re: jBoss+Tomcat+dependency JARs
            jworker

            Thanks for your reaponse.
            Yes, I put these jar files under myapp/WEB-INF/lib directory (that's how it work with Tomcat 4.1.12 stand alone version.)
            I think these jars files are __very old__. However, because it works with Tomcat stand alone version, I think I may deploy it in a wrong way in jBoss-Tomcat bundle environment.
            -- J.