tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tommy Pham <tommy...@gmail.com>
Subject Re: TC 9.0.21: ContextListener + Servlet app
Date Fri, 21 Jun 2019 04:09:52 GMT
Hi Chris,

On Sat, Jun 15, 2019 at 10:44 PM Christopher Schultz <
chris@christopherschultz.net> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> Tommy,
>
> <snip/>
> Why not allow Tomcat to serve everything in the web application (other
> than /WEB-INF/* and /META-INF/*) as usual? What is it that you need to
> put into there that you can't hide in some other way?
>
> It sounds like you are unnecessarily complicating your life.
>
> - -chris
>

I just tried as you've suggested (only thing that I have is custom is a
passive Filter inspecting what's be passed around to various components
before reaching the TC's default servlet):

Class: org.apache.catalina.connector.RequestFacade
ServletContext Class: org.apache.catalina.core.ApplicationContextFacade
ContextPath: /erm-0.0.1-SNAPSHOT
DispatcherType: REQUEST
HttpServletMapping:
       Class: org.apache.catalina.core.ApplicationMapping$MappingImpl
       MappingMatch: DEFAULT
       MatchValue:
       Pattern: /
       ServletName: default
Method: GET
PathInfo: null
PathTranslated: null
Correction of PathTranslated:
D:\apache-tomcat-9.0.21\webapps\erm-0.0.1-SNAPSHOT\css\jquery-ui\base\index.html
RequestURI: /erm-0.0.1-SNAPSHOT/css/jquery-ui/base/index.html
RequestURL:
http://localhost:8080/erm-0.0.1-SNAPSHOT/css/jquery-ui/base/index.html
ServletPath: /css/jquery-ui/base/index.html
ServletContext.ServletContextName: erm
response: org.apache.catalina.connector.ResponseFacade

As you can see, even with that, I'm still getting a blank page on the
browser.  Also, _if_ I'm to serve static content only, I would better off
using Apache's httpd for more flexible configurations without writing one
line of code :)

Thanks,
Tommy

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