Hi 

I use tomcat 4.1.10 (with Apache 2 and mod_jk2)

In a very simple application i attempt to use JSTL librairie, so i put some taglib 
section in my web.xml ...
After that everything was wrong and tomcat see strange XML Error ..

In a very simple web.xml, i make some tests and the result is :
if i remove one of this tags (error-page, context-param or taglib) it's works 
if i let the three tags i have a SAXParseException in catalina.out

here is the small web.xml :

<?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>

  <error-page>
    <error-code>
      404
    </error-code>
    <location>
      /error_404.jsp
    </location>
  </error-page>
 
<context-param>
 <param-name>P1</param-name>
 <param-value>VAL1</param-value>
</context-param>

  <taglib>
    <taglib-uri>/fmt</taglib-uri>
    <taglib-location>/WEB-INF/fmt.tld</taglib-location>
  </taglib>
 
</web-app>

Error :
GRAVE: Parse Error at line 28 column 11: 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*)".

line 28 column 11 is the char just after </web-app>

Thanks for any help 
__
Max

Reply via email to