tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Januski, Ken" <kjanu...@phillynews.com>
Subject RE: Problem with logging in Eclipse
Date Mon, 01 Nov 2004 16:32:12 GMT
For what it's worth my logs show:

----- Root Cause -----
java.lang.NoClassDefFoundError: org/apache/log4j/Logger
	at...............

rather than the 

----- Root Cause -----
java.lang.NoClassDefFoundError: org/apache/log4j/Layout
	at.............

noted below.

-----Original Message-----
From: Januski, Ken [mailto:kjanuski@phillynews.com]
Sent: Friday, October 29, 2004 11:22 AM
To: Tomcat Users List
Subject: RE: Problem with logging in Eclipse


Donie,

I just noticed this from your log:
----- Root Cause -----
java.lang.NoClassDefFoundError: org/apache/log4j/Layout

I'm at work right now so can't check my logs at home but if they also point
to Layout as the missing class rather than just Log4j that may tell us a
little more about what's causing the problem. I didn't think that my errors
pointed to Layout but I could be wrong.

Ken

-----Original Message-----
From: Donie Kelly [mailto:donie.kelly@tecnomen.ie]
Sent: Friday, October 29, 2004 5:19 AM
To: Tomcat Users List
Subject: RE: Problem with logging in Eclipse


Anybody else have this problem???

Thanks
Donie


-----Original Message-----
From: Donie Kelly [mailto:donie.kelly@tecnomen.ie] 
Sent: 28 October 2004 11:12
To: Tomcat Users List
Subject: RE: Problem with logging in Eclipse

Hi guys

I have the same problem and it's driving me nuts. I have a run configuration
in Eclipse 3.0 for tomcat 4.1.18 and I call bootstrap.jar directly within
eclipse to start tomcat. The only jars I put in the run configuration class
path are the tomcat ones.

This starts tomcat as it would be normally run and tomcat then inits the
webapps directory and creates the classpath for each webapp based on the
contents of the WEB-INF/lib.

I have commons-logging.jar in my WEB-INF/lib as it's required by some code.
This has problems finding log4j even though it's there. When I send in a
request that uses com.sun.xml.messaging.saaj.soap.dom4j.ElementFactory
tomcat throws an exception into Catalina.out log showing the following stack
trace below.

Now, if I put log4j.jar into the run configuration class path the problem
goes away????? Why can't tomcat find this jar under Eclipse 3????

However, because I have multiple webapps running, the logging for the
different webapps is the same as the log4j.jar is now global so the last
webapp to init sets the logging scheme and location. Painful.

Thanks
Donie




2004-10-28 11:14:41 StandardWrapperValve[webclient]: Servlet.service() for
servlet webclient threw exception
javax.servlet.ServletException: Servlet execution threw an exception
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:269)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
	at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:493)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
	at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
	at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:509)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1040)
	at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1151
)
	at java.lang.Thread.run(Thread.java:534)
----- Root Cause -----
java.lang.NoClassDefFoundError: org/apache/log4j/Layout
	at
org.apache.commons.logging.impl.Log4jFactory.getInstance(Log4jFactory.java:1
40)
	at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.ja
va:257)
	at
com.sun.xml.messaging.saaj.soap.dom4j.ElementFactory.<clinit>(ElementFactory
.java:84)
	at
com.sun.xml.messaging.saaj.soap.dom4j.EnvelopeFactoryImpl.createEnvelope(Env
elopeFactoryImpl.java:67)
	at
com.sun.xml.messaging.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:8
7)
	at
com.tecnomen.mms.client.eai.SOAPEncoder.decode(SOAPEncoder.java:256)
	at
com.tecnomen.mms.client.eai.MessageFactory.createMIMEMessage(MessageFactory.
java:340)
	at
com.tecnomen.mms.client.eai.MessageFactory.createMessage(MessageFactory.java
:362)
	at
com.tecnomen.mms.client.eai.MessageFactory.createMessage(MessageFactory.java
:300)
	at
com.tecnomen.mms.client.eai.ProtocolMediator.handleServerConnection(Protocol
Mediator.java:149)
	at
com.tecnomen.mms.client.eai.ProtocolMediator.handleConnection(ProtocolMediat
or.java:125)
	at
com.tecnomen.mms.relay.MessageProcessor.Save(MessageProcessor.java:548)
	at com.tecnomen.mms.relay.MmsProxy.doPost(MmsProxy.java:119)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
	at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:493)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
	at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
	at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:509)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1040)
	at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1151
)
	at java.lang.Thread.run(Thread.java:534)

---------------------------------------------------------------------
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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message