• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Configure log4j with WAS 5

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using log4j on my app. When I use it in my WSAD environment, log4j works fine, and logs are generated. But when I deploy the ear file onto Websphere server, I get an error message: "..log4j is not initialized properly, and that no appenders are found.."
Additional Info:
1. log4j.xml is stored in WEB-INF/Classes under my project ear folder.
2. log4j jar file sits in the lib folder.
3. If i move log4j.xml into WAS_ROOT/AppServer/properties, it works fine. But i am not sure if this is the right thing to do, bcz i have multiple projects under AppServer, and they would have different versions of log4j properties, right?
Any help is greatly appreciated.
Thanks.
 
Anu Ram
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


This is some additional info that I wanted to add to the question


I tried DEBUG=TRUE, but that didnt really help.


If I move the log4j.xml higher up to properties under Appserver, it works, so I am assuming it is not really a problem with locating the jar files.


Is there anything that I need to specify on the WAS administrative console for it locate the properties file.


Thanks
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!