You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by mi...@hotmail.com on 2004/09/15 20:03:46 UTC

java.lang.NoClassDefFoundError: org/apache/tomcat/logging/Logger

Configuration: Solaris 9, Apache 1.3, Tomcat 5.0.7, JSDK 1.4Hello All,I recently upgraded from Tomcat 4.0.1 to 5.2.7 and things have gone pretty smooth, except when I attempt to load a jsp page I get the following error.  I have looked all over for a reference to "org/apache/tomcat/logging/Logger", but I cannot find it, (server.xml, web.xmlcatalina.sh, startup.sh)  Any Suggestions??Thanks in advance...javax.servlet.ServletException: Servlet.init() for servlet jsp threw exception
	org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
	org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
	org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
	org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
	org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
	org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
	java.lang.Thread.run(Thread.java:534)

root cause 

java.lang.NoClassDefFoundError: org/apache/tomcat/logging/Logger
	org.apache.jasper.Constants.message(Constants.java:244)
	org.apache.jasper.servlet.JspServlet.init(JspServlet.java:265)
	org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
	org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
	org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
	org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
	org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
	org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
	java.lang.Thread.run(Thread.java:534)

Re: java.lang.NoClassDefFoundError: org/apache/tomcat/logging/Logger

Posted by mi...@hotmail.com.
Thanks for your response, but I only found the following when I searched my 
entire system.

/usr/apache/jakarta-tomcat-5.0.27/common/lib/log4j-1.2.8.jar
/usr/apache/jakarta-tomcat-5.0.27/server/lib/log4j-1.2.8.jar

I executed the following command:

find / -name "log*.jar"

This is getting crazy... I can't lauch my admin application or my manager 
application..since I'm getting these errors everywhere.  I noticed that I 
can't even find a Logger.java file on my system.  Is that because the file 
is in a .jar?

Thanks again,
Kenshinmax


----- Original Message ----- 
From: "Avinash R S" <av...@mindtree.com>
To: "Tomcat Users List" <to...@jakarta.apache.org>
Sent: Thursday, September 16, 2004 5:29 AM
Subject: Re: java.lang.NoClassDefFoundError: 
org/apache/tomcat/logging/Logger


Hi,

 One of the main reasons for getting NotClassDefFoundError is tomcat is
encountering two different versions of Logger class.

Looks like you have two different versions of Log4j library in Tomcat(Search
and Verify all the Log4J library files in Tomcat and Webapps).


Do not hesitate to contact me back for any clarification.

Regards,
Avinash R S

----- Original Message ----- 
From: <mi...@hotmail.com>
To: "Tomcat Users List" <to...@jakarta.apache.org>
Sent: Wednesday, September 15, 2004 11:33 PM
Subject: java.lang.NoClassDefFoundError: org/apache/tomcat/logging/Logger


Configuration: Solaris 9, Apache 1.3, Tomcat 5.0.7, JSDK 1.4Hello All,I
recently upgraded from Tomcat 4.0.1 to 5.2.7 and things have gone pretty
smooth, except when I attempt to load a jsp page I get the following error.
I have looked all over for a reference to
"org/apache/tomcat/logging/Logger", but I cannot find it, (server.xml,
web.xmlcatalina.sh, startup.sh)  Any Suggestions??Thanks in
advance...javax.servlet.ServletException: Servlet.init() for servlet jsp
threw exception
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117
)
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:705)
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:683)
java.lang.Thread.run(Thread.java:534)

root cause

java.lang.NoClassDefFoundError: org/apache/tomcat/logging/Logger
org.apache.jasper.Constants.message(Constants.java:244)
org.apache.jasper.servlet.JspServlet.init(JspServlet.java:265)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117
)
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:705)
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:683)
java.lang.Thread.run(Thread.java:534)



DISCLAIMER:
This message (including attachment if any) is confidential and may be 
privileged. Before opening attachments please check them for viruses and 
defects. MindTree Consulting Private Limited (MindTree) will not be 
responsible for any viruses or defects or any forwarded attachments 
emanating either from within MindTree or outside. If you have received this 
message by mistake please notify the sender by return  e-mail and delete 
this message from your system. Any unauthorized use or dissemination of this 
message in whole or in part is strictly prohibited.  Please note that 
e-mails are susceptible to change and MindTree shall not be liable for any 
improper, untimely or incomplete transmission.

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: java.lang.NoClassDefFoundError: org/apache/tomcat/logging/Logger

Posted by Avinash R S <av...@mindtree.com>.
Hi,

 One of the main reasons for getting NotClassDefFoundError is tomcat is
encountering two different versions of Logger class.

Looks like you have two different versions of Log4j library in Tomcat(Search
and Verify all the Log4J library files in Tomcat and Webapps).


Do not hesitate to contact me back for any clarification.

Regards,
Avinash R S

----- Original Message ----- 
From: <mi...@hotmail.com>
To: "Tomcat Users List" <to...@jakarta.apache.org>
Sent: Wednesday, September 15, 2004 11:33 PM
Subject: java.lang.NoClassDefFoundError: org/apache/tomcat/logging/Logger


Configuration: Solaris 9, Apache 1.3, Tomcat 5.0.7, JSDK 1.4Hello All,I
recently upgraded from Tomcat 4.0.1 to 5.2.7 and things have gone pretty
smooth, except when I attempt to load a jsp page I get the following error.
I have looked all over for a reference to
"org/apache/tomcat/logging/Logger", but I cannot find it, (server.xml,
web.xmlcatalina.sh, startup.sh)  Any Suggestions??Thanks in
advance...javax.servlet.ServletException: Servlet.init() for servlet jsp
threw exception
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117
)
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:705)
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:683)
java.lang.Thread.run(Thread.java:534)

root cause

java.lang.NoClassDefFoundError: org/apache/tomcat/logging/Logger
org.apache.jasper.Constants.message(Constants.java:244)
org.apache.jasper.servlet.JspServlet.init(JspServlet.java:265)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117
)
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:705)
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:683)
java.lang.Thread.run(Thread.java:534)



DISCLAIMER:
This message (including attachment if any) is confidential and may be privileged. Before opening attachments please check them for viruses and defects. MindTree Consulting Private Limited (MindTree) will not be responsible for any viruses or defects or any forwarded attachments emanating either from within MindTree or outside. If you have received this message by mistake please notify the sender by return  e-mail and delete this message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited.  Please note that e-mails are susceptible to change and MindTree shall not be liable for any improper, untimely or incomplete transmission.

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org