activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james.strac...@gmail.com>
Subject Re: JCA adapter and Spring 2 application conflict in JBoss
Date Thu, 08 Feb 2007 08:11:22 GMT
IIRC 4.0.3 does not support Spring 2 namespaces. Try 4.1.0

On 2/7/07, Luciano <l.montebove@almavivaitalia.it> wrote:
>
> If I try to deploy the ActiveMQ JCA resource adapter
> (activemq-rar-4.1.0-incubator.rar) side by side with a Spring 2 war in JBoss
> 4.0.3 , I get the following error on server startup:
>
> ERROR
> [org.springframework.web.context.ContextLoader] Context initialization
> failed
> org.springframework.beans.factory.BeanDefinitionStoreException:
> Unexpected exception parsing XML document from ServletContext resource
> [/WEB-INF/applicationContext.xml]; nested exception is
> java.lang.IllegalArgumentException: Class
> [org.apache.xbean.spring.context.v2.XBeanNamespaceHandler] does not
> implement the NamespaceHandler interface
> Caused by:
> java.lang.IllegalArgumentException: Class
> [org.apache.xbean.spring.context.v2.XBeanNamespaceHandler] does not
> implement the NamespaceHandler interface
> at
> org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.initHandle\
> rMappings(DefaultNamespaceHandlerResolver.java:119)
> at
> org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.<init>(Def\
> aultNamespaceHandlerResolver.java:96)
> at
> org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.<init>(Def\
> aultNamespaceHandlerResolver.java:82)
> at
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createDefaultNames\
> paceHandlerResolver(XmlBeanDefinitionReader.java:526)
> at
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createReaderContex\
> t(XmlBeanDefinitionReader.java:515)
> at
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefini\
> tions(XmlBeanDefinitionReader.java:495)
> at
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefiniti\
> ons(XmlBeanDefinitionReader.java:390)
> at
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinition\
> s(XmlBeanDefinitionReader.java:340)
> at
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinition\
> s(XmlBeanDefinitionReader.java:317)
> at
> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanD\
> efinitions(AbstractBeanDefinitionReader.java:125)
> at
> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanD\
> efinitions(AbstractBeanDefinitionReader.java:141)
> at
> org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinit\
> ions(XmlWebApplicationContext.java:123)
> at
> org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinit\
> ions(XmlWebApplicationContext.java:91)
> at
> org.springframework.context.support.AbstractRefreshableApplicationContext.refres\
> hBeanFactory(AbstractRefreshableApplicationContext.java:94)
> at
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractA\
> pplicationContext.java:292)
> at
> org.springframework.web.context.support.AbstractRefreshableWebApplicationContext\
> .refresh(AbstractRefreshableWebApplicationContext.java:156)
> at
> org.springframework.web.context.ContextLoader.createWebApplicationContext(Contex\
> tLoader.java:246)
> at
> org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextL\
> oader.java:184)
> at
> org.springframework.web.context.ContextLoaderListener.contextInitialized(Context\
> LoaderListener.java:49)
>
> The only workaround I found is to remove the Spring jar from the ActiveMQ
> rar.
> I didn't find any error similar to this searching on this mailing list, so i
> suppose it could be a problem
> of my configuration, but I can' find what is wrong.
> Any idea?
>
> Thanks
>
> Luciano
> --
> View this message in context: http://www.nabble.com/JCA-adapter-and-Spring-2-application-conflict-in-JBoss-tf3189496s2354.html#a8853863
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>


-- 

James
-------
http://radio.weblogs.com/0112098/

Mime
View raw message