tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From adilturbo <>
Subject org.apache.jasper.JasperException: java.lang.ClassCastException: org.apache.catalina.util.DefaultAnnotationProcessor cannot be cast to org.apache.AnnotationProcessor
Date Sat, 27 Dec 2008 13:33:55 GMT


I have a web application that was running on tomcat5.5. Now i want to deploy
it on tomcat 6. when runing it, i got an error saying:

cannot be cast to org.apache.AnnotationProcessor

After a search, i found that DefaultAnnotationProcessor implements
AnnotationProcessor and in tomcat 6 catalina.jar and jasper.jar both of them
contains AnnotationProcessor interface in the same package. Some solution
was suggested by kind people but it doesn't work for me, which is adding
this line:

<Loader delegate="true" />

to the context element in the context.xml file of tomcat.

Did any body face this problem?

warm regards 
View this message in context:
Sent from the Tomcat - User mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message