4 Replies Latest reply on Jul 21, 2006 6:20 AM by Heather Sinclair

    Implementing my own log4j.xml on jboss-4.0.3SP1

    Heather Sinclair Newbie


      I am trying to implement a RepositorySelector using my own log4j.xml contained in my WEB-INF/classes in the WAR. I have not changed anything in the EAR or added a jboss-app.xml with my own class loader.

      When I run the line:

      Thread.currentThread().getContextClassLoader().toString() -
      I find it is using the default WebappClassLoader and

      String log4jFile = "/WEB-INF/classes/log4j.xml";
      InputStream log4JConfig = Thread.currentThread().getContextClassLoader().getResourceAsStream(log4jFile);

      does not find my file resource.

      Do I need to change other settings to use my own log4j.xml?