tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alessio Fiore <>
Subject R: application setup problem
Date Wed, 08 May 2002 12:55:35 GMT
Hi Ajit, be sure that the order of tags in your web.xml file is following
official specifications:

<!ELEMENT web-app (icon?, display-name?, description?, distributable?,
context-param*, servlet*, servlet-mapping*, session-config?,
mime-mapping*, welcome-file-list?, error-page*, taglib*,
resource-ref*, security-constraint*, login-config?, security-role*,
env-entry*, ejb-ref*)>

If not, your context configuration cannot be parsed by tomcat and your
webapp doesn't work.


-----Messaggio originale-----
Da: Ajit Bhat []
Inviato: mercoledì 8 maggio 2002 12.31
A: Tomcat User
Oggetto: application setup problem

Application setup problem : My application is not running

I have installed Tomcat 4.0.3 alongwith Apache 1.3.20 on Red Hat Linux 6.2.
I can see the index page telling me that Tomcat is running fine. Also, I can
execute properly the examples that come alongwith the Tomcat server. 

But now, when I try to create my new application ( called cms ) in webapps
folder and create my own web.xml file in the WEB-INF folder of the
application, complying to the rules of Tomcat 4.0.3 and Servlet
Specification 2.3, I get error page when I try to execute my application in
web browser. If I remove my <servlet> and <servlet-mapping> tags from my
web.xml and keep only the <web-app> with it's DOCTYPE declaration, then I
don't get any error. But as soon as I add my <servlet> and <servlet mapping>
tags, it displays the following error :
Apache Tomcat/4.0.3 - HTTP Status 404 - /cms/


type Status report

message /cms/

description The requested resource (/cms/) is not available.


At times I also get some error about WebApp & WarpConnection which I am not
able to understand fully.

Also, sometimes the examples which were working fine earlier stop working
and display error page when I modify my application's web.xml and restart

I have made necessary additions of setting up Context in server.xml of

Is there anything else I need to add or how do I proceed further in my
debugging and fixing up the problem ?


- Disclaimer -
This email and any attachments thereto may contain information which is
confidential and/or protected by intellectual property rights and are
intended for the sole use of the recipient(s) named above. Any use of the
information contained herein (including, but not limited to, total or
partial reproduction, communication or distribution in any form) or the
taking of any action in reliance on the contents, by persons other than the
designated recipient(s) is strictly prohibited.

If you have received this email in error, please notify the sender either by
telephone or by email and delete the material from any computer.

Thank you for your cooperation. 

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message