tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephan Schöffel <>
Subject Cannot create object of class
Date Tue, 09 Jan 2007 15:17:48 GMT

have a problem with creating a class in the doPost method of a servlet:

MyClass mc= new MyClass();

if i do so i get the following error message:

  HTTP Status 500 -


*type* Exception report


*description* _The server encountered an internal error () that 
prevented it from fulfilling this request._


javax.servlet.ServletException: Servlet execution threw an exception

*root cause*

java.lang.NoClassDefFoundError: org/apache/catalina/manager/MyClass$1

*note* _The full stack trace of the root cause is available in the 
Apache Tomcat/5.5.20 logs._


      Apache Tomcat/5.5.20

i belive it has something to to with the timer i use in the class:

public class MyClass implements Runnable{
    public void run(){
        final Timer timer = new Timer();
        timer.schedule(new TimerTask(){
            public void run(){
        }, 60*1000);
    public void startUpdate(){
            System.out.println("do something");
            Process p = 
        }catch(Exception e){

dont know what do to since i need the timer task and i need it in a 
separate thread...


To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message