You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by Andre Lucas Toledo de Paula <at...@synchro.com.br> on 2004/07/20 22:23:19 UTC

NoClassDefFoundError : org/apache/log4j/LogManager

Hi everyone,

I have a java program (a XML Parser)  in IBM F80 AIX Server   using JDK
1.1.8   .
This component has the following tree of directories:

-home
--- home/conf   (configuration files)
--- home/lib    (containing all .JAR needed, including log4j-1.2.8.jar)

The following command is used to start the java program in the directory
/home :

where : home -> /in68/oracle/SYN_SAP_R3

java -ms32m -mx256m -ss819200 -oss819200 -classpath
/usr/jdk_base/lib/classes.zip:/in68/oracle/SYN_SAP_R3/lib/listenerSAP.jar:/i
n68/oracle/SYN_SAP_R3/lib/mail.jar:/in68/oracle/SYN_SAP_R3/lib/activation.ja
r:/in68/oracle/SYN_SAP_R3/lib/log4j-1.2.8.jar:/in68/oracle/SYN_SAP_R3/lib/cl
asses12.zip
:/in68/oracle/SYN_SAP_R3/lib/nls_charset12.zip:/in68/oracle/SYN_SAP_R3/lib/o
crs12.zip:/in68/oracle/SYN_SAP_R3/lib/xmlcomp.jar:/in68/oracle/SYN_SAP_R3/li
b/xmlparserv2.jar br.com.synchro.xmllistener.ListenerXML
/F./conf/Listener.ini &


I've checked the name, the size of the log4j component and its the same as
the installation path .
I've created a new version of the component, without using log4J and it did
work as expected . Note that
this is the only JAR file that are unrecognized by the JVM .

The complete error looks like this :

java.lang.NoClassDefFoundError: org/apache/log4j/LogManager
        at br.com.synchro.logging.Log4jLogger._$3128(Compiled Code)
        at br.com.synchro.logging.Log4jLogger.<init>(Compiled Code)
        at br.com.synchro.logging.LoggerFactory.getLogger(Compiled Code)
        at br.com.synchro.xmllistener.ListenerXML.main(Compiled Code)


I really would be gratefull if anyone could help us in this issue .



Thanks for helping,

André Lucas Toledo de Paula
Analista Programador
atoledo@synchro.com.br
Tel: 11 3758 0021 - ramal: 186

SYNCHRO Solução Fiscal Brasil
www.synchro.com.br


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


RES: NoClassDefFoundError : org/apache/log4j/LogManager

Posted by Andre Lucas Toledo de Paula <at...@synchro.com.br>.
Tobi,

It may probably sound strange , but the only way I've found
to solve this problem  was compiling the class LogManager.java
and puting the compiled .class in the same directory from
my app .

I've founded this way in my Windows running JDK 1.1.8_007 .


Thanks for helping ,

André Lucas Toledo de Paula
Analista Programador
atoledo@synchro.com.br
Tel: 11 3758 0021 - ramal: 186

SYNCHRO Solução Fiscal Brasil
www.synchro.com.br

-----Mensagem original-----
De: Tobias Weih [mailto:tobias.weih@inmeco.de]
Enviada em: quarta-feira, 21 de julho de 2004 14:13
Para: Log4J Developers List
Assunto: Re: NoClassDefFoundError : org/apache/log4j/LogManager


right, the compiler finds the class, the vm does not.

for me, setting the PATH- and CLASSPATH-enviroment to where the
log4j.jar is located, worked.

tobi

Am Tue, 20 Jul 2004 17:23:19 -0300 hat Andre Lucas Toledo de Paula
<at...@synchro.com.br> geschrieben:

