You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by jochenw <jo...@googlemail.com> on 2016/11/06 18:13:37 UTC

Karaf 4.0.7 and ActiveMQ 5.14.1

Hi,

when installing ActiveMQ 5.14.1 in Karaf 4.0.7, starting the broker results
in an error while reading activemq.xml. Steps to reprocude it:
- fresh Karaf 4.0.7, standard composition
- repo-add activemq
- feature:install activemq-broker-noweb
- remove the start=false from activemq.xml
- restart Karaf

The first exception is attached below. After that, the broker cannot start
(Cannot find the declaration of element 'beans'). In a slightly different
configuration, I have seen an error message that it cannot fine the
spring-beans schema. That all happens from Activemq 5.13.4 onwards. 5.13.3
works.

Is there some easy solution?

Best Regards,
Jochen


2016-11-06 19:05:06,672 | WARN  | ctivemq.server]) | XmlBeanDefinitionReader         
| 78 - org.apache.servicemix.bundles.spring-beans - 3.2.17.RELEASE_1 |
Ignored XML validation warning
java.net.ConnectException: Connection timed out: connect
	at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
Source)[:]
	at org.apache.xerces.util.ErrorHandlerWrapper.warning(Unknown Source)[:]
	at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)[:]
	at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)[:]
	at
org.apache.xerces.impl.xs.traversers.XSDHandler.reportSchemaWarning(Unknown
Source)[:]
	at
org.apache.xerces.impl.xs.traversers.XSDHandler.getSchemaDocument1(Unknown
Source)[:]
	at
org.apache.xerces.impl.xs.traversers.XSDHandler.getSchemaDocument(Unknown
Source)[:]
	at org.apache.xerces.impl.xs.traversers.XSDHandler.parseSchema(Unknown
Source)[:]
	at org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(Unknown Source)[:]
	at org.apache.xerces.impl.xs.XMLSchemaValidator.findSchemaGrammar(Unknown
Source)[:]
	at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown
Source)[:]
	at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown
Source)[:]
	at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
Source)[:]
	at
org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown
Source)[:]
	at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)[:]
	at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)[:]
	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)[:]
	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)[:]
	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)[:]
	at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)[:]
	at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)[:]
	at
org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:75)[78:org.apache.servicemix.bundles.spring-beans:3.2.17.RELEASE_1]
	at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:389)[78:org.apache.servicemix.bundles.spring-beans:3.2.17.RELEASE_1]
	at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:335)[78:org.apache.servicemix.bundles.spring-beans:3.2.17.RELEASE_1]
	at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:303)[78:org.apache.servicemix.bundles.spring-beans:3.2.17.RELEASE_1]
	at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:174)[78:org.apache.servicemix.bundles.spring-beans:3.2.17.RELEASE_1]
	at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:209)[78:org.apache.servicemix.bundles.spring-beans:3.2.17.RELEASE_1]
	at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:180)[78:org.apache.servicemix.bundles.spring-beans:3.2.17.RELEASE_1]
	at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:243)[78:org.apache.servicemix.bundles.spring-beans:3.2.17.RELEASE_1]
	at
org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:127)[79:org.apache.servicemix.bundles.spring-context:3.2.17.RELEASE_1]
	at
org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:93)[79:org.apache.servicemix.bundles.spring-context:3.2.17.RELEASE_1]
	at
org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130)[79:org.apache.servicemix.bundles.spring-context:3.2.17.RELEASE_1]
	at
org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:542)[79:org.apache.servicemix.bundles.spring-context:3.2.17.RELEASE_1]
	at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:451)[79:org.apache.servicemix.bundles.spring-context:3.2.17.RELEASE_1]
	at
org.apache.activemq.osgi.ActiveMQServiceFactory.updated(ActiveMQServiceFactory.java:126)[61:org.apache.activemq.activemq-osgi:5.14.1]
	at
org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.updated(ManagedServiceFactoryTracker.java:159)[3:org.apache.felix.configadmin:1.8.8]
	at
org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.provideConfiguration(ManagedServiceFactoryTracker.java:93)[3:org.apache.felix.configadmin:1.8.8]
	at
org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.provide(ConfigurationManager.java:1602)[3:org.apache.felix.configadmin:1.8.8]
	at
