File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Websphere and the fly likes Custom Error Page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "Custom Error Page" Watch "Custom Error Page" New topic
Author

Custom Error Page

Ramesh Rajaram
Greenhorn

Joined: Aug 20, 2001
Posts: 8
Hi,
Could anyone tell me how to throw a Custom Error Page when the default server in WAS 3.5 is not running, instead of the usual "Internal Server Error" page.
thanks in Advance
Narendra Kamaraju
Greenhorn

Joined: Jul 18, 2001
Posts: 16
There is no way a webserver can send some custom error page when itself went down because of some problem.This can be achieved if you have another webserver installed beyond the firewall( AppServer resides within the firewall to make it more secure)to host all static HTML files.There you can configure the error page to throw the custom created error page incase if the default-server of the App Server is down.
I hope this will help.
Cheers,
Narendra.


Narendra Kamaraju
Ramesh Rajaram
Greenhorn

Joined: Aug 20, 2001
Posts: 8
Hi Narendra,

Here I mean that my webserver (e.g IBM HTTP Server) is still running. Only my Appserver is down. In that case whether it is possible to throw some static HTML Page from the webserver.
meddie katongole
Greenhorn

Joined: Aug 03, 2001
Posts: 19
Try using the "forward" tag, something like here below
<% if ((session.getValue("CDDist_No").equals("1005") {<br /> <jsp:forward page="CDDist.jsp"/>
<% } else { <br /> <%@ include file="CDError.html" <br /> <% }<br /> I intentionally missed the closing tags %> after the opening bracket which comes after ("1005") and after else { and after "CDError.html" because if I put them there the browser interpretes it as a program and does not show what I typed.
I hope this works
Originally posted by Ramesh Rajaram:
Hi Narendra,

Here I mean that my webserver (e.g IBM HTTP Server) is still running. Only my Appserver is down. In that case whether it is possible to throw some static HTML Page from the webserver.

[This message has been edited by meddie katongole (edited August 28, 2001).]
[This message has been edited by meddie katongole (edited August 28, 2001).]
Ramesh Rajaram
Greenhorn

Joined: Aug 20, 2001
Posts: 8
Any jsp tag requires the appserver so that it could be compiled. But, if the appserver is down how is it compiled?
Please correct me if I am wrong.
Thanks in advance
Depressed Phycho
Greenhorn

Joined: Feb 05, 2004
Posts: 1
Hi Ramesh,
I believe I am having the same problem as meddie. Here is the scenario: 1. The IBM Http Web Server is up. 2. For some unexplained reason, WebSphere Application Server goes down. 3. Is there a way for the IBM Http Web Server to redirect the user to a custom error page saying, "The application server is down". Currently, I am getting a 404 -page not found error, though true, is not accurate. "404 �page not found error" should only show up when a link is broken and a page is not found, not when the Application Server goes down. Any assistance with my problem will be greatly appreciated. Thanks in Advance.
Arvind Shukla
Ranch Hand

Joined: Jun 26, 2002
Posts: 38
I implemented this under same scenario i.e. web server is up but application server is down. Put the following directive inside httpd.conf
ErrorDocument 500 /redirect.html
Create your custom error page, name it to redirect.html and put it under docroot, by default which is <IHS_HOME>/htdocs folder.


Arvind,<br />IBM Certified WAS admin (Test 489, Test 340, Test341)
Subha Murthy
Greenhorn

Joined: Aug 16, 2005
Posts: 15
Hi,
Is this redirection (ErrorDocument) specific to a virtualhost? What if I have various applications which has the same virtualhost and I want one of the applications to get redirected?
Please hel me out.
thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Custom Error Page
 
Similar Threads
Error pages
inputFileUpload - uploadMaxFileSize
Error Page Not Found
custom 404 and 500 error pages in was 6.0