• 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

road_blocked.jsp

 
Ranch Hand
Posts: 149
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic