2 Replies Latest reply on Jun 4, 2004 11:43 PM by Scott Stark

    loader-repository and log4j.properties

    vivkap01 Newbie

      Hi
      I am using log4j 1.2.8 and jboss 3.2.3. I have the applications logging settings in log4j.properties which is under WEB-INF/classes.
      But when running inside JBoss this log4j.properties is not detected. Instead it find the log4j.xml under default/conf and looks for logger names there.
      If I copy the logger/category names to jbosse's log4j.xml it works.
      But I want my log4j.properties to be used which is under WEB-INF/classes
      I have set the UseJBossWebLoader in jboss-service.xml to false.
      I was thinking may be i need to add jboss-web.xml nd set the java2ParentDelegation=false.
      But what do I set for loader-repostory , since this is a resource file and not an archive. First of all is my assumption that I need a jboss-web.xml correct ? If so, what should it contain ? If not, how do I make Jboss read my log4j.properties for my application ?

      Thanks for the help
      --Viv