Hi Chris, On Sat, Jun 15, 2019 at 10:44 PM Christopher Schultz < ch...@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