aspose file tools*
The moose likes Tomcat and the fly likes Can I hide tomcat version? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Can I hide tomcat version?" Watch "Can I hide tomcat version?" New topic
Author

Can I hide tomcat version?

Antonio Goodman
Greenhorn

Joined: Oct 01, 2002
Posts: 19
Can I hide tomcat version?
If i have exception in my apllication then tomcat shows the version.
How to hide it?


thanks for any reply
Scott Dunbar
Ranch Hand

Joined: Sep 23, 2004
Posts: 245
I would be a bit concerned that you are trying to implement security through obscurity but the key is to have your web application set up correctly. In the event of an error your web app needs to have the web.xml set up. For example:



This tells Tomcat to redirect to /500.html in the event of a 500 error (the most common error when you have an issue with your JSP).


<a href="http://forums.hotjoe.com/forums/list.page" target="_blank" rel="nofollow">Java forums using Java software</a> - Come and help get them started.
Antonio Goodman
Greenhorn

Joined: Oct 01, 2002
Posts: 19
Thank you very much, Scott.

I think, this solution is that i needed

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Can I hide tomcat version?