Please help!! Tomcat 5.0 restart failure
My server is running Tomcat 5.0 and running a version of java j2sdk1.4.2_05. I just tried to restart Tomcat but failed and got the following standout output:
Aug 13, 2005 11:30:33 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Aug 13, 2005 11:30:33 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 4141 ms
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java: 39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorIm pl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.start(Bootst rap.java:287)
at org.apache.catalina.startup.Bootstrap.main(Bootstr ap.java:425)
Caused by: java.lang.NoClassDefFoundError: javax/mail/Session
at org.apache.naming.factory.MailSessionFactory$1.run (MailSessionFactory.java :116)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.naming.factory.MailSessionFactory.getOb jectInstance(MailSession Factory.java:100)
at org.apache.naming.factory.ResourceFactory.getObjec tInstance(ResourceFactor y.java:129)
at javax.naming.spi.NamingManager.getObjectInstance(N amingManager.java:301)
at org.apache.naming.NamingContext.lookup(NamingConte xt.java:791)
at org.apache.naming.NamingContext.lookup(NamingConte xt.java:151)
at org.apache.catalina.mbeans.GlobalResourcesLifecycl eListener.createMBeans(G lobalResourcesLifecycleListener.java:155)
at org.apache.catalina.mbeans.GlobalResourcesLifecycl eListener.createMBeans(G lobalResourcesLifecycleListener.java:125)
at org.apache.catalina.mbeans.GlobalResourcesLifecycl eListener.lifecycleEvent (GlobalResourcesLifecycleListener.java:97)
at org.apache.catalina.util.LifecycleSupport.fireLife cycleEvent(LifecycleSupp ort.java:119)
at org.apache.catalina.core.StandardServer.start(Stan dardServer.java:2306)
at org.apache.catalina.startup.Catalina.start(Catalin a.java:556)
... 6 more
The case is that I start Tomcat through Services and it quit after about 10 seconds. Actually, everything works fine before but can't figure out whey the Tomcat failed to restart(even after serveral server reboot). I didn't make any change any change web.xml but just modify some java code of my web application. From the standard output above, it said the exception is caused by no class def was found. Do you have any idea on this? Please advise. Thanks.
|