• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Customised Error page in case of exception in application server

 
Anshul Jain
Greenhorn
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends,

I am using WAS6.0(App server) and IHS(Web server) for my web application. I am facing one problem for showing customised error page in case of some exception occurs in application server. I have put ErrorDocument 500 in webserver (httpd.conf) which works if app server is down. But in case of exception in appserver it does not work. I have put <error-page> element in web.xml for 500 error-code and java.lang.Exception exception-type but it is still showing default page . Is there any other setting in appserver or webserver required for showing customised error page in case of exception in application server?

Thanks in advance,
Alok
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33700
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Alok,
When you say "exception in the application server", do you mean in your ear file or in the WebSphere server code itself?
 
Anshul Jain
Greenhorn
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jeanne, I am trying in case of ServletException (if my servlets doPost method throws ServletException). And if some ways is available for ServletException to show customised error page then is it applicable for other exceptions also like NullPointerException?

Thanks,
Alok
 
Bob Good
Ranch Hand
Posts: 86
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have this working in WAS 6.1.
Did you try updating the http plugin using the Integration Console?
Environment
Update global Web server plug-in configuration

Can you post an snippet of your web.xml?
Here is mine:

<error-page>
<exception-type>javax.servlet.ServletException</exception-type>
<location>/error.jsp</location>
</error-page>
-->

[ January 31, 2008: Message edited by: Bob Good ]
[ January 31, 2008: Message edited by: Bob Good ]
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic