That particular class (DBConnection is vary much in class-path) it's in classes folder under WEB-INF. And as a matter of fact, the web application is also using the same class in some other portion and that works fine if I don't use context listener.
-----Original Message----- From: Michael Weller [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 06, 2002 4:56 PM To: [EMAIL PROTECTED] Subject: Re: start up class in tomcat hi! > Now I have removed the swing part and found that even then it's not able to find some of my classes within the TimerTask. > > The stack trace is as follows: > java.lang.NoClassDefFoundError: mail/db/DBConnection this still looks like mail.db.DBConnection isn't in your CP. can we see the code? -mw > at mail.task.MessageProcessTask.run(MessageProcessTask.java:46) > at java.util.TimerThread.mainLoop(Timer.java:435) > at java.util.TimerThread.run(Timer.java:385) > > Is there any problem with the threading or java.util.Timer and java.util.TimerTask ? > > The class is very much in the classpath and if I use servlet init instead of context listener, it's working fine. > > Do you have any idea ? > > Thanks, > Sudarson ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
