• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

road_blocked.jsp

 
Jeffrey Spaulding
Ranch Hand
Posts: 149
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
assuming i have a tomcat instance that's running several different webapps:
I need to stop some of the apps during the day to apply changes etc.
If a user tries to open one of these webapps he's confronted with
this nasty errorpage
"HTTP Status 503 - This application is not currently available"
Is there a way to show a generic errorpage for ALL webapps
"[company Logo] This service is temporarily not available jaddjaddajadda"
Any tips?
Thank you, J.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13055
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes there is a mechanism to associate errors with HTML web pages. In a web.xml deployment descriptor you can have an error-page element which takes a error-code that gets matched and a location . The example in the API looks like:

Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic