Hello,
I am using JDK1.4 and Tomcat 4.0.3, lately, I've been having this problems:
Starting service Tomcat-Standalone
Apache Tomcat/4.0.3
PARSE error at line 29 column 11
org.xml.sax.SAXParseException: The content of element type "web-app" must match
"(icon?,display-name?,description?,distributable?,context-param*,filter*,filter-
mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welco
me-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security-const
raint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-ref*)".
Starting service Tomcat-Apache
Apache Tomcat/4.0.3
My web.xml file is:
<?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>
<welcome-file-list>
<welcome-file>retrieveRecord.html</welcome-file>
</welcome-file-list>
<servlet>
<servlet-name>retrieveData</servlet-name>
<servlet-class>retrieveData</servlet-class>
<init-param>
<param-name>driver</param-name>
<param-value>org.gjt.mm.mysql.Driver</param-value>
</init-param>
<init-param>
<param-name>jdbcurl</param-name>
<param-value>jdbc:mysql://localhost:3306/techDB</param-value>
</init-param>
<init-param>
<param-name>mysqluser</param-name>
<param-value>demo</param-value>
</init-param>
</servlet>
</web-app>
I had to remove one after another, all my servlet nodes and I'mleft with one. I still
have that parsing error?. This web.xml is according to the DTD, I can't figure out
where theproblem is?.
Any help is appreciated.
Line 29 is '</web-app>' tag.
regards,
Nik
__________________________________________________________
Get your FREE personalized e-mail at http://www.canada.com
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>