Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java Open Source > Apache Tomcat
|
Apache Tomcat General discussion of the Apache Tomcat servlet container. For discussions specific to the Professional Apache Tomcat book, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Apache Tomcat section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 14th, 2005, 12:37 AM
Registered User
 
Join Date: Aug 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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.
 
Old August 24th, 2005, 05:12 AM
Authorized User
 
Join Date: Jul 2004
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'm not really an expert on this but seeing as you've had no other replies.

the root cause seems to be the java.lang.NoClassDefFoundError: javax/mail/Session

which implies that either the mail.jar file is missing or that it is corrupt.

the javax.mail and servlet classes are not part of the standard j2sdk 1.4.2 and come as libraries with tomcat and java 2 enterprise edition. If you have redirected your entire class directory to look at the sdk that may be why

tomcat needs the files in $catalina_home/common/lib/

mine contains:

servlet.jar
naming-factory.jar
mail.jar
jndi.jar
jdbc2_0-stdext.jar
jasper-compiler.jar
commons-pool.jar
commons-logging-api.jar
commons-collections.jar
naming-resources.jar
naming-common.jar
jasper-runtime.jar
commons-dbcp.jar
ant.jar
activation.jar
jta.jar

although to be fair I am running tomcat 4.1.24 so I'm unclear on the differences

that's all I can suggest really. i hope it gives you some lines of enquiry

holdmykidney





Similar Threads
Thread Thread Starter Forum Replies Last Post
restart windows surendran SQL Server DTS 1 January 11th, 2007 12:25 AM
Tomcat: restart only one application wakeup Servlets 1 March 30th, 2006 05:15 AM
restart mysql crmpicco MySQL 1 September 13th, 2005 04:34 AM
Restart an application aldwinenriquez General .NET 0 August 16th, 2005 07:14 PM
restart crmpicco SQL Language 1 February 7th, 2005 11:21 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.