org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.run(ConfigurationManager.java:1545)[3:org.apache.felix.configadmin:1.8.8]
	at
org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:143)[3:org.apache.felix.configadmin:1.8.8]
	at
org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:110)[3:org.apache.felix.configadmin:1.8.8]
	at java.lang.Thread.run(Thread.java:745)[:1.8.0_40]




--
View this message in context: http://karaf.922171.n3.nabble.com/Karaf-4-0-7-and-ActiveMQ-5-14-1-tp4048591.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Karaf 4.0.7 and ActiveMQ 5.14.1

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi

I gonna resume my work on it. Sorry I was busy. I will keep you posted.

Regards 
JB\u2063\u200b

On Dec 23, 2016, 08:30, at 08:30, devilstorm <th...@infoserve.endress.com> wrote:
>

Re: Karaf 4.0.7 and ActiveMQ 5.14.1

Posted by devilstorm <th...@infoserve.endress.com>.
Hi Jean,

Any news on the issue? Facing the same problem with 5.14.2

Regards,
Thomas



--
View this message in context: http://karaf.922171.n3.nabble.com/Karaf-4-0-7-and-ActiveMQ-5-14-1-tp4048591p4049076.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Karaf 4.0.7 and ActiveMQ 5.14.1

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Jochen,

let me check.

Regards
JB

On 11/14/2016 04:30 PM, jochenw wrote:
> Hi,
>
> Maybe the reporting of the problem was too close to the 5.14.1 release. Does
> anybody know whether ActiveMQ has already a Jira for this?
>
> Regards,
> Jochen
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/Karaf-4-0-7-and-ActiveMQ-5-14-1-tp4048591p4048630.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>

-- 
Jean-Baptiste Onofr
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: Karaf 4.0.7 and ActiveMQ 5.14.1

Posted by jochenw <jo...@googlemail.com>.
Hi,

Maybe the reporting of the problem was too close to the 5.14.1 release. Does
anybody know whether ActiveMQ has already a Jira for this?

Regards,
Jochen



--
View this message in context: http://karaf.922171.n3.nabble.com/Karaf-4-0-7-and-ActiveMQ-5-14-1-tp4048591p4048630.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Karaf 4.0.7 and ActiveMQ 5.14.1

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Martin,

agree but it should have been fixed now.

Let me check.

Regards
JB

