Howdy, Tomcat 4.x implements the Servlet Specification, v2.3. See the complete thing at http://jcp.org/aboutJava/communityprocess/first/jsr053/index.html
Accordingly, tomcat doesn't determine the DTD for web.xml. Tomcat just validates against that DTD. The v2.3 DTD specifies all <servlet> tags must come before any <servlet-mapping> tags. So it's the responsibility of the web.xml owner to migrate it as part of moving from tomcat 3.x to 4.x. I hope that answers your question ;) Have a speedy and easy migration, Yoav Shapira Millennium ChemInformatics >-----Original Message----- >From: Jim Michael [mailto:[EMAIL PROTECTED]] >Sent: Monday, June 10, 2002 3:08 PM >To: [EMAIL PROTECTED] >Subject: Tomcat 4 web.xml vs. Tomcat 3 > >I'm seeing some odd behavior since converting from Tomcat 3.x to 4.0... >it seems that 4.0 is extremely picky about the *order* things are in >within WEB.XML. > >For example, with Tomcat 3.x I could do > ><servlet> >... ></servlet> > ><servlet-mapping> >... ></servlet-mapping> > ><servlet> >... another servlet ></servlet> > ><servlet-mapping> >...another servlet mapping ></servlet-mapping> > >etc, etc. > >The order of servet/servlet-mapping tags was irrlevevent as long as >everything was correct. > >Now with Tomcat 4, it refuses to load a servlet unless *all* <servlet> >tags come first, then all associated <servlet-mapping> tags come >after... > >Is this design intentional, or is it a bug? Its not a huge deal, but >I'm used to having my web.xml files formatted for better readability and >TC4 doesn't like it. Why should it care if I want to put each ><servlet-mapping> tag right after its associated <servlet> tag? > >-- >To unsubscribe, e-mail: <mailto:tomcat-user- >[EMAIL PROTECTED]> >For additional commands, e-mail: <mailto:tomcat-user- >[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
