Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > how to customise 503 pages in tomcat

Reply
Thread Tools

how to customise 503 pages in tomcat

 
 
Yash
Guest
Posts: n/a
 
      05-15-2007
Hi all,
I found that while we are updating our application, the application
is not known to tomcat, untill it is completed. So tomcat sends 503
page as resource not found. I want to know is virtual hosting is the
right way to deal with this issue.

Is it possible to customise the 503 page, so that, for any resource
not found issue, tomcat displays the customised page.
I am trying to set the page in tomcat directory itself. I have gone
through all xml files in tomcat directory, along with xml files in
other directories like conf etc. I did not find any setting for 503
pages. If you know how to set this page. please write me.
Is this solution is appropriate?

Thanks in advance

 
Reply With Quote
 
 
 
 
Yash
Guest
Posts: n/a
 
      05-15-2007
On May 15, 11:48 am, Yash <qayy...@gmail.com> wrote:
> Hi all,
> I found that while we are updating our application, the application
> is not known to tomcat, untill it is completed. So tomcat sends 503
> page as resource not found. I want to know is virtual hosting is the
> right way to deal with this issue.
>
> Is it possible to customise the 503 page, so that, for any resource
> not found issue, tomcat displays the customised page.
> I am trying to set the page in tomcat directory itself. I have gone
> through all xml files in tomcat directory, along with xml files in
> other directories like conf etc. I did not find any setting for 503
> pages. If you know how to set this page. please write me.
> Is this solution is appropriate?
>
> Thanks in advance


Hi all,
I have added the following code in tomcat5.5.12/conf/web.xml after
welcome file list tab

<error-page>
<error-code>404</error-code>
<location>/error404.html</location>
</error-page>

Now when I try for a resource that is not available in my tomcat, the
result is a blank page instead of 404/- default page. That means the
code worked fine but the error404.html is not found at the right
place.
I have tried to paste the simple html file that many different folders
like in tomcat home itself, then in webapps, server, server/webapps/,
server/webapps/manager, etc. But the it always returns blank page.

For simplicity I have used single line to display the error page. the
code in error404.html is as follows:
<html>
<title> 404 resource not found </title>
<body>



This is 404 error page



</body>

</html>


Can any one please tell where am I going wrong.

Thanks

 
Reply With Quote
 
 
 
 
Lee
Guest
Posts: n/a
 
      05-15-2007
Yash said:

>I have added the following code in tomcat5.5.12/conf/web.xml after
>welcome file list tab
>
><error-page>
> <error-code>404</error-code>
> <location>/error404.html</location>
></error-page>
>
>Can any one please tell where am I going wrong.


The most obvious mistake seems to be that you're asking
questions about Tomcat configuration in a Javascript newsgroup.
You'll find better answers in an appropriate newsgroup.
At a glance, alt.apache.configuration looks like a good place.


--

 
Reply With Quote
 
Yash
Guest
Posts: n/a
 
      05-16-2007
On May 15, 4:39 pm, Lee <REM0VElbspamt...@cox.net> wrote:
> Yash said:
>
> >I have added the following code in tomcat5.5.12/conf/web.xml after
> >welcome file list tab

>
> ><error-page>
> > <error-code>404</error-code>
> > <location>/error404.html</location>
> ></error-page>

>
> >Can any one please tell where am I going wrong.

>
> The most obvious mistake seems to be that you're asking
> questions about Tomcat configuration in a Javascript newsgroup.
> You'll find better answers in an appropriate newsgroup.
> At a glance, alt.apache.configuration looks like a good place.
>
> --



Thank you very much and sorry for misplacecd query.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
How to Customise an ASP 2.0 grid Jason Myers ASP .Net 0 03-28-2006 12:54 PM
How to thow a customise exception ad ASP .Net 1 06-06-2005 10:41 AM
Apache/Tomcat returning Error 503 Ken Ramirez Java 0 05-12-2004 07:36 PM
Customise Java plug-in download from local server instead of from the internet? hood Java 1 12-30-2003 06:50 PM



Advertisments