1 Reply Latest reply on Oct 6, 2003 5:08 AM by Vimarsh P Vasavada

    filter tag not working on jboss-3.2.1_tomcat-4.1.24

    harpreetset Newbie

      Hi
      I am trying to put the following filter tag in my web.xml on jboss-3.2.1_tomcat-4.1.24 version of jboss.


      <filter-name>IEFilter</filter-name>
      <filter-class>com.SessionChecker</filter-class>


      <filter-mapping>
      <filter-name>IEFilter</filter-name>
      <url-pattern>/ctrl</url-pattern>
      </filter-mapping>


      <filter-name>IEFilterJSP</filter-name>
      <filter-class>com.EOTSessionChecker</filter-class>


      <filter-mapping>
      <filter-name>IEFilterJSP</filter-name>
      <url-pattern>/jsp/*</url-pattern>
      </filter-mapping>


      but it gives me the following error:

      19:52:12,312 ERROR [Digester] Parse Error at line 9 column 10: Element type "fil
      ter" must be declared.
      org.xml.sax.SAXParseException: Element type "filter" must be declared.
      at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1213
      )
      at org.apache.xerces.validators.common.XMLValidator.reportRecoverableXML
      Error(XMLValidator.java:1807)
      at org.apache.xerces.validators.common.XMLValidator.validateElementAndAt
      tributes(XMLValidator.java:3633)
      at org.apache.xerces.validators.common.XMLValidator.callStartElement(XML
      Validator.java:1229)
      at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.disp
      atch(XMLDocumentScanner.java:1171)
      at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentS
      canner.java:381)
      at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
      at org.apache.commons.digester.Digester.parse(Digester.java:1543)
      at org.apache.catalina.startup.ContextConfig.applicationConfig(ContextCo
      nfig.java:282)
      at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:63
      9)
      at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfi
      g.java:243)
      at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
      eSupport.java:166)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:3
      567)
      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
      .java:821)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:80
      7)
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)

      at org.jboss.web.catalina.EmbeddedCatalinaService41.createWebContext(Emb
      eddedCatalinaService41.java:417)
      at org.jboss.web.catalina.EmbeddedCatalinaService41.performDeploy(Embedd
      edCatalinaService41.java:266)
      at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:35
      7)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:640)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:613)
      at sun.reflect.GeneratedMethodAccessor45.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
      nDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy7.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
      tScanner.java:302)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
      canner.java:458)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
      doScan(AbstractDeploymentScanner.java:200)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
      loop(AbstractDeploymentScanner.java:211)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
      run(AbstractDeploymentScanner.java:190)

      Can anybody help me out in how to configure filter in jboss with tomcat. Where do i have to configure it