Re: Class [org.springframework.beans.factory.xml.SimplePropertyNamespaceHandler] does not implement the NamespaceHandler interface

2008-01-22 Thread Kevan Miller


On Jan 22, 2008, at 8:14 PM, Qaiser Mehmood wrote:



I am getting the same error... :)



Boy, that's a lot of dependencies that you are declaring. As David  
suggests, I think it would be good idea to reduce them...


In addition to filtering springframework, you should also filter  
spring meta-data. Beginning of your geronimo-web.xml would look like:


?xml version=1.0 encoding=UTF-8?
web-app xmlns=http://geronimo.apache.org/xml/ns/web; 
   environment
 xmlns=http://geronimo.apache.org/xml/ns/deployment-1.1;
  hidden-classes
  filterorg.springframework./filter
  filterMETA-INF/spring/filter
  /hidden-classes

  ...

--kevan



Re: Class [org.springframework.beans.factory.xml.SimplePropertyNamespaceHandler] does not implement the NamespaceHandler interface

2008-01-19 Thread David Jencks

I'd guess you are running into a spring version conflict.

I would:
1. remove the dependencies from your plan that you don't need (this  
won't fix the problem but it should make it easier to look into by  
cutting the dependency list in half or less)


2. add a hidden-classes element to force loading spring classes from  
your copy rather than the one from activemq or cxf.


hidden-classesfilterorg.springframework./filter/hidden-classes

hope this helps
david jencks

On Jan 19, 2008, at 6:08 PM, Qaiser Mehmood wrote:



I am trying to deploy a web application in Geronimo 2.0 and I am  
getting

following error:

20:03:39,543 ERROR [[/phaip]] StandardWrapper.Throwable
java.lang.IllegalArgumentException: Class
[org.springframework.beans.factory.xml.SimplePropertyNamespaceHandler] 
 does

not implement the NamespaceHandler interface
at
org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver. 
initHandlerMappings(DefaultNamespaceHandlerResolver.java:119)

at
org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver. 
init(DefaultNamespaceHandlerResolver.java:96)

at
org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver. 
init(DefaultNamespaceHandlerResolver.java:70)

at
org.apache.cxf.bus.spring.BusApplicationContext.initBeanDefinitionRead 
er(BusApplicationContext.java:172)

at
org.springframework.context.support.AbstractXmlApplicationContext.load 
BeanDefinitions(AbstractXmlApplicationContext.java:78)

at
org.springframework.context.support.AbstractRefreshableApplicationCont 
ext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:101)

at
org.springframework.context.support.AbstractApplicationContext.obtainF 
reshBeanFactory(AbstractApplicationContext.java:389)

at
org.springframework.context.support.AbstractApplicationContext.refresh 
(AbstractApplicationContext.java:324)

at
org.apache.cxf.bus.spring.BusApplicationContext.init 
(BusApplicationContext.java:71)

at
org.apache.cxf.bus.spring.SpringBusFactory.createBus 
(SpringBusFactory.java:84)

at
org.apache.cxf.bus.spring.SpringBusFactory.createBus 
(SpringBusFactory.java:65)

at
org.apache.cxf.bus.spring.SpringBusFactory.createBus 
(SpringBusFactory.java:52)

at
org.apache.cxf.transport.servlet.CXFServlet.loadSpringBus 
(CXFServlet.java:156)
	at org.apache.cxf.transport.servlet.CXFServlet.init 
(CXFServlet.java:98)

at
org.apache.catalina.core.StandardWrapper.loadServlet 
(StandardWrapper.java:1053)
	at org.apache.catalina.core.StandardWrapper.load 
(StandardWrapper.java:955)

at
org.apache.catalina.core.StandardContext.loadOnStartup 
(StandardContext.java:4035)

at
org.apache.catalina.core.StandardContext.start(StandardContext.java: 
4338)

at
org.apache.geronimo.tomcat.GeronimoStandardContext.access$201 
(GeronimoStandardContext.java:60)

at
org.apache.geronimo.tomcat.GeronimoStandardContext 
$SystemMethodValve.invoke(GeronimoStandardContext.java:345)

at
org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke 
(GeronimoBeforeAfterValve.java:47)

at
org.apache.geronimo.tomcat.GeronimoStandardContext.start 
(GeronimoStandardContext.java:198)

at
org.apache.catalina.core.ContainerBase.addChildInternal 
(ContainerBase.java:791)
	at org.apache.catalina.core.ContainerBase.addChild 
(ContainerBase.java:771)
	at org.apache.catalina.core.StandardHost.addChild 
(StandardHost.java:525)

at
org.apache.geronimo.tomcat.TomcatContainer.addContext 
(TomcatContainer.java:355)

at
org.apache.geronimo.tomcat.TomcatContainer$$FastClassByCGLIB$ 
$9370b073.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:830)
	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.tomcat.TomcatContainer$$EnhancerByCGLIB$ 
$98ccabf8.addContext(generated)

at
org.apache.geronimo.tomcat.TomcatWebAppContext.doStart 
(TomcatWebAppContext.java:533)

at
org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance 
(GBeanInstance.java:996)

at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart( 
GBeanInstanceState.java:268)

at
org.apache.geronimo.gbean.runtime.GBeanInstanceState.start 
(GBeanInstanceState.java:102)

at
org.apache.geronimo.gbean.runtime.GBeanInstance.start 
(GBeanInstance.java:539)

at