ankurwal
asked on
How to detect weblogic app server is down and show custom error page
We are using iPlanet web server 6.0 as the web server and Weblogic as the app server. We need to show a custom error page when a request is made thru the web server and weblogic is down. Default msg comes up now is "No backend server available for connection: timed out after 10 seconds". Basically we need to detect if the app server (weblogic in this case) is down.
ASKER
Thanks for your reply. But it didnt work for me. I tried using this entry in obj.conf
===================
<Object name="weblogic" ppath="*/*.jsp">
Service fn="wl-proxy" WebLogicHost="127.0.0.1" WebLogicPort="7001"
ErrorPage="index.html"
</Object>
====================
But got the following error in the web logs:
[02/Apr/2003:14:27:36] failure ( 3024): Invalid configuration: File C:\Apps\iPlanet\Servers\ht tps-my-ins tance\conf ig\server. xml, line 32, column 11: Error processing obj.conf line 56: Directives must have at least one parameter [02/Apr/2003:14:27:36] info ( 3024): Suspend Httpd Service
Any clues?
===================
<Object name="weblogic" ppath="*/*.jsp">
Service fn="wl-proxy" WebLogicHost="127.0.0.1" WebLogicPort="7001"
ErrorPage="index.html"
</Object>
====================
But got the following error in the web logs:
[02/Apr/2003:14:27:36] failure ( 3024): Invalid configuration: File C:\Apps\iPlanet\Servers\ht
Any clues?
Try including the real IP address of your weblogic, and the port altogether as in my example.
And include the entire path of your error page. Is your weblogic listening on port 7001?
And include the entire path of your error page. Is your weblogic listening on port 7001?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I'm using iPlanet 4.1 along with weblogic, and when I connect them two using obj.conf, I put it this way, for example, for jsps:
<Object name="My_jsp" ppath="*/*.jsp">
Service fn="wl-proxy" WebLogicCluster="10.9.6.10
</Object>
and the same for servlets, for example.
This way, when I have my weblogic server down, my error page is the one that is shown in the web browswer.
Hope this helps you.