This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Could someone tell me what is wrong with the following web.xml entry?
I want my ServletFilter to be called for every HttpRequest of any servlet or any JSP page but it is definitely not getting called for servlets in one specific scenario ... when the HttpSession is dead.
When the HttpSession is alive it seems to work.
However, if I issue a request from a page on my browser that has been left sitting for a while it seems to bypass the filter and go directly to the servlet which causes my application to crash.
I am perplexed at how to solve this problem and would be very grateful if anyone who understands Tomcat could tell me how to FORCE tomcat to use the filter in all circumstances.