Well, if I was not clear enough:
My goal was: to catch the logs from the environment (tomcat and
hivemind) and from applications too. My problem was: I didn't know where
to put log4j.jar and log4j.properties...
I tried many combinations:
commons -- logs only tomcat inner logs
shared -- logs for tomcat, hivemodule, and for all applications
common+shared -- doesn't work
apps -- logs only for the actual application
common+apps -- logs for tomcat, hivemodule, and for all applications
shared+apps -- doesn't work
commons+shared+apps -- doesn't work
Well, you said that the shared+common combination won't work. But I've
tried it (that was only _one_ line in my recent mail)
Additionally I cannot get the log4j out from my applications, because
they don't run without it.
So my latest seems-working configuration is:
log4j.properties in the shared, it can catch all applications log, which
has log4j.jar in it's WEB-INF/lib....
Thanks:
Bence
James Stauffer wrote:
On 8/17/06, Takacs Bence <[EMAIL PROTECTED]> wrote:
Well, I've tried, but I have some "bugs"...
I deployed two applications, both with their own log4j.jar, and
properties file, and I put an other to ${catalina.home}/common/classes,
and ${catalina.home}/common/lib. It seems to be working except the
following "bugs":
It sounds like you have a lo4j.jar in both webapps/app/WEB-INF/lib and
common/lib. Don't do that! You shouldn't have log4j.jar twice in the
same classloader (Thanks for the clarification Jake!). If you tell us
how you want to configure log4j we can tell you where to put the
files.
It sounds like you should have the log4j files under
webapps/app/WEB-INF and server. If you have them under
webapps/app/WEB-INF then you definitely don't want them unde common or
shared because both of those are seen by the web apps.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]