i took the example from the head first ooa&d book.

i now created separate classes for timertask and runnable. works fine.

thanks for the help
stephan


Caldarale, Charles R wrote:

From: Stephan Schöffel [mailto:[EMAIL PROTECTED] Subject: Cannot create object of class

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

It's not MyClass that can't be found, it's a failure to create the anonymous 
inner class:

       timer.schedule(new TimerTask(){
           public void run(){
               timer.cancel();
           }
       }, 60*1000);

The TimerTask definition (interface or superclass) must also be available in 
the manager app's classpath (i.e., WEB-INF/lib or WEB-INF/classes).

- Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

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



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

Reply via email to