You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2008/12/05 09:08:52 UTC

DO NOT REPLY [Bug 46344] New: Two org.apache.AnnotationProcessor classes can cause ClassCastExceptions

https://issues.apache.org/bugzilla/show_bug.cgi?id=46344

           Summary: Two org.apache.AnnotationProcessor classes can cause
                    ClassCastExceptions
           Product: Tomcat 6
           Version: 6.0.18
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: Jasper
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: roger.villars@mimacom.ch


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: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 46344] Two org.apache.AnnotationProcessor classes can cause ClassCastExceptions

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46344


Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




--- Comment #1 from Mark Thomas <ma...@apache.org>  2008-12-27 14:19:17 PST ---
I have fixed this in trunk (so it will be in Tomcat 7 onwards) but will not be
proposing this for porting to 6.0.x since it is too likely to break things for
existing users.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org