On 11/07/2016 08:13 PM, Martin Lichtin wrote:
> Hi Jochen
>
> Looks like you have the same issue I had back in September?
>
> http://activemq.2283324.n4.nabble.com/Cannot-start-Activemq-5-14-0-in-a-Karaf-OSGi-container-without-internet-access-td4716513.html
>
>
> I ended up patching the activemq-osgi jar.
>
> - Martin
>
> On 06.11.2016 19:13, jochenw wrote:
>> Hi,
>>
>> when installing ActiveMQ 5.14.1 in Karaf 4.0.7, starting the broker
>> results
>> in an error while reading activemq.xml. Steps to reprocude it:
>> - fresh Karaf 4.0.7, standard composition
>> - repo-add activemq
>> - feature:install activemq-broker-noweb
>> - remove the start=false from activemq.xml
>> - restart Karaf
>>
>> The first exception is attached below. After that, the broker cannot
>> start
>> (Cannot find the declaration of element 'beans'). In a slightly different
>> configuration, I have seen an error message that it cannot fine the
>> spring-beans schema. That all happens from Activemq 5.13.4 onwards.
>> 5.13.3
>> works.
>>
>> Is there some easy solution?
>>
>> Best Regards,
>> Jochen
>>
>>
>> 2016-11-06 19:05:06,672 | WARN  | ctivemq.server]) |
>> XmlBeanDefinitionReader
>> | 78 - org.apache.servicemix.bundles.spring-beans - 3.2.17.RELEASE_1 |
>> Ignored XML validation warning
>> java.net.ConnectException: Connection timed out: connect
>>     at
>> org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
>>
>> Source)[:]
>>     at org.apache.xerces.util.ErrorHandlerWrapper.warning(Unknown
>> Source)[:]
>>     at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
>> Source)[:]
>>     at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
>> Source)[:]
>>     at
>> org.apache.xerces.impl.xs.traversers.XSDHandler.reportSchemaWarning(Unknown
>>
>> Source)[:]
>>     at
>> org.apache.xerces.impl.xs.traversers.XSDHandler.getSchemaDocument1(Unknown
>>
>> Source)[:]
>>     at
>> org.apache.xerces.impl.xs.traversers.XSDHandler.getSchemaDocument(Unknown
>> Source)[:]
>>     at
>> org.apache.xerces.impl.xs.traversers.XSDHandler.parseSchema(Unknown
>> Source)[:]
>>     at org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(Unknown
>> Source)[:]
>>     at
>> org.apache.xerces.impl.xs.XMLSchemaValidator.findSchemaGrammar(Unknown
>> Source)[:]
>>     at
>> org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown
>> Source)[:]
>>     at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown
>> Source)[:]
>>     at
>> org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
>> Source)[:]
>>     at
>> org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown
>>
>> Source)[:]
>>     at
>> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
>>
>> Source)[:]
>>     at
>> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
>>
>> Source)[:]
>>     at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
>> Source)[:]
>>     at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
>> Source)[:]
>>     at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)[:]
>>     at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)[:]
>>     at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown
>> Source)[:]
>>     at
>> org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:75)[78:org.apache.servicemix.bundles.spring-beans:3.2.17.RELEASE_1]
>>
>>     at
>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:389)[78:org.apache.servicemix.bundles.spring-beans:3.2.17.RELEASE_1]
>>
>>     at
>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:335)[78:org.apache.servicemix.bundles.spring-beans:3.2.17.RELEASE_1]
>>
>>     at
>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:303)[78:org.apache.servicemix.bundles.spring-beans:3.2.17.RELEASE_1]
>>
>>     at
>> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:174)[78:org.apache.servicemix.bundles.spring-beans:3.2.17.RELEASE_1]
>>
>>     at
>> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:209)[78:org.apache.servicemix.bundles.spring-beans:3.2.17.RELEASE_1]
>>
>>     at
>> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:180)[78:org.apache.servicemix.bundles.spring-beans:3.2.17.RELEASE_1]
>>
>>     at
>> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:243)[78:org.apache.servicemix.bundles.spring-beans:3.2.17.RELEASE_1]
>>
>>     at
>> org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:127)[79:org.apache.servicemix.bundles.spring-context:3.2.17.RELEASE_1]
>>
>>     at
>> org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:93)[79:org.apache.servicemix.bundles.spring-context:3.2.17.RELEASE_1]
>>
>>     at
>> org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130)[79:org.apache.servicemix.bundles.spring-context:3.2.17.RELEASE_1]
>>
>>     at
>> org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:542)[79:org.apache.servicemix.bundles.spring-context:3.2.17.RELEASE_1]
>>
>>     at
>> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:451)[79:org.apache.servicemix.bundles.spring-context:3.2.17.RELEASE_1]
>>
>>     at
>> org.apache.activemq.osgi.ActiveMQServiceFactory.updated(ActiveMQServiceFactory.java:126)[61:org.apache.activemq.activemq-osgi:5.14.1]
>>
>>     at
>> org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.updated(ManagedServiceFactoryTracker.java:159)[3:org.apache.felix.configadmin:1.8.8]
>>
>>     at
>> org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.provideConfiguration(ManagedServiceFactoryTracker.java:93)[3:org.apache.felix.configadmin:1.8.8]
>>
>>     at
>> org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.provide(ConfigurationManager.java:1602)[3:org.apache.felix.configadmin:1.8.8]
>>
>>     at
>> org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.run(ConfigurationManager.java:1545)[3:org.apache.felix.configadmin:1.8.8]
>>
>>     at
>> org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:143)[3:org.apache.felix.configadmin:1.8.8]
>>
>>     at
>> org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:110)[3:org.apache.felix.configadmin:1.8.8]
>>
>>     at java.lang.Thread.run(Thread.java:745)[:1.8.0_40]
>>
>>
>>
>>
>> --
>> View this message in context:
>> http://karaf.922171.n3.nabble.com/Karaf-4-0-7-and-ActiveMQ-5-14-1-tp4048591.html
>>
>> Sent from the Karaf - User mailing list archive at Nabble.com.
>>
>

-- 
Jean-Baptiste Onofr�
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: Karaf 4.0.7 and ActiveMQ 5.14.1

Posted by Martin Lichtin <li...@yahoo.com>.
Hi Jochen

