Re: Error with THIS web.xml file:
On Tuesday 10 December 2002 01:02, Johnson, Garrett wrote: For the life of me, I can't figure out why there's a problem, but Tomcat refuses to parse this! I keeps complaining about line 20, column 11, which is where my first servlet tag starts. Is there something stupid I'm missing here? The order of the elements is important. Place the welcome-file-list after the servlet-mapping. Regads, Cees -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Error with THIS web.xml file:
According to the official DTD, the order of elements in web.xml matters. If you move your welcome-file-list after the servlet-mapping, it should work ok. You can find the correct order by reading the DTD at the URL in the DOCTYPE, but here it is for convenience: !ELEMENT web-app (icon?, display-name?, description?, distributable?, context-param*, filter*, filter-mapping*, listener*, servlet*, servlet-mapping*, session-config?, mime-mapping*, welcome-file-list?, error-page*, taglib*, resource-env-ref*, resource-ref*, security-constraint*, login-config?, security-role*, env-entry*, ejb-ref*, ejb-local-ref*) -- Tim Moore / Blackboard Inc. / Software Engineer 1899 L Street, NW / 5th Floor / Washington, DC 20036 Phone 202-463-4860 ext. 258 / Fax 202-463-4863 -Original Message- From: Johnson, Garrett [mailto:[EMAIL PROTECTED]] Sent: Monday, December 09, 2002 7:03 PM To: 'Tomcat Users List' Subject: Error with THIS web.xml file: This is my web.xml file: ?xml version=1.0 encoding=ISO-8859-1? !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 display-nameCarpool Database/display-name descriptionUtility to mitigate the impact of the impending transit strike/description welcome-file-list welcome-filestart.jsp/welcome-file welcome-filestart.html/welcome-file welcome-fileindex.html/welcome-file welcome-fileindex.htm/welcome-file welcome-fileindex.jsp/welcome-file /welcome-file-list servlet servlet-nameDisplayServlet/servlet-name display-nameDisplayServlet/display-name servlet-classDisplayServlet/servlet-class /servlet servlet-mapping servlet-nameDisplayServlet/servlet-name url-pattern/DisplayServlet/url-pattern /servlet-mapping /web-app For the life of me, I can't figure out why there's a problem, but Tomcat refuses to parse this! I keeps complaining about line 20, column 11, which is where my first servlet tag starts. Is there something stupid I'm missing here? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Error with THIS web.xml file:
Ah... That did it. Where can I get a hold of the official DTD? Can I just puke that URL into IE's location bar to download it? -Original Message- From: Tim Moore [mailto:[EMAIL PROTECTED]] Sent: Monday, December 09, 2002 7:06 PM To: Tomcat Users List Subject: RE: Error with THIS web.xml file: According to the official DTD, the order of elements in web.xml matters. If you move your welcome-file-list after the servlet-mapping, it should work ok. You can find the correct order by reading the DTD at the URL in the DOCTYPE, but here it is for convenience: !ELEMENT web-app (icon?, display-name?, description?, distributable?, context-param*, filter*, filter-mapping*, listener*, servlet*, servlet-mapping*, session-config?, mime-mapping*, welcome-file-list?, error-page*, taglib*, resource-env-ref*, resource-ref*, security-constraint*, login-config?, security-role*, env-entry*, ejb-ref*, ejb-local-ref*) -- Tim Moore / Blackboard Inc. / Software Engineer 1899 L Street, NW / 5th Floor / Washington, DC 20036 Phone 202-463-4860 ext. 258 / Fax 202-463-4863 -Original Message- From: Johnson, Garrett [mailto:[EMAIL PROTECTED]] Sent: Monday, December 09, 2002 7:03 PM To: 'Tomcat Users List' Subject: Error with THIS web.xml file: This is my web.xml file: ?xml version=1.0 encoding=ISO-8859-1? !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 display-nameCarpool Database/display-name descriptionUtility to mitigate the impact of the impending transit strike/description welcome-file-list welcome-filestart.jsp/welcome-file welcome-filestart.html/welcome-file welcome-fileindex.html/welcome-file welcome-fileindex.htm/welcome-file welcome-fileindex.jsp/welcome-file /welcome-file-list servlet servlet-nameDisplayServlet/servlet-name display-nameDisplayServlet/display-name servlet-classDisplayServlet/servlet-class /servlet servlet-mapping servlet-nameDisplayServlet/servlet-name url-pattern/DisplayServlet/url-pattern /servlet-mapping /web-app For the life of me, I can't figure out why there's a problem, but Tomcat refuses to parse this! I keeps complaining about line 20, column 11, which is where my first servlet tag starts. Is there something stupid I'm missing here? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Error with THIS web.xml file:
Yes, exactly! http://java.sun.com/dtd/web-app_2_3.dtd is a real URL for the DTD. -- Tim Moore / Blackboard Inc. / Software Engineer 1899 L Street, NW / 5th Floor / Washington, DC 20036 Phone 202-463-4860 ext. 258 / Fax 202-463-4863 -Original Message- From: Johnson, Garrett [mailto:[EMAIL PROTECTED]] Sent: Monday, December 09, 2002 7:09 PM To: 'Tomcat Users List' Subject: RE: Error with THIS web.xml file: Ah... That did it. Where can I get a hold of the official DTD? Can I just puke that URL into IE's location bar to download it? -Original Message- From: Tim Moore [mailto:[EMAIL PROTECTED]] Sent: Monday, December 09, 2002 7:06 PM To: Tomcat Users List Subject: RE: Error with THIS web.xml file: According to the official DTD, the order of elements in web.xml matters. If you move your welcome-file-list after the servlet-mapping, it should work ok. You can find the correct order by reading the DTD at the URL in the DOCTYPE, but here it is for convenience: !ELEMENT web-app (icon?, display-name?, description?, distributable?, context-param*, filter*, filter-mapping*, listener*, servlet*, servlet-mapping*, session-config?, mime-mapping*, welcome-file-list?, error-page*, taglib*, resource-env-ref*, resource-ref*, security-constraint*, login-config?, security-role*, env-entry*, ejb-ref*, ejb-local-ref*) -- Tim Moore / Blackboard Inc. / Software Engineer 1899 L Street, NW / 5th Floor / Washington, DC 20036 Phone 202-463-4860 ext. 258 / Fax 202-463-4863 -Original Message- From: Johnson, Garrett [mailto:[EMAIL PROTECTED]] Sent: Monday, December 09, 2002 7:03 PM To: 'Tomcat Users List' Subject: Error with THIS web.xml file: This is my web.xml file: ?xml version=1.0 encoding=ISO-8859-1? !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 display-nameCarpool Database/display-name descriptionUtility to mitigate the impact of the impending transit strike/description welcome-file-list welcome-filestart.jsp/welcome-file welcome-filestart.html/welcome-file welcome-fileindex.html/welcome-file welcome-fileindex.htm/welcome-file welcome-fileindex.jsp/welcome-file /welcome-file-list servlet servlet-nameDisplayServlet/servlet-name display-nameDisplayServlet/display-name servlet-classDisplayServlet/servlet-class /servlet servlet-mapping servlet-nameDisplayServlet/servlet-name url-pattern/DisplayServlet/url-pattern /servlet-mapping /web-app For the life of me, I can't figure out why there's a problem, but Tomcat refuses to parse this! I keeps complaining about line 20, column 11, which is where my first servlet tag starts. Is there something stupid I'm missing here? -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]