Re: Problem on Log4j: How to include custom into JBoss (log4j.xml)?

2010-09-20 Thread Kevin Ng
Thank you for replying... I'm a newbie, can you further guide me in solving this problem? Question: 1. How to configure child-first classloading for webapps? 2. How to place both my custom Filter **and** log4j.jar in WEB-INF/lib? Kevin. Jacob Kjome wrote: > > It's pretty clear that your "log4j

Re: Problem on Log4j: How to include custom into JBoss (log4j.xml)?

2010-09-20 Thread Jacob Kjome
It's pretty clear that your "log4j.TransFilter" is loaded by a ClassLoader that is a child of the ClassLoader that loads log4j.jar. Your class must be loaded by the same, or parent, classloader to that of Log4j. So, for instance, if Log4j is loaded from some global lib directory in JBoss, then

Problem on Log4j: How to include custom into JBoss (log4j.xml)?

2010-09-20 Thread Kevin Ng
TransFilter is a custom filter that I have created, a .java file. This run fine as Java Application. When I tried to convert into JBoss log4j and error occur. File located: ../serve