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=6244>.
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=6244

javax.servlet.* in WEB-INF/lib overrides containers version

           Summary: javax.servlet.* in WEB-INF/lib overrides containers
                    version
           Product: Tomcat 4
           Version: 4.0 Beta 1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Catalina
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


During development we have placed a copy of the 2.2 spec javax.servlet.* 
classes into our WEB-INF/lib directory of our webapp to make compilation easy. 
With Tomcat4 though, when compiling a JSP page, we get an error due to Jasper 
using our 2.2 version rather than the containers 2.3 version of 
javax.servlet.jsp.tagext.BodyTag (the static EVAL_BODY_BUFFERED is new to 
BodyTag in 2.3).

I believe this to be contrary to the 2.3 spec, section SRV 9.7.2, which says 
that the classloader the container provides a webapp must not allow a WAR to 
override J2SE or Java servlet API classes.

The workaround is not to place the 2.2 classes in the webapp!

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

Reply via email to