DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17162>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17162 Cannot catch IllegalStateException with web.xml after exceeding maxActiveSessions limit Summary: Cannot catch IllegalStateException with web.xml after exceeding maxActiveSessions limit Product: Tomcat 4 Version: 4.1.12 Platform: All OS/Version: Other Status: NEW Severity: Normal Priority: Other Component: Catalina AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] I cannot catch IllegalStateException with web.xml after exceeding maxActiveSessions limit. I set the attribute maxActiveSessions for my context in server.xml. When the the limit is reached it throws an IllegalStateException (in the browser it shows 500 error with 'IllegalStateException:createSession:Too many active sessions') I can't find an easy way to handle this exception with Tomcat. I tried adding <error-page> tags in web.xml to catch this exception but that didn't work. It seems that after the exception Tomcat doesn't use web.xml the same. I tried testing with the servlet SessionExample that comes with Tomcat. I set the maxActiveSessions to 3. Then added an <error-page> tag for error code 404 to the web.xml to test this. With fewer than three sessions, on a file not found error it fowarded to the page I specified. After 3 sessions it did not forward to the page I had specified. Is there a way for Tomcat to handle this exception it throws? Basically I only want a website saying "too many users." Do I have to handle this somehow in my code? Thank you for you time and for the great product you produce. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]