Looks like you have the same issue I had back in September?

http://activemq.2283324.n4.nabble.com/Cannot-start-Activemq-5-14-0-in-a-Karaf-OSGi-container-without-internet-access-td4716513.html

I ended up patching the activemq-osgi jar.

- Martin

On 06.11.2016 19:13, jochenw wrote:
> Hi,
>
> when installing ActiveMQ 5.14.1 in Karaf 4.0.7, starting the broker results
> in an error while reading activemq.xml. Steps to reprocude it:
> - fresh Karaf 4.0.7, standard composition
> - repo-add activemq
> - feature:install activemq-broker-noweb
> - remove the start=false from activemq.xml
> - restart Karaf
>
> The first exception is attached below. After that, the broker cannot start
> (Cannot find the declaration of element 'beans'). In a slightly different
> configuration, I have seen an error message that it cannot fine the
> spring-beans schema. That all happens from Activemq 5.13.4 onwards. 5.13.3
> works.
>
> Is there some easy solution?
>
> Best Regards,
> Jochen
>
>
> 2016-11-06 19:05:06,672 | WARN  | ctivemq.server]) | XmlBeanDefinitionReader
> | 78 - org.apache.servicemix.bundles.spring-beans - 3.2.17.RELEASE_1 |
> Ignored XML validation warning
> java.net.ConnectException: Connection timed out: connect
> 	at
> org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
> Source)[:]
> 	at org.apache.xerces.util.ErrorHandlerWrapper.warning(Unknown Source)[:]
> 	at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)[:]
> 	at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)[:]
> 	at
> org.apache.xerces.impl.xs.traversers.XSDHandler.reportSchemaWarning(Unknown
> Source)[:]
> 	at
> org.apache.xerces.impl.xs.traversers.XSDHandler.getSchemaDocument1(Unknown
> Source)[:]
> 	at
> org.apache.xerces.impl.xs.traversers.XSDHandler.getSchemaDocument(Unknown
> Source)[:]
> 	at org.apache.xerces.impl.xs.traversers.XSDHandler.parseSchema(Unknown
> Source)[:]
> 	at org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(Unknown Source)[:]
> 	at org.apache.xerces.impl.xs.XMLSchemaValidator.findSchemaGrammar(Unknown
> Source)[:]
> 	at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown
> Source)[:]
> 	at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown
> Source)[:]
> 	at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
> Source)[:]
> 	at
> org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown
> Source)[:]
> 	at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
> Source)[:]
> 	at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
> Source)[:]
> 	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)[:]
> 	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)[:]
> 	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)[:]
> 	at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)[:]
> 	at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)[:]
> 	at
> org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:75)[78:org.apache.servicemix.bundles.spring-beans:3.2.17.RELEASE_1]
> 	at
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:389)[78:org.apache.servicemix.bundles.spring-beans:3.2.17.RELEASE_1]
> 	at
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:335)[78:org.apache.servicemix.bundles.spring-beans:3.2.17.RELEASE_1]
> 	at
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:303)[78:org.apache.servicemix.bundles.spring-beans:3.2.17.RELEASE_1]
> 	at
> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:174)[78:org.apache.servicemix.bundles.spring-beans:3.2.17.RELEASE_1]
> 	at
> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:209)[78:org.apache.servicemix.bundles.spring-beans:3.2.17.RELEASE_1]
> 	at
> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:180)[78:org.apache.servicemix.bundles.spring-beans:3.2.17.RELEASE_1]
> 	at
> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:243)[78:org.apache.servicemix.bundles.spring-beans:3.2.17.RELEASE_1]
> 	at
> org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:127)[79:org.apache.servicemix.bundles.spring-context:3.2.17.RELEASE_1]
> 	at
> org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:93)[79:org.apache.servicemix.bundles.spring-context:3.2.17.RELEASE_1]
> 	at
> org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130)[79:org.apache.servicemix.bundles.spring-context:3.2.17.RELEASE_1]
> 	at
> org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:542)[79:org.apache.servicemix.bundles.spring-context:3.2.17.RELEASE_1]
> 	at
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:451)[79:org.apache.servicemix.bundles.spring-context:3.2.17.RELEASE_1]
> 	at
> org.apache.activemq.osgi.ActiveMQServiceFactory.updated(ActiveMQServiceFactory.java:126)[61:org.apache.activemq.activemq-osgi:5.14.1]
> 	at
> org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.updated(ManagedServiceFactoryTracker.java:159)[3:org.apache.felix.configadmin:1.8.8]
> 	at
> org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.provideConfiguration(ManagedServiceFactoryTracker.java:93)[3:org.apache.felix.configadmin:1.8.8]
> 	at
> org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.provide(ConfigurationManager.java:1602)[3:org.apache.felix.configadmin:1.8.8]
> 	at
> org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.run(ConfigurationManager.java:1545)[3:org.apache.felix.configadmin:1.8.8]
> 	at
> org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:143)[3:org.apache.felix.configadmin:1.8.8]
> 	at
> org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:110)[3:org.apache.felix.configadmin:1.8.8]
> 	at java.lang.Thread.run(Thread.java:745)[:1.8.0_40]
>
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/Karaf-4-0-7-and-ActiveMQ-5-14-1-tp4048591.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>


