1 Reply Latest reply on Jan 29, 2004 4:15 PM by yibing Li

    Element type "filter" must be declared.

    yibing Li Newbie


      "yli" wrote:
      While I am trying to deploy my EAR file, EJBs are deployed successfully but while deploying the war file, the following errors are shown up:

      004-01-29 11:52:38,514 INFO [org.jboss.web.tomcat.tc4.EmbeddedTomcatService] deploy, ctxPath=, warUrl=file:/D:/jboss-3.2.3/server/default/tmp/deploy/tmp48827GNX-CPM-20040129.ear-contents/GNX-CPMWeb.war/
      2004-01-29 11:52:39,342 ERROR [org.apache.commons.digester.Digester] Parse Error at line 11 column 13: Element type "filter" must be declared.
      org.xml.sax.SAXParseException: Element type "filter" must be declared.
      org.xml.sax.SAXParseException org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(org.apache.xerces.xni.parser.XMLParseException)
      void org.apache.xerces.util.ErrorHandlerWrapper.error(java.lang.String, java.lang.String, org.apache.xerces.xni.parser.XMLParseException)
      void org.apache.xerces.impl.XMLErrorReporter.reportError(org.apache.xerces.xni.XMLLocator, java.lang.String, java.lang.String, java.lang.Object[], short)

      This seems related to xml parser or servlet.jar. I know filter is only compatible with servlet 2.3. But I am sure JBoss3.2.3 is using tomcat 4.1 and is servlet 2.3 compatible.

      Do I need to do anything to use filter in my web application?

      Please help.



        • 1. Re: Element type
          yibing Li Newbie


          "yli" wrote:
          Ok, after I modified my web.xml and put the following correct lines in web.xml and reorder each entries in web.xml. The problem is gone but I still have this error:

          15:52:05,131 ERROR [Digester] Parse Error at line 8 column 7: Element type "urn"
          must be declared.
          org.xml.sax.SAXParseException: Element type "urn" must be declared

          Do you know what is missing?