java - Log4J Event Viewer Problem -
I am canceling 2 applications and publishing them on the Websphere Aplication server.
Since I have to type errors that are on both the applications on the event viewer, I was successfully loaded the log4j JAR file and file OS on the lib folder of Websphere Aplication server.
I created the log4j.properties file under src root, with the package of both projects with various variable names and source design ("AA" and "App B").
When an execution is caught then the event viewer is being logged for both cases.
The problem is that the name of the source is the only "application A" presented, even if there was an error on App B ...
Can anyone help is?
Thank you
However, I see a problem in your configuration: When you put your Lodge 4J Jar in the WAS Lib folder, it is filled with a class loader for both of your applications ( A bootstrap class loader or extension class loader depends on the basis of this "Lib" directory) - and this means that log-4 only loads once Log4j is considered initially (with a static code section) Do it It is also used once, which means that most of the log4j.properties are read.
Try removing log4j from the WAS directory and find it each application, where you get it.
Comments
Post a Comment