Hi,

 

It seems to me that my question is not responded on archives. I have 

several Web applications into Tomcat 4.1, all of each using Log4J.

 

One of these needs a special configurator class (where I add some 

personal tasks), so I set the following system property : 

    -Dlog4j.configuratorClass=mypackage.MyConfigurator

Thank to the great work of log4j developpers, it works nicely for this 

Webapp.

 

The problem is that others Webapp reach this property, so Log4J 

try to load this class, which does not exists in these webapps. So

I get a NoClassDefFoundException.

 

Can I tell log4j to use the default configurator class if the one 

specified in log4j.configuratorClass can not be found ? Or maybe 

using log4j.configuratorClass is not a good way in this case ?

 

Please note I can use a Servlet.init() to configure Log4J because 

some librairies (Hibernate) use log4j to display infos before any 

servlet is initialized by Tomcat.

 

Thank a lot,

Jerome

 



 ATTENTION Le message contenu dans cet email ainsi que dans tout fichier
attach� est destin� exclusivement aux personnes dont le nom figure
ci-dessus. Il peut contenir des informations confidentielles ou prot�g�es
par le secret professionnel et dont la divulgation est strictement prohib�e.
Si vous avez re�u cet email par erreur,d�truisez-en le contenu. Vous n'�tes
pas autoris�, dans cette hypoth�se, � copier, distribuer ou conserver ce
message. Merci.
WARNING This information in this mail and in any attachments is intended for
the above-mentioned addressees only. It may contain privileged or
confidential informationthe review, dissemination or disclosure of which is
strictly prohibited. If you have received this email by error, please
destroy it. In this case, you are not authorisedto disclose, copy,
distribute, or retain this message or any part of it. Thank you.

Reply via email to