aspose file tools
The moose likes Websphere and the fly likes RAD7 - Trying to get log4j to work Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » Websphere
Reply 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: 16483
    
    2

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

Thank you.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: RAD7 - Trying to get log4j to work
 
Similar Threads
not able to print log4j messsages to tomcat console
Log4J configuration problem
struts util PropertyMessageResources?
location for log4j.properties for my EAR Application
Not able to initialize the log4j.properties