tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <erea...@pontoc.pt>
Subject log4j
Date Wed, 26 Nov 2003 10:51:12 GMT
Hi everybody

I'm new in tomcat, and when i instaled the Apache Tomcat/4.1.27 i get the following warn on
stderr.log:

log4j:WARN No appenders could be found for logger (org.apache.commons.digester.Digester).
log4j:WARN Please initialize the log4j system properly.

I previously installed the same Apache Tomcat in other machine and it works fine without this
warnings.

Other thing, i developed a webservice on axis using the log4j, using a FileAppender and a
SMTPAppender. I've instaled it and it gives the following exception (but this is working on
other machine):


javax.servlet.ServletException: Servlet.init() for servlet log4j-init threw exception
 at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:963)
 at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
 at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3421)
 at org.apache.catalina.core.StandardContext.start(StandardContext.java:3609)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
 at org.apache.catalina.core.StandardService.start(StandardService.java:497)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
 at org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:273)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.BootstrapService.start(BootstrapService.java:245)
 at org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:307)
----- Root Cause -----
java.lang.NoClassDefFoundError: javax/mail/Multipart
 at java.lang.Class.getDeclaredConstructors0(Native Method)
 at java.lang.Class.privateGetDeclaredConstructors(Class.java:1590)
 at java.lang.Class.getConstructor0(Class.java:1762)
 at java.lang.Class.newInstance0(Class.java:276)
 at java.lang.Class.newInstance(Class.java:259)
 at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:164)
 at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:140)
 at org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.java:153)
 at org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurator.java:415)
 at org.apache.log4j.xml.DOMConfigurator.parseCategory(DOMConfigurator.java:335)
 at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:788)
 at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:673)
 at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:616)
 at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:602)
 at org.apache.log4j.xml.DOMConfigurator.configure(DOMConfigurator.java:704)
 at pt.ptinovacao.ngincare.sigrede.Log4jInit.init(Log4jInit.java:21)
 at javax.servlet.GenericServlet.init(GenericServlet.java:256)
 at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
 at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
 at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3421)
 at org.apache.catalina.core.StandardContext.start(StandardContext.java:3609)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
 at org.apache.catalina.core.StandardService.start(StandardService.java:497)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
 at org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:273)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.BootstrapService.start(BootstrapService.java:245)
 at org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:307)



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