File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unavailable Exception

 
Meng Tan
Ranch Hand
Posts: 115
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have the following entry in my web.xml file:
<error-page>
<exception-type>
javax.servlet.UnavailableException
</exception-type>
<location>
/MyErrorPage.html
</location>
</error-page>
I also have a servlet class that throws UnavailableException in its doGet() method.
However, MyErrorPage.html is not displayed when I make a request to the servlet.
What is wrong???
Please help.
 
Meng Tan
Ranch Hand
Posts: 115
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just to add:
When I change "javax.servlet.UnavailableException" to "javax.servlet.ServletException" in the <exception-type> tag of web.xml and throw UnavailableException in my servlet, the specified html page is displayed.
I m using Tomcat 4.0.1.
Please help!
Thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic