tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 46344] New: Two org.apache.AnnotationProcessor classes can cause ClassCastExceptions
Date Fri, 05 Dec 2008 08:08:52 GMT

           Summary: Two org.apache.AnnotationProcessor classes can cause
           Product: Tomcat 6
           Version: 6.0.18
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: Jasper

In the binary packages of tomcat 6 the class org.apache.AnnotationProcessor
exists twice. Once in the catalina.jar and once in the jasper.jar. Normally
this isn't a problem because both contain the same code and there is normally
only one classpath (one patches the other).

But in special environments this causes problems. In fact it isn't possible to
use tomcat 6 in an OSGi environment where catalina and jasper are in different
bundles with different classpaths because
org.apache.catalina.util.DefaultAnnotationProcessor implements
org.apache.AnnotationProcessor from the catalina bundle and jasper wants to
cast it to org.apache.AnnotationProcessor from the jasper bundle which is in
another classpath. That causes a ClassCastException.

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

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

View raw message