Win a copy of TensorFlow 2.0 in Action this week in the Artificial Intelligence and Machine Learning forum!
  • 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 ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

Configure log4j with WAS 5

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.
Anu Ram
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.

Been there. Done that. Went back for more. But this time, I took this tiny ad with me:
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic