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 2002/02/11 22:55:11 UTC

DO NOT REPLY [Bug 6379] New: - Different ClassLoader problem

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6379>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6379

Different ClassLoader problem

           Summary: Different ClassLoader problem
           Product: Tomcat 4
           Version: 4.0.1 Final
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: marco.sarti@plangroup.it


I have implemented a personal Realm authentication method for my web 
application. 
My Realm concrete instance creates a MyPrincipal object that contain user 
information.
In servlets/JSPs it is not possibile to cast the request.getUserPrincipal() to 
MyPrincipal due to different classloader used (a ClassCastException is thrown).
In this case, it is impossible to pass user information from logon program 
(Realm) to servlet/JSP.

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>