Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tomcat 7.0.42 to Tomcat 7.0.72 causes "could not get servlet context" #210

Open
ESRuth opened this issue Oct 19, 2016 · 1 comment
Open

Comments

@ESRuth
Copy link

ESRuth commented Oct 19, 2016

There is a ROOT.xml in ./conf/Catalina/localhost which has UrlRwriteFilter defined and a urlrewrite.xml. There is another app on the server which also has UrlRewriteFilter defined and has it's own urlrewrite.xml. The first thing the server does is load the UrlRewriteFilter, which because the other app(s) are not loaded, yet, cannot get the servlet context.

@royling
Copy link

royling commented May 12, 2017

The same issue here.
The rule conf is parsed during the filter initialization (ie, filter.init -> rule.initialise where it is trying to get the target context (not loaded yet).
Could we defer this getServletContext call to the run phase?

UPDATE: this is duplicate of #153, a workaround is provided there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants