Question

My JSP based wesite is already in production, running over OC4J (managed by opmnctl). When the application is down, users get a 500 error page. This is not a top-level domain, it is like:

http://localhost/myJspApp

How can I implement a 'welcome' page? it needs to show login screen if the application is running, otherwise show a 'Site Under Maintenance' message in case of OC4J being down.

I am sure it is not possible to use JSP on this welcome page when OC4J is down (altough it was desirable because application status is stored in a table, and it could be easily fetched from db using JSP).

Was it helpful?

Solution

If the OC4J is down, it means that you have no container to run your JSPs.
But, you can still return a nice error page from a different site or HTML. For doing that you need to configure the Apache HTTP server. This is done in the httpd.conf file, using the ErrorDocument part.
Look here for more details

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top