How to isolate the application to not to use the dependencies exposed by the activemq 5.9 resource adapter?
Issue
- How to isolate the application to not to use the spring version shipped with activemq 5.9 resource adapter (RAR)?
- My application has it's own logging configuration and logging libraries, they are conflicting with the ones shipped with the ActiveMQ RAR
- My application is using the spring classes packaged in the activemq rar instead of the spring jars in my application in JBoss EAP 6
I can see my application is using the Spring version from the RAR, and it's causing this error:
ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/eventsWeb]] (ServerService Thread Pool -- 55) JBWEB000287: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener: org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from ServletContext resource [/WEB-INF/applicationContext.xml]; nested exception is org.springframework.beans.FatalBeanException: Class [org.springframework.ejb.config.JeeNamespaceHandler] for namespace [http://www.springframework.org/schema/jee] does not implement the [org.springframework.beans.factory.xml.NamespaceHandler] interface
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:412) [spring-beans-3.0.3.RELEASE.jar:3.0.3.RELEASE]
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334) [spring-beans-3.0.3.RELEASE.jar:3.0.3.RELEASE]
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302) [spring-beans-3.0.3.RELEASE.jar:3.0.3.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:174) [spring-beans-3.0.3.RELEASE.jar:3.0.3.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:209) [spring-beans-3.0.3.RELEASE.jar:3.0.3.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:180) [spring-beans-3.0.3.RELEASE.jar:3.0.3.RELEASE]
at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:125) [spring-web-3.2.8.RELEASE.jar:3.2.8.RELEASE]
Environment
- Red hat Jboss Enterprise Application Platform (EAP)
- 6.x
- JBoss A-MQ 6.1 Resource Adapter (RAR)
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
