Hi,

I am trying to deploy an web application that uses Log4J in a shared hosting environment (ATG Dynamo 5.6.1). Log4J is used by other web applications already deployed in the server. Log4J is in the server classpath.

When I deploy my application, it hijacks the logging of the other applications. Its my understanding that ATG 5.6.1 is Servlet 2.2 compliant so it is probably using JDK standard classloading rules (always ask the parent classloader to load the class first). So when an application ask for Log4J classes the application's classloader ask it's parent and so on and eventually find the log4J instance loaded from the server classpath. So my guess is Log4J classes are shared between all applications. When my application loads it must be reconfiguring that Log4J instance. (this is just a hunch !)

I have log4j.properties in WEB-INF/classes dir and log4j Jar in WEB-INF/lib directory. Is there anyway I could share the log4J instance with other applications without reconfiguring existing loggers ?

Or anyother pointers to resolve this issue is greatly appreciated.


Thanks Roshan

_________________________________________________________________
Express yourself with cool emoticons - download MSN Messenger today! http://www.msn.co.uk/messenger



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to