Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

log4j.properties

 
Monoj Roy
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using WSAD 5.1.2 and exploring the struts 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 .
 
Chris Boldon
Ranch Hand
Posts: 190
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
src directory.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64833
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic