tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tommy Pham <>
Subject Re: TC 9.0.21: ContextListener + Servlet app
Date Fri, 21 Jun 2019 02:21:58 GMT

After some further research, it appears the issue I'm encountering is known
since 2007 by IBM at least:

While reviewing the JSR-369 history, at, it seems that this is
since servlet spec 2.3, perhaps even earlier.  Does anyone know if the
email is the correct email which I can submit a
proposal for updating the JSR-369?  I think the section 3.6 of the servlet
spect should be changed from:

"The getPathTranslated method computes the real path of the pathInfo of the


The getPathTranslated method computes the real path of the servletPath and
pathInfo of the request.  If the pathInfo is not valid, then compute the real
path of the servletPath.

Since the requestURI is comprise of /contextPath/servletPath/pathInfo.  I
think the above would be more accurate to translate the requested path to a
static file on the file system as I've seen by various cases, and possibly
IBM's too.

Servlet name: default , registered class:
Servlet default's mapping:
Servlet default's init parameters:
     listings: false
     debug: 0
Class: org.apache.catalina.connector.RequestFacade
ServletContext Class: org.apache.catalina.core.ApplicationContextFacade
ContextPath: /erm-0.0.1-SNAPSHOT
DispatcherType: REQUEST
       Class: org.apache.catalina.core.ApplicationMapping$MappingImpl
       MappingMatch: PATH
       MatchValue: jquery-ui/base/index.html
       Pattern: /css/*
       ServletName: default
Method: GET
PathInfo: /jquery-ui/base/index.html
Correction of PathTranslated:
RequestURI: /erm-0.0.1-SNAPSHOT/css/jquery-ui/base/index.html
ServletPath: /css
ServletContext.ServletContextName: erm
response: org.apache.catalina.connector.ResponseFacade



  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message