Re: Karaf 4.0.7 and ActiveMQ 5.14.1

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Jochen,

it sounds like a ActiveMQ issue. I gonna take a look.

Regards
JB

On 11/07/2016 09:08 AM, jochenw wrote:
> Yes, repo-add activemq adds the following repos:
>
> activemq-5.14.1          |
> mvn:org.apache.activemq/activemq-karaf/LATEST/xml/features
> activemq-core-5.14.1     |
> mvn:org.apache.activemq/activemq-karaf/5.14.1/xml/features-core
>
> and installed the activemq-broker-noweb feature.
>
> It adds an activemq.xml to Karaf's etc with start=false for the broker. The
> only thing I have changed was to remove this, so the broker starts
> immediately on Karaf startup.
>
> Works up to ActiveMQ 5.13.3, throws an error from 5.13.4 onwards. Same thing
> with Karaf 4.0.4. It looks like it cannot find
> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd (removing
> the -2.0 doesn't help). Installing activemq-broker (with the web console)
> yields the same result.
>
> Regards,
> Jochen
>
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/Karaf-4-0-7-and-ActiveMQ-5-14-1-tp4048591p4048597.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>

-- 
Jean-Baptiste Onofr
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: Karaf 4.0.7 and ActiveMQ 5.14.1

Posted by jochenw <jo...@googlemail.com>.
Yes, repo-add activemq adds the following repos:

activemq-5.14.1          |
mvn:org.apache.activemq/activemq-karaf/LATEST/xml/features
activemq-core-5.14.1     |
mvn:org.apache.activemq/activemq-karaf/5.14.1/xml/features-core

and installed the activemq-broker-noweb feature.

It adds an activemq.xml to Karaf's etc with start=false for the broker. The
only thing I have changed was to remove this, so the broker starts
immediately on Karaf startup.

Works up to ActiveMQ 5.13.3, throws an error from 5.13.4 onwards. Same thing
with Karaf 4.0.4. It looks like it cannot find
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd (removing
the -2.0 doesn't help). Installing activemq-broker (with the web console)
yields the same result.

Regards,
Jochen




--
View this message in context: http://karaf.922171.n3.nabble.com/Karaf-4-0-7-and-ActiveMQ-5-14-1-tp4048591p4048597.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Karaf 4.0.7 and ActiveMQ 5.14.1

Posted by James Carman <ja...@carmanconsulting.com>.
Did you just install the "vanilla" ActiveMQ feature?

On Sun, Nov 6, 2016 at 1:13 PM jochenw <jo...@googlemail.com>
wrote:

> Hi,
>
> when installing ActiveMQ 5.14.1 in Karaf 4.0.7, starting the broker results
> in an error while reading activemq.xml. Steps to reprocude it:
> - fresh Karaf 4.0.7, standard composition
> - repo-add activemq
> - feature:install activemq-broker-noweb
> - remove the start=false from activemq.xml
> - restart Karaf
>
> The first exception is attached below. After that, the broker cannot start
> (Cannot find the declaration of element 'beans'). In a slightly different
> configuration, I have seen an error message that it cannot fine the
> spring-beans schema. That all happens from Activemq 5.13.4 onwards. 5.13.3
> works.
>
> Is there some easy solution?
>
> Best Regards,
> Jochen
>
>
> 2016-11-06 19:05:06,672 | WARN  | ctivemq.server]) |
> XmlBeanDefinitionReader
> | 78 - org.apache.servicemix.bundles.spring-beans - 3.2.17.RELEASE_1 |
> Ignored XML validation warning
> java.net.ConnectException: Connection timed out: connect
>         at
> org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
> Source)[:]
>         at org.apache.xerces.util.ErrorHandlerWrapper.warning(Unknown
> Source)[:]
>         at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
> Source)[:]
>         at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
> Source)[:]
>         at
> org.apache.xerces.impl.xs.traversers.XSDHandler.reportSchemaWarning(Unknown
> Source)[:]
>         at
> org.apache.xerces.impl.xs.traversers.XSDHandler.getSchemaDocument1(Unknown
> Source)[:]
>         at
> org.apache.xerces.impl.xs.traversers.XSDHandler.getSchemaDocument(Unknown
> Source)[:]
>         at
> org.apache.xerces.impl.xs.traversers.XSDHandler.parseSchema(Unknown
> Source)[:]
>         at org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(Unknown
> Source)[:]
>         at
> org.apache.xerces.impl.xs.XMLSchemaValidator.findSchemaGrammar(Unknown
> Source)[:]
>         at
> org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown
> Source)[:]
>         at
> org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown
> Source)[:]
>         at
> org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
> Source)[:]
>         at
>
> org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown
> Source)[:]
>         at
>
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
> Source)[:]
>         at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
> Source)[:]
>         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
> Source)[:]
>         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
> Source)[:]
>         at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)[:]
>         at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)[:]
>         at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown
> Source)[:]
>         at
>
> org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:75)[78:org.apache.servicemix.bundles.spring-beans:3.2.17.RELEASE_1]
>         at
>
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:389)[78:org.apache.servicemix.bundles.spring-beans:3.2.17.RELEASE_1]
>         at
>
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:335)[78:org.apache.servicemix.bundles.spring-beans:3.2.17.RELEASE_1]
>         at
>
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:303)[78:org.apache.servicemix.bundles.spring-beans:3.2.17.RELEASE_1]
>         at
>
> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:174)[78:org.apache.servicemix.bundles.spring-beans:3.2.17.RELEASE_1]
>         at
>
> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:209)[78:org.apache.servicemix.bundles.spring-beans:3.2.17.RELEASE_1]
>         at
>
> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:180)[78:org.apache.servicemix.bundles.spring-beans:3.2.17.RELEASE_1]
>         at
>
> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:243)[78:org.apache.servicemix.bundles.spring-beans:3.2.17.RELEASE_1]
>         at
>
> org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:127)[79:org.apache.servicemix.bundles.spring-context:3.2.17.RELEASE_1]
>         at
>
> org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:93)[79:org.apache.servicemix.bundles.spring-context:3.2.17.RELEASE_1]
>         at
>
> org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130)[79:org.apache.servicemix.bundles.spring-context:3.2.17.RELEASE_1]
>         at
>
> org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:542)[79:org.apache.servicemix.bundles.spring-context:3.2.17.RELEASE_1]
>         at
>
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:451)[79:org.apache.servicemix.bundles.spring-context:3.2.17.RELEASE_1]
>         at
>
> org.apache.activemq.osgi.ActiveMQServiceFactory.updated(ActiveMQServiceFactory.java:126)[61:org.apache.activemq.activemq-osgi:5.14.1]
>         at
>
> org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.updated(ManagedServiceFactoryTracker.java:159)[3:org.apache.felix.configadmin:1.8.8]
>         at
>
> org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.provideConfiguration(ManagedServiceFactoryTracker.java:93)[3:org.apache.felix.configadmin:1.8.8]
>         at
>
> org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.provide(ConfigurationManager.java:1602)[3:org.apache.felix.configadmin:1.8.8]
>         at
>
> org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.run(ConfigurationManager.java:1545)[3:org.apache.felix.configadmin:1.8.8]
>         at
>
> org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:143)[3:org.apache.felix.configadmin:1.8.8]
>         at
>
> org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:110)[3:org.apache.felix.configadmin:1.8.8]
>         at java.lang.Thread.run(Thread.java:745)[:1.8.0_40]
>
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/Karaf-4-0-7-and-ActiveMQ-5-14-1-tp4048591.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>