You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by "Andreas Bothner [ MTN - Innovation Centre ]" <bo...@mtn.co.za> on 2003/07/30 19:05:17 UTC

newbie: configuring log4j for EJB's inside weblogic

Hi,

 

I would prefer not to put the log4j jar file into each EJB application
jar file, so I have tried to put the log4j jar into the classpath and
then simply start the app server.  I expected my EJB's to find the
Logger class, but was disappointed to get a ClassNotFound Exception.  Is
it possible to use log4j without deploying the jar with each application
jar?

 

The other question I have is when to configure log4j.  I think it would
be overkill to put this code into each EJB implementation.  Would I be
right in thinking that I should create a startup class that the
application server runs when booting and that this class must call the
configureAndWatch() method???

 

Regards,

Andreas