2 Replies Latest reply: Mar 10, 2011 11:02 PM by Anish Nath RSS

Jboss 6 + Spring Deployer

Anish Nath Newbie

Hi,

 

I'm using Jboss 6 application server and Using Spring deployer to load the jboss-spring.xml file for my DI,

 

While parsing the Jboss-Spring.xml the below trace i'm getting, this problem occured for using spring schema either Transaction or AOP,

 

 

Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from URL [vfs:/D:/JBoss/jboss-6.0.0.Final/server/node2/farm/DeviceStatusDataService-1.2.0.ear/META-INF/jboss-spring.xml]; nested exception is org.springframework.beans.FatalBeanException: Class [org.springframework.aop.config.AopNamespaceHandler] for namespace [http://www.springframework.org/schema/aop] does not implement the [org.springframework.beans.factory.xml.NamespaceHandler] interface

    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:412) [:3.0.1.RELEASE]

    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334) [:3.0.1.RELEASE]

    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302) [:3.0.1.RELEASE]

    at org.jboss.spring.factory.NamedXmlApplicationContext.loadBeanDefinitions(NamedXmlApplicationContext.java:81) [:2.0.0-M1-SP1]

    at org.jboss.spring.factory.NamedXmlApplicationContext.loadBeanDefinitions(NamedXmlApplicationContext.java:76) [:2.0.0-M1-SP1]

    at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130) [:3.0.1.RELEASE]

    at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:465) [:3.0.1.RELEASE]

    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:395) [:3.0.1.RELEASE]

    at org.jboss.spring.factory.NamedXmlApplicationContext.<init>(NamedXmlApplicationContext.java:56) [:2.0.0-M1-SP1]

    at org.jboss.spring.factory.NamedXmlApplicationContext.<init>(NamedXmlApplicationContext.java:45) [:2.0.0-M1-SP1]

    at org.jboss.spring.deployers.ApplicationContextDeployer$1.doCreate(ApplicationContextDeployer.java:41) [:2.0.0-M1-SP1]

    at org.jboss.spring.deployers.ApplicationContextDeployer$1.doCreate(ApplicationContextDeployer.java:38) [:2.0.0-M1-SP1]

    at org.jboss.spring.deployers.AbstractSpringMetaDataDeployer$SpringDeploymentVisitor.deploy(AbstractSpringMetaDataDeployer.java:72) [:2.0.0-M1-SP1]

    at org.jboss.spring.deployers.AbstractSpringMetaDataDeployer$SpringDeploymentVisitor.deploy(AbstractSpringMetaDataDeployer.java:58) [:2.0.0-M1-SP1]

    at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployerWithInput.deploy(AbstractRealDeployerWithInput.java:125) [:2.2.0.GA]

   ... 46 more

Caused by: org.springframework.beans.FatalBeanException: Class [org.springframework.aop.config.AopNamespaceHandler] for namespace [http://www.springframework.org/schema/aop] does not implement the [org.springframework.beans.factory.xml.NamespaceHandler] interface

    at org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.resolve(DefaultNamespaceHandlerResolver.java:126) [:3.0.1.RELEASE]

    at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1330) [:3.0.1.RELEASE]

    at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1325) [:3.0.1.RELEASE]

    at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:136) [:3.0.1.RELEASE]

    at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:93) [:3.0.1.RELEASE]

    at org.jboss.spring.factory.NamedXmlBeanDefinitionReader.registerBeanDefinitions(NamedXmlBeanDefinitionReader.java:51) [:2.0.0-M1-SP1]

    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:390) [:3.0.1.RELEASE]

    ... 60 more