This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Websphere and the fly likes RAD7 - Trying to get log4j to work Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "RAD7 - Trying to get log4j to work" Watch "RAD7 - Trying to get log4j to work" New topic
Author

RAD7 - Trying to get log4j to work

John IHateWebsphere
Greenhorn

Joined: May 01, 2009
Posts: 2
Websphere development environment: Version: 7.0.0.8

Problem: RAD7 is using its own logging and tracing defined in the "troubleshooting>logs and trace" of the admin console and the log4j.properties is being ignored by the logger.

Problem statements:
1. log4j.1.2.8 is on the classpath of my war module, and set on the j2ee module dependency.
2. log4j.properties is kept in a configuration folder that i hold all my properties files in. I defined this folder in the admin console on the following path classpath;

Application servers > server1 > Process Definition > Java Virtual Machine

I put the path to the configuation folder there under "classpath" just like i did in RAD6.

3. My application uses parent last defined in the application.xml of the EAR file.

It seems like the RAD7 logger has a higher precendence than the log4j logger. I would appreciate any suggestions to help get my LOG4J running in RAD.



Thanks in advance.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

"John", please check your private messages regarding an important administrative matter.

Thank you.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: RAD7 - Trying to get log4j to work
 
Similar Threads
Not able to initialize the log4j.properties
struts util PropertyMessageResources?
Log4J configuration problem
not able to print log4j messsages to tomcat console
location for log4j.properties for my EAR Application