Originally posted by Max Tomlinson:
when you say a 'A system property allows to find its path.' what exactly do you mean? A classpath setting?
Nope. A JVM system property.
In the JVM settings tab of WAS, you can define a JVM variable, say, MyLog4JProps, which value is the path of the xml file.
(/usr/WebSphere/AppServer/...)
The you can obtain the value of the property using :
System.getProperty("MyLog4JProps");
also, I did not understand: 'What kind of visibility are you using in WAS ? ' .. maybe I'm missing soemthing here in WSAD...
For your appServer within WAS (general tab), you can have
- module visibility
- server visibility
- application visibility
- compatibility visibility
Wich one are you using ?
(there also a J2EEApplication mode... from ptf3)
If you're using log4j in your project, are you using both EJBs and the web tier to log? Where do you put the log4j.jar? We've put ours in the enterprise application and reference that jar in the ejb projects and the war project...
Yep, both with EJB and War.
The log4j jar files (2) are directly under the ear file, and we reference them using "edit module dependencies" in WSAD
How do you reference the jars ?
Can you doublecheck the jars are specified within your MANIFEST.MF files ?
also, where exactly do you put your xml file?
Wherever you want.
Yhe path is defined by the JVM proprty decribed above (MyLog4JProps)