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
            Asked
            
        
        
            Active
            
        
            Viewed 109 times
        
    0
            
            
        - 
                    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 Answers
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
- 
                    
- 
                    
- 
                    i paste my error jsp file in ROOT directory but, still it is not showing the message which i have specified in jsp file.but now it doesn't show the apache tomcat version , i also need to show my custom jsp . – Lokesh Rathor Dec 19 '15 at 10:03
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
 
     
    