[jboss-user] [Beginners Corner] - Re: Implementing my own log4j.xml on jboss-4.0.3SP1

jaikiran do-not-reply at jboss.com
Fri Jul 21 02:14:56 EDT 2006


anonymous wrote : String log4jFile = "/WEB-INF/classes/log4j.xml";

Change this to:

String log4jFile = "WEB-INF/classes/log4j.xml";

Note that there is no '/' before the WEB-INF. Try it out and see if it works.
Alternately, you can try:

InputStream inputStream = this.getClass().getClassLoader().getResourceAsStream("WEB-INF/classes/log4j.xml");

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

See if this helps:

http://wiki.jboss.org/wiki/Wiki.jsp?page=Log4jRepositorySelector







View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3959781#3959781

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3959781



More information about the jboss-user mailing list