Uploaded image for project: 'Geronimo'
  1. Geronimo
  2. GERONIMO-2664

Servlet Filter Error

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-M1, 2.0-M2, 2.0-M5
    • Fix Version/s: 2.0-M3
    • Component/s: Jetty, Tomcat
    • Security Level: public (Regular issues)
    • Labels:
      None

      Description

      Trying out servlet name with a wild card ( * ) in Filter throws exception in Jetty. In tomcat the filter is not called at all

      <filter-mapping>
      <filter-name>Sample Filter</filter-name>
      <servlet-name>*</servlet-name>
      </filter-mapping>

      instead of

      <filter-name>Sample Filter</filter-name>
      <!-- <servlet-name>*</servlet-name> -->
      <servlet-name>SampleServlet</servlet-name>
      <servlet-name>AnotherSampleServlet</servlet-name>

      Jetty

      14:21:50,780 ERROR [Deployer] Deployment failed due to
      java.lang.AssertionError:
      javax.management.MalformedObjectNameException: Invalid character `*'
      in value
      at org.apache.geronimo.kernel.Jsr77Naming.createObjectName(Jsr77Naming.java:112)
      at org.apache.geronimo.kernel.Jsr77Naming.createChildName(Jsr77Naming.java:80)
      at org.apache.geronimo.kernel.Jsr77Naming.createChildName(Jsr77Naming.java:54)
      at org.apache.geronimo.jetty6.deployment.JettyModuleBuilder.addFilterMappingsGBeans(JettyModuleBuilder.java:614)
      at org.apache.geronimo.jetty6.deployment.JettyModuleBuilder.addGBeans(JettyModuleBuilder.java:483)
      at org.apache.geronimo.jetty6.deployment.JettyModuleBuilder$$FastClassByCGLIB$$1a00be84.invoke(<generated>)
      at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
      at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
      at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124)
      at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:820)
      at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
      at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
      at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
      at org.apache.geronimo.j2ee.deployment.ModuleBuilder$$EnhancerByCGLIB$$8c79360e.addGBeans(<generated>)
      at org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder.addGBeans(SwitchingModuleBuilder.java:165)
      at org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder$$FastClassByCGLIB$$d0c31844.invoke(<generated>)
      at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
      at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
      at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124)
      at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:820)
      at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
      at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
      at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
      at org.apache.geronimo.j2ee.deployment.ModuleBuilder$$EnhancerByCGLIB$$8c79360e.addGBeans(<generated>)
      at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:572)
      at org.apache.geronimo.j2ee.deployment.EARConfigBuilder$$FastClassByCGLIB$$38e56ec6.invoke(<generated>)
      at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
      at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
      at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124)
      at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:820)
      at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
      at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
      at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
      at org.apache.geronimo.j2ee.deployment.CorbaGBeanNameSource$$EnhancerByCGLIB$$c3a6b023.buildConfiguration(<generated>)
      at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:302)
      at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:124)
      at org.apache.geronimo.deployment.Deployer$$FastClassByCGLIB$$734a235d.invoke(<generated>)
      at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
      at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
      at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124)
      at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:855)
      at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:239)
      at org.apache.geronimo.deployment.plugin.local.AbstractDeployCommand.doDeploy(AbstractDeployCommand.java:114)
      at org.apache.geronimo.deployment.plugin.local.RedeployCommand.redeploySameConfiguration(RedeployCommand.java:224)
      at org.apache.geronimo.deployment.plugin.local.RedeployCommand.run(RedeployCommand.java:100)
      at java.lang.Thread.run(Thread.java:595)
      Caused by: javax.management.MalformedObjectNameException: Invalid
      character `*' in value
      at javax.management.ObjectName.parseValue(ObjectName.java:870)
      at javax.management.ObjectName.checkValue(ObjectName.java:901)
      at javax.management.ObjectName.construct(ObjectName.java:636)
      at javax.management.ObjectName.<init>(ObjectName.java:1348)
      at javax.management.ObjectName.getInstance(ObjectName.java:1247)
      at org.apache.geronimo.kernel.Jsr77Naming.createObjectName(Jsr77Naming.java:110)
      ... 45 more

        Attachments

          Activity

            People

            • Assignee:
              pmcmahan Paul Franklin McMahan
              Reporter:
              krishnakumarb Krishnakumar B
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: