You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Christoph Emmersberger <ce...@gmail.com> on 2014/02/05 21:54:54 UTC
Error when installing ActiveMQ on Karaf 3.0.0 Custom Distribution - Broker does not start
Dear all,
I’ve been poking around for a while with an issue that I can not explain to myself. When I create a custom Karaf Distribution having a rebranded console, I am not able to install ActiveMQ and start the Broker instance.
The error message is:
2014-02-05 21:36:59,546 | ERROR | ctivemq.server]) | configadmin | 40 - org.apache.felix.configadmin - 1.6.0 | [org.osgi.service.cm.ManagedServiceFactory, id=603, bundle=184/mvn:org.apache.activemq/activemq-osgi/5.9.0]: Updating configuration org.apache.activemq.server.f6d68ed9-f1f6-4c58-a71b-886b22234005 caused a problem: Cannot start the broker
org.osgi.service.cm.ConfigurationException: null : Cannot start the broker
at org.apache.activemq.osgi.ActiveMQServiceFactory.updated(ActiveMQServiceFactory.java:110)[184:org.apache.activemq.activemq-osgi:5.9.0]
at Proxy1050758a_3bba_43bb_92dc_19714a189f83.updated(Unknown Source)[:]
at org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.provideConfiguration(ManagedServiceFactoryTracker.java:88)[40:org.apache.felix.configadmin:1.6.0]
at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.provide(ConfigurationManager.java:1593)[40:org.apache.felix.configadmin:1.6.0]
at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.run(ConfigurationManager.java:1536)[40:org.apache.felix.configadmin:1.6.0]
at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:103)[40:org.apache.felix.configadmin:1.6.0]
at java.lang.Thread.run(Thread.java:744)[:1.7.0_45]
Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from file [/Users/cemmersb/Desktop/epp-distribution-1.0-SNAPSHOT 2/etc/activemq.xml]; nested exception is org.apache.xerces.parsers.ObjectFactory$ConfigurationError: Provider org.apache.xerces.parsers.XIncludeAwareParserConfiguration could not be instantiated: org.apache.xerces.impl.dv.DVFactoryException: DTD factory class org.apache.xerces.impl.dv.dtd.DTDDVFactoryImpl does not extend from DTDDVFactory.
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:412)[62:org.springframework.beans:3.2.4.RELEASE]
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)[62:org.springframework.beans:3.2.4.RELEASE]
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)[62:org.springframework.beans:3.2.4.RELEASE]
at org.apache.xbean.spring.context.ResourceXmlApplicationContext.loadBeanDefinitions(ResourceXmlApplicationContext.java:111)[183:org.apache.xbean.spring:3.14.0]
at org.apache.xbean.spring.context.ResourceXmlApplicationContext.loadBeanDefinitions(ResourceXmlApplicationContext.java:104)[183:org.apache.xbean.spring:3.14.0]
at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130)[64:org.springframework.context:3.2.4.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:537)[64:org.springframework.context:3.2.4.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:451)[64:org.springframework.context:3.2.4.RELEASE]
at org.apache.activemq.osgi.ActiveMQServiceFactory.updated(ActiveMQServiceFactory.java:90)[184:org.apache.activemq.activemq-osgi:5.9.0]
... 6 more
Caused by: org.apache.xerces.parsers.ObjectFactory$ConfigurationError: Provider org.apache.xerces.parsers.XIncludeAwareParserConfiguration could not be instantiated: org.apache.xerces.impl.dv.DVFactoryException: DTD factory class org.apache.xerces.impl.dv.dtd.DTDDVFactoryImpl does not extend from DTDDVFactory.
at org.apache.xerces.parsers.ObjectFactory.newInstance(Unknown Source)[:]
at org.apache.xerces.parsers.ObjectFactory.createObject(Unknown Source)[:]
at org.apache.xerces.parsers.ObjectFactory.createObject(Unknown Source)[:]
at org.apache.xerces.parsers.DOMParser.<init>(Unknown Source)[:]
at org.apache.xerces.parsers.DOMParser.<init>(Unknown Source)[:]
at org.apache.xerces.jaxp.DocumentBuilderImpl.<init>(Unknown Source)[:]
at org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Unknown Source)[:]
at org.springframework.beans.factory.xml.DefaultDocumentLoader.createDocumentBuilder(DefaultDocumentLoader.java:130)
at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:74)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:388)
... 14 more
The following features are install:
standard | 3.0.0 | x | standard-3.0.0 | Karaf standard feature
config | 3.0.0 | x | standard-3.0.0 | Provide OSGi ConfigAdmin support
region | 3.0.0 | x | standard-3.0.0 | Provide Region Support
package | 3.0.0 | x | standard-3.0.0 | Package commands and mbeans
http | 3.0.0 | x | standard-3.0.0 | Implementation of the OSGI HTTP Service
http-whiteboard | 3.0.0 | x | standard-3.0.0 | Provide HTTP Whiteboard pattern support
war | 3.0.0 | x | standard-3.0.0 | Turn Karaf as a full WebContainer
jetty | 8.1.9.v20130131 | x | standard-3.0.0 |
kar | 3.0.0 | x | standard-3.0.0 | Provide KAR (KARaf archive) support
webconsole | 3.0.0 | x | standard-3.0.0 | Base support of the Karaf WebConsole
ssh | 3.0.0 | x | standard-3.0.0 | Provide a SSHd server on Karaf
management | 3.0.0 | x | standard-3.0.0 | Provide a JMX MBeanServer and a set of MBeans in K
eventadmin | 3.0.0 | x | standard-3.0.0 | OSGi Event Admin service specification for event-b
activemq-client | 5.9.0 | x | activemq-5.9.0 | ActiveMQ client libraries
activemq | 5.9.0 | x | activemq-5.9.0 | ActiveMQ broker libraries
activemq-broker | 5.9.0 | x | activemq-5.9.0 | Full ActiveMQ broker with default configuration an
activemq-camel | 5.9.0 | x | activemq-5.9.0 |
activemq-web-console | 5.9.0 | x | activemq-5.9.0 |
xml-specs-api | 2.2.0 | x | camel-2.12.2 |
camel | 2.12.2 | x | camel-2.12.2 |
camel-core | 2.12.2 | x | camel-2.12.2 |
camel-spring | 2.12.2 | x | camel-2.12.2 |
camel-blueprint | 2.12.2 | x | camel-2.12.2 |
camel-cxf | 2.12.2 | x | camel-2.12.2 |
camel-jms | 2.12.2 | x | camel-2.12.2 |
pax-jetty | 8.1.14.v20131031 | x | org.ops4j.pax.web-3.0.5 | Provide Jetty engine support
pax-http | 3.0.5 | x | org.ops4j.pax.web-3.0.5 | Implementation of the OSGI HTTP Service
pax-http-whiteboard | 3.0.5 | x | org.ops4j.pax.web-3.0.5 | Provide HTTP Whiteboard pattern support
pax-war | 3.0.5 | x | org.ops4j.pax.web-3.0.5 | Provide support of a full WebContainer
cxf-specs | 2.7.7 | x | cxf-2.7.7 |
cxf-jaxb | 2.7.7 | x | cxf-2.7.7 |
wss4j | 1.6.12 | x | cxf-2.7.7 |
cxf-core | 2.7.7 | x | cxf-2.7.7 |
cxf-ws-policy | 2.7.7 | x | cxf-2.7.7 |
cxf-ws-addr | 2.7.7 | x | cxf-2.7.7 |
cxf-ws-rm | 2.7.7 | x | cxf-2.7.7 |
cxf-ws-mex | 2.7.7 | x | cxf-2.7.7 |
cxf-ws-security | 2.7.7 | x | cxf-2.7.7 |
cxf-http | 2.7.7 | x | cxf-2.7.7 |
cxf-http-jetty | 2.7.7 | x | cxf-2.7.7 |
cxf-bindings-soap | 2.7.7 | x | cxf-2.7.7 |
cxf-jaxws | 2.7.7 | x | cxf-2.7.7 |
cxf-jaxrs | 2.7.7 | x | cxf-2.7.7 |
cxf-databinding-aegis | 2.7.7 | x | cxf-2.7.7 |
cxf-databinding-jaxb | 2.7.7 | x | cxf-2.7.7 |
cxf-databinding-xmlbeans | 2.7.7 | x | cxf-2.7.7 |
cxf-features-clustering | 2.7.7 | x | cxf-2.7.7 |
cxf-bindings-corba | 2.7.7 | x | cxf-2.7.7 |
cxf-bindings-coloc | 2.7.7 | x | cxf-2.7.7 |
cxf-bindings-object | 2.7.7 | x | cxf-2.7.7 |
cxf-transports-local | 2.7.7 | x | cxf-2.7.7 |
cxf-transports-jms | 2.7.7 | x | cxf-2.7.7 |
cxf-transports-udp | 2.7.7 | x | cxf-2.7.7 |
cxf-javascript | 2.7.7 | x | cxf-2.7.7 |
cxf-frontend-javascript | 2.7.7 | x | cxf-2.7.7 |
cxf-xjc-runtime | 2.7.7 | x | cxf-2.7.7 |
cxf | 2.7.7 | x | cxf-2.7.7 |
spring-dm | 1.2.1 | x | spring-3.0.0 | Spring DM support
spring | 3.2.4.RELEASE | x | spring-3.0.0 | Spring 3.2.x support
spring-jms | 3.2.4.RELEASE | x | spring-3.0.0 | Spring 3.2.x JMS support
spring-tx | 3.2.4.RELEASE | x | spring-3.0.0 | Spring 3.2.x Transaction (TX) support
Please find attached the configuration file causing the error:
Any ideas on how to get around that issue?
Best,
Christoph
Re: Error when installing ActiveMQ on Karaf 3.0.0 Custom
Distribution - Broker does not start
Posted by cemmersb <ce...@googlemail.com>.
Just for everyone facing a similar issue.
I did overwrite my *config.properties* via the *custom.properties* and
forgot to incorporate the existing
*org.osgi.framework.system.packages.extra* packages. Therefore the
activemq-broker was not able to start any more when installing the feature.
However, I noticed a different behaviour when installing the OBR feature of
3.0.0 it seems that you'll run into a conflict regarding the command line
tools.
Nevertheless, this post might be better hosted at the ActiveMQ mailing list.
Best,
Christoph
--
View this message in context: http://karaf.922171.n3.nabble.com/Error-when-installing-ActiveMQ-on-Karaf-3-0-0-Custom-Distribution-Broker-does-not-start-tp4031559p4031561.html
Sent from the Karaf - User mailing list archive at Nabble.com.