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 Re: Cannot create object of class
Date Wed, 10 Jan 2007 11:41:18 GMT
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:stephan.schoeffel@gmx.net] 
>>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: users-unsubscribe@tomcat.apache.org
>For additional commands, e-mail: users-help@tomcat.apache.org
>
>  
>


---------------------------------------------------------------------
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