geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul McMahan (JIRA)" <j...@apache.org>
Subject [jira] Commented: (GERONIMO-2664) Servlet Filter Error
Date Thu, 01 Feb 2007 22:26:05 GMT

    [ https://issues.apache.org/jira/browse/GERONIMO-2664?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12469600
] 

Paul McMahan commented on GERONIMO-2664:
----------------------------------------

The problem in the tomcat assembly is due to tomcat lacking support for '*' as a servlet-name
in a filter-mapping.   I created tomcat bug 41521:
http://issues.apache.org/bugzilla/show_bug.cgi?id=41521
and attached a patch to fix the problem.

> Servlet Filter Error
> --------------------
>
>                 Key: GERONIMO-2664
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-2664
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: Jetty, Tomcat
>    Affects Versions: 2.0-M1, 2.0-M2, 2.0
>            Reporter: Krishnakumar B
>         Assigned To: Paul McMahan
>             Fix For: 2.0-beta1
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message