This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Tomcat and the fly likes Not able to catch Exception:java.lang.IllegalStateException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Not able to catch Exception:java.lang.IllegalStateException" Watch "Not able to catch Exception:java.lang.IllegalStateException" New topic
Author

Not able to catch Exception:java.lang.IllegalStateException

Ramani Kadur
Greenhorn

Joined: Apr 25, 2011
Posts: 1

Hi,

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)..
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Not able to catch Exception:java.lang.IllegalStateException