tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <>
Subject RE: Web.xml mistake results in <Context> unavailable !?
Date Thu, 06 Feb 2003 14:26:02 GMT
Someone else already suggested workarounds.  Just thought I'd chime in
with my 2 cents (US): you're on a wrong track.  It is your
responsibility (or the responsibility of whoever packages your
application for deployment) to get the web.xml file correct.  It has a
clearly defined DTD.

I don't think tomcat should try to be lenient of errors in this file at
all.  It gives you the line number and column where the error occurs,
with a (usually) descriptive message.  IMHO, that's perfect behavior on
the server's part.

Fix it and restart the server.  If you have the manager app enabled, fix
it and you don't even have to restart the server, just reload your app.

Usually, the web.xml should have been validated in a testing environment
long before shipping to production.  

To each their own, I realize, but as I mentioned above, just my .02USD

Yoav Shapira
Millennium ChemInformatics

>-----Original Message-----
>From: Kevin Conaway []
>Sent: Wednesday, February 05, 2003 6:40 PM
>To: Tomcat Users List
>Subject: Re: Web.xml mistake results in <Context> unavailable !?
>That is assuming the manager application is enabled.  I was hoping for
>of an internal solution that Tomcat can do itself.  This is being used
>educational environment and everytime a student blows up his context,
>shouldnt have to run to the prof to reload the application...
>----- Original Message -----
>From: "Sean Dockery" <>
>To: "Tomcat Users List" <>
>Sent: Wednesday, February 05, 2003 6:38 PM
>Subject: Re: Web.xml mistake results in <Context> unavailable !?
>> One of the following should work...
>> http://localhost:8080/manager/html/start?path=/yourwebapp
>> or
>> http://localhost:8080/manager/html/reload?path=/yourwebapp
>> This will prompt the Tomcat manager application to either start or
>> your application.
>> At 17:59 2003-02-05 -0500, you wrote:
>> >In Tomcat 4.1.18, i have several different contexts each with a
>> >corresponding WEB-INF hierarchy and web.xml. Now, if I make a
mistake in
>> >the web.xml like i forget to end a </servlet> tag, it says that
there is
>> >parse error and then "Marking this application unavailable due to
>> >error(s)" and I cannot use the context ever again until the server
>> >restarts. How can i fix this so the context gets checkd again at
>> >
>> >Kevin
>> Sean Dockery
>> Certified Java Web Component Developer
>> Certified Delphi Programmer
>> SBD Consultants
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail:
>> For additional commands, e-mail:
>To unsubscribe, e-mail:
>For additional commands, e-mail:

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

View raw message