Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

using error-page tag in Deployment Descriptor

 
Shamsul Deen
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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!
 
yang donf
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
friend,"HTTP 500 error" means service error,"page not found" which error-code is 404
 
Pavan Kumar gorakavi
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thnak You very much.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic