1 Reply Latest reply on Dec 2, 2003 5:31 PM by Wouter Zoons

    Deployment choking on <filter> tag

    Kevin J Citron Newbie

      JBoss deployer is choking on the following
      filter mapping.


      <servlet-name>ServletRedirector</servlet-name>
      <servlet-class>
      org.apache.cactus.server.ServletTestRedirector
      </servlet-class>
      <init-param>
      <param-name>param1</param-name>
      <param-value>value1 used for testing</param-value>
      </init-param>



      <servlet-name>ServletTestRunner</servlet-name>
      <servlet-class>
      org.apache.cactus.server.runner.ServletTestRunner
      </servlet-class>


      <servlet-mapping>
      <servlet-name>ServletRedirector</servlet-name>
      <url-pattern>/ServletRedirector</url-pattern>
      </servlet-mapping>

      <servlet-mapping>
      <servlet-name>ServletTestRunner</servlet-name>
      <url-pattern>/ServletTestRunner</url-pattern>
      </servlet-mapping>


      <filter-name>FilterRedirector</filter-name>
      <filter-class>org.apache.cactus.server.FilterTestRedirector</filter-class>


      <filter-mapping>
      <filter-name>FilterRedirector</filter-name>
      <url-pattern>/FilterRedirector</url-pattern>
      </filter-mapping>



      <servlet-name>JspRedirector</servlet-name>
      <jsp-file>/jspRedirector.jsp</jsp-file>



      THIS IS THE EXCEPTION:------------------------------------------

      ERROR [org.apache.commons.digester.Digester] Parse Error at line 924 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*)".
      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*)"

      Oh, one more thing. I'm using the servlet 2.3 DTD Spec
      in the web.xml as such:
      <!DOCTYPE web-app
      PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
      "http://java.sun.com/dtd/web-app_2_3.dtd">


      JBoss3.2.2
      Mandrake 9.1
      JDK1.4.2_02

      Any help would be greatly appreciated.
      Thanks in advance.