2 Replies Latest reply on Feb 12, 2003 2:19 PM by joss

    Classloader, war, Web-Inf\lib

    owulff

      I use JBoss 3.0.4 with Tomcat 4.1.12.
      I've deployed a war which contains jar's like apache-logging.jar, log4j.jar, ...

      Why will these classes not loaded from my Web-Inf\lib directory? I thought that classes which exists in the Web-Inf\lib are loaded from here although they exist in the shared repository too.

      Another example: I've got two j2ee modules (war). Each has got a log4j.jar in its Web-Inf\lib and needs to have a different configuration of the PropertyConfigurator. How can I do this with JBoss?

        • 1. Re: Classloader, war, Web-Inf\lib
          owulff

          Is the only solution to use an ear and configure jboss-app.xml?
          Further, if I add EJB modules to this ear in the future how can I handle this that they share the same log4j configuration?

          Hope you can help me.
          Thank you

          Oliver

          • 2. Re: Classloader, war, Web-Inf\lib
            joss

            Hi,
            I am having actually the same problem with the unified class loader. My war's are using the Logger instance initialized by JBoss, wich is a serious problem !

            Have you found any solution without transforming all war's in ear's ?

            Thanks in advance.

            ciao