> Hi everyone,
>
> I have a java program (a XML Parser)  in IBM F80 AIX Server   using JDK
> 1.1.8   .
> This component has the following tree of directories:
>
> -home
> --- home/conf   (configuration files)
> --- home/lib    (containing all .JAR needed, including log4j-1.2.8.jar)
>
> The following command is used to start the java program in the directory
> /home :
>
> where : home -> /in68/oracle/SYN_SAP_R3
>
> java -ms32m -mx256m -ss819200 -oss819200 -classpath
>
/usr/jdk_base/lib/classes.zip:/in68/oracle/SYN_SAP_R3/lib/listenerSAP.jar:/i
>
n68/oracle/SYN_SAP_R3/lib/mail.jar:/in68/oracle/SYN_SAP_R3/lib/activation.ja
>
r:/in68/oracle/SYN_SAP_R3/lib/log4j-1.2.8.jar:/in68/oracle/SYN_SAP_R3/lib/cl
> asses12.zip
>
:/in68/oracle/SYN_SAP_R3/lib/nls_charset12.zip:/in68/oracle/SYN_SAP_R3/lib/o
>
crs12.zip:/in68/oracle/SYN_SAP_R3/lib/xmlcomp.jar:/in68/oracle/SYN_SAP_R3/li
> b/xmlparserv2.jar br.com.synchro.xmllistener.ListenerXML
> /F./conf/Listener.ini &
>
>
> I've checked the name, the size of the log4j component and its the same
> as
> the installation path .
> I've created a new version of the component, without using log4J and it
> did
> work as expected . Note that
> this is the only JAR file that are unrecognized by the JVM .
>
> The complete error looks like this :
>
> java.lang.NoClassDefFoundError: org/apache/log4j/LogManager
>         at br.com.synchro.logging.Log4jLogger._$3128(Compiled Code)
>         at br.com.synchro.logging.Log4jLogger.<init>(Compiled Code)
>         at br.com.synchro.logging.LoggerFactory.getLogger(Compiled Code)
>         at br.com.synchro.xmllistener.ListenerXML.main(Compiled Code)
>
>
> I really would be gratefull if anyone could help us in this issue .
>
>
>
> Thanks for helping,
>
> André Lucas Toledo de Paula
> Analista Programador
> atoledo@synchro.com.br
> Tel: 11 3758 0021 - ramal: 186
>
> SYNCHRO Solução Fiscal Brasil
> www.synchro.com.br
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-dev-help@logging.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Re: NoClassDefFoundError : org/apache/log4j/LogManager

Posted by Tobias Weih <to...@inmeco.de>.
right, the compiler finds the class, the vm does not.

for me, setting the PATH- and CLASSPATH-enviroment to where the
log4j.jar is located, worked.

tobi

Am Tue, 20 Jul 2004 17:23:19 -0300 hat Andre Lucas Toledo de Paula  
<at...@synchro.com.br> geschrieben:

> Hi everyone,
>
> I have a java program (a XML Parser)  in IBM F80 AIX Server   using JDK
> 1.1.8   .
> This component has the following tree of directories:
>
> -home
> --- home/conf   (configuration files)
> --- home/lib    (containing all .JAR needed, including log4j-1.2.8.jar)
>
> The following command is used to start the java program in the directory
> /home :
>
> where : home -> /in68/oracle/SYN_SAP_R3
>
> java -ms32m -mx256m -ss819200 -oss819200 -classpath
> /usr/jdk_base/lib/classes.zip:/in68/oracle/SYN_SAP_R3/lib/listenerSAP.jar:/i
> n68/oracle/SYN_SAP_R3/lib/mail.jar:/in68/oracle/SYN_SAP_R3/lib/activation.ja
> r:/in68/oracle/SYN_SAP_R3/lib/log4j-1.2.8.jar:/in68/oracle/SYN_SAP_R3/lib/cl
> asses12.zip
> :/in68/oracle/SYN_SAP_R3/lib/nls_charset12.zip:/in68/oracle/SYN_SAP_R3/lib/o
> crs12.zip:/in68/oracle/SYN_SAP_R3/lib/xmlcomp.jar:/in68/oracle/SYN_SAP_R3/li
> b/xmlparserv2.jar br.com.synchro.xmllistener.ListenerXML
> /F./conf/Listener.ini &
>
>
> I've checked the name, the size of the log4j component and its the same  
> as
> the installation path .
> I've created a new version of the component, without using log4J and it  
> did
> work as expected . Note that
> this is the only JAR file that are unrecognized by the JVM .
>
> The complete error looks like this :
>
> java.lang.NoClassDefFoundError: org/apache/log4j/LogManager
>         at br.com.synchro.logging.Log4jLogger._$3128(Compiled Code)
>         at br.com.synchro.logging.Log4jLogger.<init>(Compiled Code)
>         at br.com.synchro.logging.LoggerFactory.getLogger(Compiled Code)
>         at br.com.synchro.xmllistener.ListenerXML.main(Compiled Code)
>
>
> I really would be gratefull if anyone could help us in this issue .
>
>
>
> Thanks for helping,
>
> André Lucas Toledo de Paula
> Analista Programador
> atoledo@synchro.com.br
> Tel: 11 3758 0021 - ramal: 186
>
> SYNCHRO Solução Fiscal Brasil
> www.synchro.com.br
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-dev-help@logging.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org