tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gregory, Carlton" <cgreg...@scn.spawar.navy.mil>
Subject Adherence to DTD issue
Date Thu, 17 Jul 2003 17:42:37 GMT

I have altered a web.xml file in my \webapps\test\WEB-INF directory.
Upon startup I get a parse error about the structure of the file.
I opened the file in XML spy and it said it was an <servlet> tag unexpected
child element.
I then downloaded the DTD from sun and printed it out. I am adhering to the
DTD from what it seems.
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
	<servlet>
		<servlet-name>
       		 Hello3
     		</servlet-name>
		<servlet-class>
           		 Hello3
         	</servlet-class>
	</servlet>
	<servlet-mapping>
		<servlet-name>
            		Hello3
         	</servlet-name>
		<url-pattern>
            		/test/Hello3
       	</url-pattern>
	</servlet-mapping>
	<servlet> ---  IT GIVES THE ERROR AT THIS LINE
		<servlet-name>
       		 SurveyServlet
     		</servlet-name>
		<servlet-class>
            		SurveyServlet
         	</servlet-class>
	</servlet>
	<servlet-mapping>
		<servlet-name>
            		SurveyServlet
         	</servlet-name>
		<url-pattern>
            		/MedSurvey
       	</url-pattern>
	</servlet-mapping>

Any ideas? Need more info?


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message