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

http://issues.apache.org/bugzilla/show_bug.cgi?id=38312

           Summary: servlet-api.5.0.28.jar in classpath creates problems
           Product: Tomcat 5
           Version: 5.5.9
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: [EMAIL PROTECTED]


I know its illegal to have a servlet-api.jar in the webapp classpath. Normally
it just gets ignored with a warning. With tomcat-5.5.9 and the servlet-api from
the previous tomcat version 5.0.28 which is then the servlet-api-2.3. I realize
that no warning is created and servlets don't function anymore.

After debugging a little bit I found a ClassCastException is produced in the
StandardWrapper.java when loading the servlet (line 1048). Thats because the
myServlet can not be casted to the servlet class of tomcat. It seems that tomcat
is in fact loading the servlet class of the webapp classloaded and therfore can
not cast it to the class of its own classloader.

Its quit unfortunate that it is not rejected that servlet-api and its not
showing ANY error message whatsoever in the normal tomcat log. The
classcastexception is not displayed, at least not when I start Tomcat normally.

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

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to