Not able to catch Exception:java.lang.IllegalStateException
posted 6 years ago
I am trying to catch the IllegalStateExeption thrown by tomcat server, catch block is not executed after this exception thrown from tomcat server and also <error-page> in web.xml file also is not read by tomcat.
Any help on how to catch this exception:
Exception initializing page context.java.lang.IllegalStateException: createSession: Too many ac tive sessions..at org.apache.catalina.session.StandardManager.createSession(StandardManager.java:287)..