Do you have correctly ordered your tags in the web.xml
The error informs you that you don't respect the dtd.
You must write your web xml with the order :

(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*)

I think you should check again your web.xml

arno


> -----Message d'origine-----
> De:   [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> Date: jeudi 4 avril 2002 10:20
> A:    [EMAIL PROTECTED]
> Objet:        Problem with Struts and 2.3 Filters
> 
> Content-Transfer-Encoding: 7bit
> 
> Hi folks,
> 
> I am currently endeavouring to add Servlet 2.3 filtering (SiteMesh 1.3,
> in fact) to a Struts 1.0.2 application - but having no luck. I have
> searched the mailing list archives and can find no reference to this
> combination.
> 
> I have set up inside one webapp folder of Tomcat 4.0.3 a Struts
> application which works correctly if it has the Struts application
> web.xml file in WEB-INF.
> 
> Then I have copied into that same webapp directory a SiteMesh
> application. This also works correctly if it has the SiteMesh
> application web.xml file in WEB-INF (moving the Struts web.xml aside for
> now).
> 
> However, if I add the SiteMesh elements (<filter> and <filter-mapping>
> plus some taglibs) to the web.xml of the Struts application it fails.
> 
> In catalina.out I get:
> ---
> Starting service Tomcat-Standalone
> Apache Tomcat/4.0.3
> PARSE error at line 111 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*,welcome-file-list?,error-
> page*,taglib*,resource-env-ref*,resource-ref*,security-
> constraint*,login-config?,security-role*,env-entry*,ejb-
> ref*,ejb-local-ref*)".
> Starting service Tomcat-Apache
> Apache Tomcat/4.0.3
> ---
> 
> and the aplication does not work (file not found errors in the browser).
> 
> Line 111, column 11 is the very end of the file. I have run Tidy over
> web.xml to check for any XML errors and there are none according to that
> tool. 
> 
> If I comment out the SiteMesh elements and restart Tomcat then the
> Struts application starts working again.
> 
> If I comment out the Struts elements and restart Tomcat then the
> SiteMesh application starts working again.
> 
> Can anyone enlighten me as to why the XML parser thinks there is a
> problem? I have searched the web for published examples of web.xml that
> include filter and servlet definitions and they appear no different in
> spirit to what I have...
> 
> Any help is much appreciated!
> 
> Thanks,
> 
> Chris
> 
> 
> *********************************************************************
> This email and any files transmitted with it may be confidential and
> privileged.  It is intended solely for the use of the individual or
> parties to whom it is addressed. If you have received this email in
> error please forward it to [EMAIL PROTECTED] and delete all
> copies of this message immediately. Thank you.
> *********************************************************************
> << Fichier: ATT00014.txt>>


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

Reply via email to