Error installing activemq 5.8.0 in Karaf 2.3.1

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Error installing activemq 5.8.0 in Karaf 2.3.1

glsilverman
I'm getting the following error installing a spring beans file in Karaf 2.3.1:

2013-04-17 12:48:14,604 | ERROR | ExtenderThread-6 | ContextLoaderListener            | BundleApplicationContextListener   50 | 176 - org.springframework.osgi.extender - 1.2.1 | Application context refresh
failed (OsgiBundleXmlApplicationContext(bundle=com.dsi.karaf.com.dsi.tx-xa, config=osgibundle:/META-INF/spring/*.xml))
org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://activemq.apache.org/schema/core]
Offending resource: URL [bundle://180.1:0/META-INF/spring/beans.xml]

        at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:68)[71:org.springframework.beans:3.1.4.RELEASE]
        at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85)[71:org.springframework.beans:3.1.4.RELEASE]
        at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:80)[71:org.springframework.beans:3.1.4.RELEASE]
        at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.error(BeanDefinitionParserDelegate.java:316)[71:org.springframework.beans:3.1.4.RELEASE]
        at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1420)[71:org.springframework.beans:3.1.4.RELEASE]
        at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1413)[71:org.springframework.beans:3.1.4.RELEASE]
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:184)[71:org.springframework.beans:3.1.4.RELEASE]
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.doRegisterBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:140)[71:org.springframework.beans:3.1.4.RELEASE]
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:111)[71:org.springframework.beans:3.1.4.RELEASE]
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:493)[71:org.springframework.beans:3.1.4.RELEASE]
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:390)[71:org.springframework.beans:3.1.4.RELEASE]
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)[71:org.springframework.beans:3.1.4.RELEASE]
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)[71:org.springframework.beans:3.1.4.RELEASE]
        at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:174)[71:org.springframework.beans:3.1.4.RELEASE]
        at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:209)[71:org.springframework.beans:3.1.4.RELEASE]
        at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:180)[71:org.springframework.beans:3.1.4.RELEASE]
        at org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:164)[175:org.springframework.osgi.core:1.2.1]
        at org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:136)[175:org.springframework.osgi.core:1.2.1]
        at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:131)[73:org.springframework.context:3.1.4.RELEASE]
        at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:530)[73:org.springframework.context:3.1.4.RELEASE]
        at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$800(AbstractDelegatedExecutionApplicationContext.java:69)[175:org.springframework.osgi.core:1.2.1]
        at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$3.run(AbstractDelegatedExecutionApplicationContext.java:269)[175:org.springframework.osgi.core:1.2.1]
        at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)[175:org.springframework.osgi.core:1.2.1]
        at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.startRefresh(AbstractDelegatedExecutionApplicationContext.java:247)[175:org.springframework.osgi.core:1.2.1]
        at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:214)[176:org.springframework.os
gi.extender:1.2.1]
        at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExecutor.java:169)[176:org.springframework.osg
i.extender:1.2.1]
        at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175)[175:org.springframework.osgi.core:1.2.1]
        at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:716)[176:org.springframework.osgi.extender:1.2.1]
        at java.lang.Thread.run(Thread.java:722)[:1.7.0_17]

Here is my beans.xml namespace declaration:

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:amq="http://activemq.apache.org/schema/core"
       xmlns:osgi="http://www.springframework.org/schema/osgi"
       xsi:schemaLocation="
   http://www.springframework.org/schema/beans
       http://www.springframework.org/schema/beans/spring-beans.xsd
   http://camel.apache.org/schema/spring
       http://camel.apache.org/schema/spring/camel-spring.xsd
   http://activemq.apache.org/schema/core
       http://activemq.apache.org/schema/core/activemq-core.xsd
   http://www.springframework.org/schema/osgi  
       http://www.springframework.org/schema/osgi/spring-osgi.xsd    
">

I even tried changing the last line to:

http://www.springframework.org/schema/osgi/spring-osgi-5.8.0.xsd

without success.

My Karaf connfiguration, starting from an empty data directory, is as follows:

features:chooseurl activemq 5.8.0    
features:install activemq-broker
features:install spring-tx
features:install spring-jms
features:install spring-aspects
osgi:install -s mvn:org.apache.xbean/xbean-spring/3.13

What am I missing? Has anyone had success with ActiveMQ 5.8.0 in Karaf 2.3.1?
       
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Error installing activemq 5.8.0 in Karaf 2.3.1

Maurice
I had issues deploying  the activemq-camel component in Karaf 2.3.0 / 1, so i downloaded the sources and modified the pom of this component according to a apache amq jira entry : https://issues.apache.org/jira/browse/AMQ.
Loading...