logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <Yoav.Shap...@mpi.com>
Subject RE: Logger.getLogger() instantiation exception
Date Wed, 06 Nov 2002 16:11:33 GMT
This error is not because of the string you pass to the getLogger call.
It's because you have more than one version of the log4j classes at your
classpath.  Or perhaps you are compiling your code against one version
of log4j and running against another.

>    2002-11-05 17:21:58 - Ctx(  ): Exception in: R(  +
>null) - java.lang.VerifyError: (class: org/apache/log4j/LogManager,
><clinit> signature: ()V) Incompatible argument to function
>        at org.apache.log4j.Logger.getLogger(Logger.java:85)
>        at LQSServlet.init(LQSServlet.java:50)
>        ....

Your class doesn't have to be in a package.
Logger.getLogger(LQSServlet.class.getName()) will work.  Remember you do
have to configure log4j somewhere, even if it's just a
BasicConfigurator.configure() call.

And one more thing: this is a user, not developer, question.  Please
post to the log4j-user list in the future.  

Yoav Shapira
Millennium ChemInformatics

View raw message