• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

error code 500 and java.lang exceptions in WebSphere

 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
When i do my deployment descriptor and want to capture a specific Exception to direct to another page, I thought that the following code does it, but it doecsn't seem to work. The error.jsp is always displayed, even with java.lang.NullPointerExceptions
<error-page>
<exception-type>java.lang.NullPointerException
</exception-type>
<location>/errorNull.jsp</location>
</error-page>
<error-page>
<error-code>500</error-code>
<location>/error.jsp</location>
</error-page>

Is this typical for all app servers or just WebSphere?
[ June 02, 2003: Message edited by: Ron Perich ]
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is a websphere-specific problem. Check this technote for a solution:

http://www-1.ibm.com/support/docview.wss?rs=180&uid=swg1PK55149
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic