tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Terk" <jt...@corestreet.com>
Subject NoClassDefFoundError on Tomcat startup
Date Mon, 17 Oct 2005 14:29:44 GMT
Hi, I'm trying to write an email log handler to use with tomcat 4.1 but am
getting a NoClassDefFoundError exception as soon as Tomcat attempts to load
the log handler class. mail.jar and activation.jar are both in
CATALINA_HOME/common/lib and (from debugging through Eclipse) they appear to
be available to the classloader when it loads up my log handler class.
Thanks for any help you can give. The stack follows:

 

Exception during startup processing

java.lang.reflect.InvocationTargetException

        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:585)

        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

Caused by: java.lang.NoClassDefFoundError:
javax/mail/internet/InternetAddress

        at
com.corestreet.util.log.EmailLogHandler.configure(EmailLogHandler.java:101)

        at
com.corestreet.util.log.EmailLogHandler.<init>(EmailLogHandler.java:86)

        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)

        at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcces
sorImpl.java:39)

        at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstruc
torAccessorImpl.java:27)

        at java.lang.reflect.Constructor.newInstance(Constructor.java:494)

        at java.lang.Class.newInstance0(Class.java:350)

        at java.lang.Class.newInstance(Class.java:303)

        at java.util.logging.LogManager$7.run(LogManager.java:886)

        at java.security.AccessController.doPrivileged(Native Method)

        at
java.util.logging.LogManager.initializeGlobalHandlers(LogManager.java:878)

        at java.util.logging.LogManager.access$900(LogManager.java:129)

        at
java.util.logging.LogManager$RootLogger.getHandlers(LogManager.java:985)

        at java.util.logging.Logger.log(Logger.java:424) 

        at java.util.logging.Logger.doLog(Logger.java:450)

        at java.util.logging.Logger.logp(Logger.java:566)

        at
org.apache.commons.logging.impl.Jdk14Logger.log(Jdk14Logger.java:126)

        at
org.apache.commons.logging.impl.Jdk14Logger.info(Jdk14Logger.java:193)

        at
org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:189)

        at
org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.java:12
29)

        at
org.apache.catalina.core.StandardService.initialize(StandardService.java:579
)

        at
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:2246)

        at org.apache.catalina.startup.Catalina.start(Catalina.java:511)

        at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)


Mime
View raw message