wood burning stoves*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "exception-type entry in web.xml" Watch "exception-type entry in web.xml" New topic
Author

exception-type entry in web.xml

Shantanu Puranik
Ranch Hand

Joined: Jun 10, 2004
Posts: 67
Hello,

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: 2902
    
    1

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]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: exception-type entry in web.xml
 
Similar Threads
Error handling
Problems with Exception Handling via web.xml config
pageContext.exception is not executing
error-page!!!
Custom Error Messages...