tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 38312] New: - servlet-api.5.0.28.jar in classpath creates problems
Date Wed, 18 Jan 2006 16:49:46 GMT
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: christian.campo@mac.com


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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message