https://bz.apache.org/bugzilla/show_bug.cgi?id=58015

            Bug ID: 58015
           Summary: servlet-api.jar from WAR files not being excluded
           Product: Tomcat 8
           Version: 8.0.23
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: regression
          Priority: P2
         Component: Catalina
          Assignee: dev@tomcat.apache.org
          Reporter: jasonmcint...@carfax.com

tomcat.util.scan.StandardJarScanFilter.jarsToSkip
has the servlet-api and servlet-api* files in the list.

Deploy a war where an "idiot developer" included "servlet-api-2.5.jar" in the
WEB-INF/lib folder.  Try and hit a JSP page, and it fails, due to the "The
method getDispatcherType() is undefined for the type HttpServletRequest" error.

Then, rather than redeploying, stop tomcat, go into the
$CATALINA_HOME/webapps/war/WEB-INF/lib/
and remove servlet-api-2.5.jar and start tomcat

You can then hit the JSP pages.  Note, to re-verify, delete the work folder,
remove the unpacked war, and try again to recreate the issue.  Off hand, it
appears that the jarsToSkip SHOULD be excluding servlet-api-2.5.jar from wars
loaded into it, but it doesn't appear to be behaving.  

Note, this isn't related to Bug 57020 - this is entirely on the server side
with a war that worked fine on Tomcat 6 & Tomcat 7.  The same war is failing on
tomcat 8 with the above for JSP pages.

-- 
You are receiving this mail because:
You are the assignee for the bug.

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

Reply via email to