karaf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofre ...@nanthrax.net>
Subject Re: Karaf + Activemq in Offline env
Date Fri, 03 Jul 2020 11:55:11 GMT
Maybe you have other features performing a refresh.

But for sure, that should work:

feature:repo-add spring-legacy
feature:repo-add activemq 5.15.11
feature:install activemq-broker

Regards
JB

> Le 3 juil. 2020 à 13:00, Geaaru <geaaru@gmail.com> a écrit :
> 
> I'm not sure. With this patch I saw that spring is not resolved correctly.
> 
> Maybe could be related to the installation of this deps before activemq:
> 
> karaf@root <mailto:karaf@root>()> feature:install spring/4.3.25.RELEASE_1
> karaf@root <mailto:karaf@root>()> feature:install spring-jms/4.3.25.RELEASE_1
> karaf@root <mailto:karaf@root>()> feature:install spring-web/4.3.25.RELEASE_1
> 
> I'm trying with a friend if without patched activemq-osgi the installation of spring*/4.3.25.RELEASE_1
before activemq-broken fix the issue.
> 
> I will report feedback soon.
> 
> IMHO, I think that could be related to spring package resolution in any case.
> 
> Thanks for support.
> geaaru
> 
> On Fri, 2020-07-03 at 12:00 +0200, Jean-Baptiste Onofre wrote:
>> Hmmm, that’s weird.
>> 
>> Let me check.
>> 
>> Regards
>> JB
>> 
>>> Le 3 juil. 2020 à 11:36, Geaaru <geaaru@gmail.com <mailto:geaaru@gmail.com>>
a écrit :
>>> 
>>> Found the issue!!!
>>> 
>>> diff --git a/activemq-osgi/pom.xml b/activemq-osgi/pom.xml
>>> index b2bdc42ec..fdb08e254 100644
>>> --- a/activemq-osgi/pom.xml
>>> +++ b/activemq-osgi/pom.xml
>>> @@ -62,9 +62,9 @@
>>>        org.apache.zookeeper*;resolution:=optional,
>>>        org.fusesource.leveldbjni*;resolution:=optional,
>>>        org.fusesource.hawtjni*;resolution:=optional,
>>> -      org.springframework.jms*;version="[4,6)";resolution:=optional,
>>> -      org.springframework.transaction*;version="[4,6)";resolution:=optional,
>>> -      org.springframework*;version="[4,6)";resolution:=optional,
>>> +      org.springframework.jms*;version="[4,6)",
>>> +      org.springframework.transaction*;version="[4,6)",
>>> +      org.springframework*;version="[4,6)",
>>>        org.xmlpull*;resolution:=optional,
>>>        scala*;resolution:=optional,
>>>        javax.annotation*;version="[1,4)",
>>> 
>>> It seems that set resolution optional doesn't import correctly spring package
and this generate the error.
>>> 
>>> 
>>> On Fri, 2020-07-03 at 11:21 +0200, Geaaru wrote:
>>>> Hi,
>>>> 
>>>> I reported a weird issue on create activqmq-broker (5.15.11) with Karaf 4.2.9.
>>>> 
>>>> I think that the issue is on activemq project but I share my doubts here
for a confirmation.
>>>> 
>>>> What happens is that on start activemq feature karaf try to download activemq.xml
file and execute the validation of the spring namespace. It ignore proxy settings and then
doesn't resolve the beans namespace.
>>>> 
>>>> 2020-07-03T10:35:18,847 | WARN  | CM Configuration Updater (ManagedServiceFactory
Update: factoryPid=[org.apache.activemq.server]) | XmlBeanDefinitionReader          | 89 -
org.apache.servicemix.bundles.spring-beans - 5.2.5.RELEASE_1 | Ignored XML validation warning
>>>> org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema
document 'http://www.springframework.org/schema/beans/spring-beans-2.0.xsd' <http://www.springframework.org/schema/beans/spring-beans-2.0.xsd'>,
because 1) could not find the document; 2) the document could not be read; 3) the root element
of the document is not <xsd:schema>.
>>>> at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:204)
~[?:?]
>>>> at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.warning(ErrorHandlerWrapper.java:100)
[?:?]
>>>> at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:392)
[?:?]
>>>> at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:306)
[?:?]
>>>> at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.reportSchemaErr(XSDHandler.java:4257)
[?:?]
>>>> at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.reportSchemaWarning(XSDHandler.java:4248)
[?:?]
>>>> at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.getSchemaDocument1(XSDHandler.java:2542)
[?:?]
>>>> at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.getSchemaDocument(XSDHandler.java:2238)
[?:?]
>>>> at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.parseSchema(XSDHandler.java:588)
[?:?]
>>>> at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadSchema(XMLSchemaLoader.java:617)
[?:?]
>>>> at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.findSchemaGrammar(XMLSchemaValidator.java:2710)
[?:?]
>>>> at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:2069)
[?:?]
>>>> at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:829)
[?:?]
>>>> at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:374)
[?:?]
>>>> at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDriver.scanRootElementHook(XMLNSDocumentScannerImpl.java:613)
[?:?]
>>>> at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:3063)
[?:?]
>>>> at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:836)
[?:?]
>>>> at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:605)
[?:?]
>>>> at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:112)
[?:?]
>>>> at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:534)
[?:?]
>>>> at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:888)
[?:?]
>>>> at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:824)
[?:?]
>>>> at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
[?:?]
>>>> at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:246)
[?:?]
>>>> at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:339)
[?:?]
>>>> at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:77)
[!/:?]
>>>> at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadDocument(XmlBeanDefinitionReader.java:430)
[!/:?]
>>>> at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:388)
[!/:?]
>>>> at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:336)
[!/:?]
>>>> at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:305)
[!/:?]
>>>> at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:188)
[!/:?]
>>>> at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:224)
[!/:?]
>>>> at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:195)
[!/:?]
>>>> at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:257)
[!/:?]
>>>> at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:128)
[!/:?]
>>>> at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:94)
[!/:?]
>>>> at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:133)
[!/:?]
>>>> at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:637)
[!/:?]
>>>> at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:522)
[!/:?]
>>>> at org.apache.activemq.osgi.ActiveMQServiceFactory.updated(ActiveMQServiceFactory.java:126)
[!/:5.15.13]
>>>> at org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.updated(ManagedServiceFactoryTracker.java:159)
[!/:?]
>>>> at org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.provideConfiguration(ManagedServiceFactoryTracker.java:93)
[!/:?]
>>>> at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.provide(ConfigurationManager.java:1253)
[!/:?]
>>>> at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.run(ConfigurationManager.java:1197)
[!/:?]
>>>> at org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:138) [!/:?]
>>>> at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:105) [!/:?]
>>>> at java.lang.Thread.run(Thread.java:834) [?:?]
>>>> Caused by: java.net.ConnectException: Connection timed out (Connection timed
out)
>>>> at java.net.PlainSocketImpl.socketConnect(Native Method) ~[?:?]
>>>> at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:399)
~[?:?]
>>>> at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:242)
~[?:?]
>>>> at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:224)
~[?:?]
>>>> at java.net.Socket.connect(Socket.java:609) ~[?:?]
>>>> at java.net.Socket.connect(Socket.java:558) ~[?:?]
>>>> at sun.net.NetworkClient.doConnect(NetworkClient.java:182) ~[?:?]
>>>> at sun.net <http://sun.net/>.www.http.HttpClient.openServer(HttpClient.java:474)
<x-msg://86/www.http.HttpClient.openServer(HttpClient.java:474)> ~[?:?]
>>>> at sun.net <http://sun.net/>.www.http.HttpClient.openServer(HttpClient.java:569)
<x-msg://86/www.http.HttpClient.openServer(HttpClient.java:569)> ~[?:?]
>>>> at sun.net <http://sun.net/>.www.http.HttpClient.<init>(HttpClient.java:242)
<x-msg://86/www.http.HttpClient.%3Cinit%3E(HttpClient.java:242)> ~[?:?]
>>>> at sun.net <http://sun.net/>.www.http.HttpClient.New(HttpClient.java:341)
<x-msg://86/www.http.HttpClient.New(HttpClient.java:341)> ~[?:?]
>>>> at sun.net <http://sun.net/>.www.http.HttpClient.New(HttpClient.java:362)
<x-msg://86/www.http.HttpClient.New(HttpClient.java:362)> ~[?:?]
>>>> at sun.net <http://sun.net/>.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1248)
<x-msg://86/www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1248)>
~[?:?]
>>>> at sun.net <http://sun.net/>.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1187)
<x-msg://86/www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1187)>
~[?:?]
>>>> at sun.net <http://sun.net/>.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1081)
<x-msg://86/www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1081)>
~[?:?]
>>>> at sun.net <http://sun.net/>.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:1015)
<x-msg://86/www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:1015)>
~[?:?]
>>>> at sun.net <http://sun.net/>.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1587)
<x-msg://86/www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1587)>
~[?:?]
>>>> at sun.net <http://sun.net/>.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1515)
<x-msg://86/www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1515)>
~[?:?]
>>>> at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:676)
~[?:?]
>>>> at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:150)
~[?:?]
>>>> at com.sun.org.apache.xerces.internal.impl.xs.opti.SchemaParsingConfig.parse(SchemaParsingConfig.java:593)
~[?:?]
>>>> at com.sun.org.apache.xerces.internal.impl.xs.opti.SchemaParsingConfig.parse(SchemaParsingConfig.java:696)
~[?:?]
>>>> at com.sun.org.apache.xerces.internal.impl.xs.opti.SchemaDOMParser.parse(SchemaDOMParser.java:530)
~[?:?]
>>>> at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.getSchemaDocument(XSDHandler.java:2226)
~[?:?]
>>>> ... 39 more
>>>> 2020-07-03T10:35:18,854 | ERROR | CM Configuration Updater (ManagedServiceFactory
Update: factoryPid=[org.apache.activemq.server]) | configadmin                      | 9 -
org.apache.felix.configadmin - 1.9.16 | [org.osgi.service.cm.ManagedServiceFactory, id=221,
bundle=140/mvn:org.apache.activemq/activemq-osgi/5.15.13]: Updating configuration org.apache.activemq.server.e726c6cf-533d-4f2f-a77c-8f088c42e8b0
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:147)
~[!/:5.15.13]
>>>> at org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.updated(ManagedServiceFactoryTracker.java:159)
~[!/:?]
>>>> at org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.provideConfiguration(ManagedServiceFactoryTracker.java:93)
[!/:?]
>>>> at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.provide(ConfigurationManager.java:1253)
[!/:?]
>>>> at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.run(ConfigurationManager.java:1197)
[!/:?]
>>>> at org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:138) [!/:?]
>>>> at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:105) [!/:?]
>>>> at java.lang.Thread.run(Thread.java:834) [?:?]
>>>> Caused by: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException:
Line 24 in XML document from URL [file:/opt/apache-karaf-bin-4.2.9/etc/activemq.xml] is invalid;
nested exception is org.xml.sax.SAXParseException; lineNumber: 24; columnNumber: 101; cvc-elt.1.a:
Cannot find the declaration of element 'beans'.
>>>> at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:400)
~[!/:?]
>>>> at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:336)
~[!/:?]
>>>> at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:305)
~[!/:?]
>>>> at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:188)
~[!/:?]
>>>> at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:224)
~[!/:?]
>>>> at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:195)
~[!/:?]
>>>> at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:257)
~[!/:?]
>>>> at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:128)
~[!/:?]
>>>> at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:94)
~[!/:?]
>>>> at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:133)
~[!/:?]
>>>> at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:637)
~[!/:?]
>>>> at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:522)
~[!/:?]
>>>> at org.apache.activemq.osgi.ActiveMQServiceFactory.updated(ActiveMQServiceFactory.java:126)
~[!/:5.15.13]
>>>> ... 7 more
>>>> Caused by: org.xml.sax.SAXParseException: cvc-elt.1.a: Cannot find the declaration
of element 'beans'.
>>>> at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:204)
~[?:?]
>>>> at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:135)
~[?:?]
>>>> at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:396)
~[?:?]
>>>> at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:327)
~[?:?]
>>>> at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:284)
~[?:?]
>>>> at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:2132)
~[?:?]
>>>> at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:829)
~[?:?]
>>>> at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:374)
~[?:?]
>>>> at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDriver.scanRootElementHook(XMLNSDocumentScannerImpl.java:613)
~[?:?]
>>>> at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:3063)
~[?:?]
>>>> at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:836)
~[?:?]
>>>> at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:605)
~[?:?]
>>>> at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:112)
~[?:?]
>>>> at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:534)
~[?:?]
>>>> at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:888)
~[?:?]
>>>> at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:824)
~[?:?]
>>>> at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
~[?:?]
>>>> at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:246)
~[?:?]
>>>> at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:339)
~[?:?]
>>>> at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:77)
~[!/:?]
>>>> at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadDocument(XmlBeanDefinitionReader.java:430)
~[!/:?]
>>>> at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:388)
~[!/:?]
>>>> at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:336)
~[!/:?]
>>>> at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:305)
~[!/:?]
>>>> at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:188)
~[!/:?]
>>>> at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:224)
~[!/:?]
>>>> at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:195)
~[!/:?]
>>>> at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:257)
~[!/:?]
>>>> at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:128)
~[!/:?]
>>>> at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:94)
~[!/:?]
>>>> at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:133)
~[!/:?]
>>>> at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:637)
~[!/:?]
>>>> at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:522)
~[!/:?]
>>>> at org.apache.activemq.osgi.ActiveMQServiceFactory.updated(ActiveMQServiceFactory.java:126)
~[!/:5.15.13]
>>>> ... 7 more
>>>> 
>>>> I follow the tips available on https://issues.apache.org/jira/browse/AMQ-7258
<https://issues.apache.org/jira/browse/AMQ-7258> but it doesn't work.
>>>> 
>>>> Hereinafter, what I tested, fixed:
>>>> 
>>>> 1) I moved to 5.15.13 but same issue.
>>>> 
>>>> 2) Inside activemq project I see that spring.version used inside activemq
project (for 5.15.13) is 4.3.26.RELEASE while by default IIRC it uses 5.2.5.RELEASE. So, I
try to recompile locally tag 5.15.13 activemq stuff with this changes.
>>>> But also in this case I receive the same issue.
>>>> 
>>>> 3) I see also that the feature activemq-amqp-client seems that it doesn't
contains all deps. I fix this with a local workaround with a feature like this:
>>>> 
>>>>     <feature name='my-activemq' description='ActiveMQ Setup' version='${activemq.version}'>
>>>>         <bundle start-level="40">mvn:org.apache.qpid/qpid-jms-client/0.49.0</bundle>
>>>>         <bundle start-level="40">mvn:org.apache.qpid/proton-j/0.33.3</bundle>
>>>>         <bundle start-level="40">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-beans/5.2.5.RELEASE_1</bundle>
>>>>         <bundle start-level="40">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-core/5.2.5.RELEASE_1</bundle>
>>>>         <bundle start-level="40">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-aop/5.2.5.RELEASE_1</bundle>
>>>>         <bundle start-level="40">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-context/5.2.5.RELEASE_1</bundle>
>>>>         <bundle start-level="40">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-context-support/5.2.5.RELEASE_1</bundle>
>>>>         <feature>cxf-http-netty-client</feature>
>>>>         <feature>activemq-amqp-client</feature>
>>>>     </feature>
>>>> 
>>>> There probably there is something to fix on feature.xml of the activemq project
for this.
>>>> 
>>>> 4) I also configured .m2/settings.xml with proxy and set http_proxy environment
variables (on Linux) but resolution is done ignoring proxy settings.
>>>> 
>>>> There are the repo that I add before install activemq:
>>>> 
>>>> feature:repo-add mvn:org.apache.cxf.karaf/apache-cxf/3.3.5/xml/features
>>>> feature:repo-add mvn:org.apache.camel.karaf/apache-camel/2.24.3/xml/features
>>>> feature:repo-add mvn:org.apache.karaf.features/spring-legacy/4.2.9/xml/features
>>>> feature:repo-add mvn:org.apache.activemq/activemq-karaf/5.15.13/xml/features-core
>>>> feature:repo-add mvn:org.apache.activemq/activemq-karaf/5.15.13/xml/features
>>>> 
>>>> with or without this:
>>>> 
>>>> feature:repo-add mvn:org.apache.karaf.features/spring/4.2.9/xml/features
>>>> 
>>>> Where could be the possible problem?
>>>> 
>>>> Could be related to the optional resolution option available in activemq-osgi?
>>>> 
>>>> Thanks in advance for any suggestions.
>>>> 
>>>> geaaru
>> 


Mime
View raw message