File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes using error-page tag in Deployment Descriptor Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "using error-page tag in Deployment Descriptor" Watch "using error-page tag in Deployment Descriptor" New topic
Author

using error-page tag in Deployment Descriptor

Shamsul Deen
Greenhorn

Joined: Nov 02, 2005
Posts: 2
Hi,

I have used page directive <%@ page errorPage="errorPage.jsp" %> is my badPage.jsp file. It works fine.

I am trying to use deployment descriptor tag <error-page> for the same.

<error-page>
<exception-type>java.lang.ArithmeticException</exception-type>
<location>/errorPage.jsp</location>
</error-page>

But it is comming up with HTTP 500 error - page not found.
If I refresh the page it start working fine.

Any help with Tomcat 5.0?

Kind regards,

Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

"ki303" -

Welcome to the JavaRanch! Please adjust your displayed name to meet the
JavaRanch Naming Policy. User names cannot be obviously fake and must constist of a first name and a last name.

You can change your user name here.

Thanks! and welcome to the JavaRanch!


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
yang donf
Greenhorn

Joined: Nov 16, 2005
Posts: 3
friend,"HTTP 500 error" means service error,"page not found" which error-code is 404
Pavan Kumar gorakavi
Greenhorn

Joined: Nov 09, 2005
Posts: 4
HTTP 500 occurs when the server encountered an unexpected condition which prevented it from fulfilling the request. I think it is nothing to do with page mapping, look at your tomcat configurations.
Shamsul Deen
Greenhorn

Joined: Nov 02, 2005
Posts: 2
Thnak You very much.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: using error-page tag in Deployment Descriptor