473,406 Members | 2,867 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

how to customise 503 pages in tomcat

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

May 15 '07 #1
3 3057
On May 15, 11:48 am, Yash <qayy...@gmail.comwrote:
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>
<title404 resource not found </title>
<body>

This is 404 error page

</body>

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

Thanks

May 15 '07 #2
Lee
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.
--

May 15 '07 #3
On May 15, 4:39 pm, Lee <REM0VElbspamt...@cox.netwrote:
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.

May 16 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Mat | last post by:
Hi. I want to change the standard error pages in my tomcat webserver (Debian Woody)... ( Apache Tomcat/4.0.3 - HTTP Status 404 - ... ) Could someone help me plz? Tnx in advance, sry 4 my english...
0
by: Revenge | last post by:
hi all, i've a JBuilder project with some packages and some jsp pages using these packages. When i try to build the project , there aren't errors or warnings but the jsp pages are not built...
6
by: Thomas Connolly | last post by:
I have 2 pages referencing the same codebehind file in my project. Originally the pages referenced separate code behind files. Once I changed the reference to the same file, everything worked...
5
by: pmelies | last post by:
One of our web servers is not handling requests for ASP.net pages. We get a "A dynamic link library (DLL) initialization routine failed." error message, though nothing is recorded in the event...
6
by: Abhishek Srivastava | last post by:
Hello All, I am developing a page which has a complex layout. This layout cannot be made using VS alone, so I have to go into the html view and edit the html myself. The problem is that...
4
by: Steve Wolfie | last post by:
Hello all: Again, let me thank everyone who has helped in the past. Can't wait till I can help out with some advice of my own. Now, I am building an app that wishes to retrieve the output of...
5
by: Nalaka | last post by:
Hi, When an image is put on a master page... the url to th eimage is set relatve to the master page. (at least don't know how top set an absolute URL to image) But the when a content page is...
5
by: Tsair | last post by:
I do a customise DataGridColumn with a UserControl (TextBox + Button for Calender), DataGridView does not show the data content of the column.
9
by: markla | last post by:
Hi, I have an EDM model, which I'm rendering using DynamicData pages. I need to add a derived/calculated field. For example, in a "Person" entity, I have LastName and FirstName. I need to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.