0

I want to hide the details of apache tomcat server from the user when error is occured.For ex - i want to hide the information which is highlighted in the attached screenshot, i want my own message at this place.enter image description here

Lokesh Rathor
  • 167
  • 4
  • 12
  • Welcome to SO, please be a bit more specific when asking question: what have you tried, what do you expect, etc. See [how to ask](http://stackoverflow.com/help/how-to-ask) – Nehal Dec 18 '15 at 05:47

2 Answers2

0

In your Tomcat web.xml file, Edit to put entry below to have your custom page

<error-page>  
   <error-code>404</error-code>  
   <location>/NotFound.jsp</location>  
</error-page>  
Thanga
  • 7,811
  • 3
  • 19
  • 38
0

Use RestFul (jersey/RESTeasy) to build web app and write customized fault codes

here is the link explaining how RestFul handles exception/faults encapsulating server errors too

Community
  • 1
  • 1
snoopy
  • 44
  • 10