geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Krishnakumar B" <www....@gmail.com>
Subject Servlet Filter error in 2.0-SNAPSHOT
Date Thu, 14 Dec 2006 09:51:28 GMT
Hi,

I am trying out some features of servlet 2.5 spec. This is related to
Servlet Filter.

According to 2.5 spec servlet filter can be specified with a * instead
of adding all servlets to the filter.

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

This doesnt work but filter works if i bind servlets with multiple
servlet names or url patterns

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

In jetty i get a exception while in tomcat the filter is not called at all

The Jetty exception

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

Is this something related to geronimo or an issue with Jetty6/Tomcat6

Regards
Krish

Mime
View raw message