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 Michael Zhou <zy...@alibaba.com> on 2002/06/11 09:41:38 UTC

WLS 6.1 can't find log4j

I'm using Log4j 1.2 with the following configurations:
  Windows XP professional
  WLS 6.1 sp2 as the Web Server
  CLASSPATH=.;.\lib\weblogic_sp.jar;.\lib\weblogic.jar

I packaged the log4j-1.2.jar in the WEB-INF/lib of a war file and the
strange things happened.

Weblogic complains: NoClassDefFoundError : org.apache.log4j.Category.

The same war file works in other servlet engine such as Tomcat, Resin.

I tried to expand all jar files in my WEB-INF/lib including
log4j-1.2.jar to WEB-INF/classes (so ugly!) and redeploy the war file.
Then the war works properly!

I tried this war on many platform(with the same weblogic version),
Windows 2000 server     - work
Windows XP professional - not work
Sun Solaris             - not work

BTW, if I replace the log4j-1.2.jar with log4j-1.1.3, it works again.

Anyone can help me? thks.
-- 
Michael Zhou <zy...@alibaba.com>



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: WLS 6.1 can't find log4j

Posted by bd...@wanadoo.be.
I have same strange things. All is now OK with a patch CR065104 obtained from 
BEA support.

Bernard

Michael Zhou <zy...@alibaba.com> wrote:

> I'm using Log4j 1.2 with the following configurations:
>   Windows XP professional
>   WLS 6.1 sp2 as the Web Server
>   CLASSPATH=.;.\lib\weblogic_sp.jar;.\lib\weblogic.jar
> 
> I packaged the log4j-1.2.jar in the WEB-INF/lib of a war file and the
> strange things happened.
> 
> Weblogic complains: NoClassDefFoundError : org.apache.log4j.Category.
> 
> The same war file works in other servlet engine such as Tomcat, Resin.
> 
> I tried to expand all jar files in my WEB-INF/lib including
> log4j-1.2.jar to WEB-INF/classes (so ugly!) and redeploy the war file.
> Then the war works properly!
> 
> I tried this war on many platform(with the same weblogic version),
> Windows 2000 server     - work
> Windows XP professional - not work
> Sun Solaris             - not work
> 
> BTW, if I replace the log4j-1.2.jar with log4j-1.1.3, it works again.
> 
> Anyone can help me? thks.
> -- 
> Michael Zhou <zy...@alibaba.com>
> 
> 
> 
> --
> To unsubscribe, e-mail:  
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> 
> 

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: WLS 6.1 can't find log4j

Posted by Rafael Alvarez <so...@yahoo.com>.
Hi!
I had the same problem. It worked fine when I put log4j-1.2.jar in the
classpath before starting weblogic.


Tuesday, June 11, 2002, 3:41:38 AM, you wrote:

MZ> I'm using Log4j 1.2 with the following configurations:
MZ>   Windows XP professional
MZ>   WLS 6.1 sp2 as the Web Server
MZ>   CLASSPATH=.;.\lib\weblogic_sp.jar;.\lib\weblogic.jar

MZ> I packaged the log4j-1.2.jar in the WEB-INF/lib of a war file and the
MZ> strange things happened.

MZ> Weblogic complains: NoClassDefFoundError : org.apache.log4j.Category.

MZ> The same war file works in other servlet engine such as Tomcat, Resin.




-- 
Best regards,
 Rafael                            mailto:soronthar@yahoo.com


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>