tomcat-users mailing list archives

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

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

*message*

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

*exception*

javax.servlet.ServletException: Servlet execution threw an exception

*root cause*

java.lang.NoClassDefFoundError: org/apache/catalina/manager/MyClass$1
	org.apache.catalina.manager.AgroManagerServlet.doPost(AgroManagerServlet.java:112)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

*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(){
               
                timer.cancel();
            }
        }, 60*1000);
    }
    public void startUpdate(){
        try{
            System.out.println("do something");
            Process p = 
Runtime.getRuntime().exec(TomcatPath.getAbsInstPath()+"update/check_for_updates.exe");
        }catch(Exception e){
           
        }
    }
}


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

--stephan

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message