File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes exception-type entry in web.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "exception-type entry in web.xml" Watch "exception-type entry in web.xml" New topic

exception-type entry in web.xml

Shantanu Puranik
Ranch Hand

Joined: Jun 10, 2004
Posts: 67

I have single web application running in tomcat 5.0.
While generating some report, application is running out of memory.
hence throws exception
java.lang.OutOfMemoryError: Java heap space
I know, this can be solved by increasing JVM memory allocation.
But at first place, I want to avoid the exception being seen by the user.
Hence I, tried out web.xml enrty for the outOfmemory error, still it shows the exception on the screen.

Am I missing any thing?

--- Shantanu
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2904

I think, this exception is thrown by your servlet container i.e tomcat , and not by your apps java code .. Hence , I thought your not getting that error page ..

Correct me, If I was wrong somewhere !

[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
I agree. Here's the link:
subject: exception-type entry in web.xml
jQuery in Action, 3rd edition