Franck Borel wrote: > Hi all, > > I am using tomcat 5.5 and I am trying to implement a filter. > Now, I have setted the xmlValidation to "true". This causing some > strange sax errors: > > --------------------------------------------- > 2006-03-08 16:47:27,324 [main] ERROR > org.apache.commons.digester.Digester - Parse Error at line 45 column 11: > The content of element type "web-app" must match > "(icon?,display-name?,description?,distributable?,context-param*,filter*,fi >lter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mappi >ng*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,s >ecurity-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-loc >al-ref*)". org.xml.sax.SAXParseException: The content of element type > "web-app" must match > "(icon?,display-name?,description?,distributable?,context-param*,filter*,fi >lter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mappi >ng*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,s >ecurity-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-loc >al-ref*)". ...
The error message says it all: you've got the sequence of elements wrong. The <filter> has to be placed after <context-param>s (if any) and before <listener>s (if any) which in turn have to precede <servlet>s (if any) etc. Regards mks --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]