You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Heligon Sandra <sa...@nextream.fr> on 2002/10/01 18:31:08 UTC
URGENT lost modifications for the web.xml file
Hi,
I added the following element in my web.xml file:
<!DOCTYPE web-app PUBLIC
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<listener>
<listener-class>
com.entreprise.My_ServletContextListener
</listener-class>
</listener>
I saved the file. I compile my application, I close the web.xml
file and open it again the file is updated.
But when I run the application, the web.xml is modified and I lost
the listener entrie why ?
If I added the following entrie
<error-page>
<exception-type>org.omg.CORBA.UserException.Toto</exception-type>
<location>/pages/errorPage.jsp</location>
</error-page>
When I run my application the entrie is yet available.
why it is not the case for listener element ?
I use Tomcat4.0.4.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: URGENT lost modifications for the web.xml file
Posted by "Sexton, George" <gs...@mhsoftware.com>.
Please read this FAQ:
http://www.tuxedo.org/~esr/faqs/smart-questions.html
Specifically read the topic:
Don't flag your question as "Urgent"...
Once you have read this, please repost your inquiry.
George Sexton
MH Software, Inc.
Voice: 303 438 9585
http://www.mhsoftware.com
-----Original Message-----
From: Heligon Sandra [mailto:sandra.heligon@nextream.fr]
Sent: 01 October, 2002 10:31 AM
To: 'tomcat-user@jakarta.apache.org'
Subject: URGENT lost modifications for the web.xml file
Importance: High
Hi,
I added the following element in my web.xml file:
<!DOCTYPE web-app PUBLIC
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<listener>
<listener-class>
com.entreprise.My_ServletContextListener
</listener-class>
</listener>
I saved the file. I compile my application, I close the web.xml
file and open it again the file is updated.
But when I run the application, the web.xml is modified and I lost
the listener entrie why ?
If I added the following entrie
<error-page>
<exception-type>org.omg.CORBA.UserException.Toto</exception-type>
<location>/pages/errorPage.jsp</location>
</error-page>
When I run my application the entrie is yet available.
why it is not the case for listener element ?
I use Tomcat4.0.4.
--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>