A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Spring in Action
this week in the
Joined: Oct 10, 2007
Nov 06, 2007 22:53:00
I am using WSAD 5.1.2 and exploring the
basic . I am trying to run struts-example.war in my workspace .Everything is running but when I want to print the log in console it is nor working .
I have incorporateted log4j.jar in WEB-INF .
Can anybody know where exactly I have to put the log4j.properties file so that my application will load the file automatically or I have to write a filter to load the file .
Joined: Aug 10, 2006
Nov 07, 2007 08:19:00
Author and ninkuma
Joined: Jan 10, 2002
Nov 07, 2007 08:24:00
Firstly, your jar file needs to go in WEB-INF/lib, not WEB-INF.
The properties file needs to be in the classpath. Usually placing it at WEB-INF/classes does the trick.
Asking smart questions
Books by Bear
I agree. Here's the link:
Jboss can not recognize custom log4j.properties file
where to put log4j.properties file in visual web jsf
Log4j configuration issue
logging in JBOSS
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014