http://jakarta.apache.org/tomcat/faq/misc.html#baddtd


If you can't figure it out by following the instructions here, post your web.xml and someone will point out the error (most commonly an element ordering error).

justin


At 06:02 PM 1/13/2004, you wrote:

I am seeing this in the tomcat.out log whenever I save the web.xml file


[ERROR] Digester - -Parse Error at line 143 column 11: The content of
element type "web-app" must match
"(icon?,display-name?,description?,distributable?,context-param*,filter*,fil
ter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mappin
g*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,se
curity-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-loca
l-ref*)".

<org.xml.sax.SAXParseException: The content of element type "web-app" must
match
"(icon?,display-name?,description?,distributable?,context-param*,filter*,fil
ter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mappin
g*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,se
curity-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-loca
l-ref*)".>

Line 143 column 11 is the end of the web.xml file.

I've tried saving the file in unix format but that didn't help.

I've removed sections of the web.xml file until all I am left with is the
<welcome-file-list> clause and it seemed happy after that. Adding in the
next section <servlet> and the above error returned.

Any ideas?

Could it be the JVM I am running? I have installed the IBMJava2-JRE-1.4.1-8
if that makes a difference.




Brennon Obst


Java Security Programmer iEnergy Main Branch 39 Melbourne St. / Brisbane p. (617) 3846-6666 [EMAIL PROTECTED]




______________________________________________
Justin Ruthenbeck
Software Engineer, NextEngine Inc.
justinr - AT - nextengine DOT com
Confidential. See:
http://www.nextengine.com/confidentiality.php
______________________________________________


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to