I missing maybe an important information:
# java -versionopenjdk version "11.0.7" 2020-04-14OpenJDK Runtime
Environment AdoptOpenJDK (build 11.0.7+10)OpenJDK 64-Bit Server VM
AdoptOpenJDK (build 11.0.7+10, mixed mode)
# uname -aLinux dev1 5.4.0-sabayon #1 SMP Fri May 8 19:23:19 UTC 2020
x86_64 Intel(R) Xeon(R) CPU E7- 2830 @ 2.13GHz GenuineIntel GNU/Linux
On Fri, 2020-07-03 at 15:47 +0200, Geaaru wrote:
> I confirm that the service start start correctly also without my
> patch but not with your steps.Steps that works for me are these:
> feature:repo-add mvn:org.apache.cxf.karaf/apache-
> cxf/3.3.5/xml/featuresfeature:repo-add
> mvn:org.apache.camel.karaf/apache-
> camel/2.24.3/xml/featuresfeature:repo-add
> mvn:org.apache.karaf.features/spring-
> legacy/4.2.9/xml/featuresfeature:repo-add
> mvn:org.apache.activemq/activemq-karaf/5.15.13/xml/features-
> corefeature:repo-add mvn:org.apache.activemq/activemq-
> karaf/5.15.13/xml/features
> feature:install spring/4.3.25.RELEASE_1feature:install spring-
> jms/4.3.25.RELEASE_1feature:install spring-web/4.3.25.RELEASE_1
> feature:install activemq-broker
> and then the service then start correctly with binding on port 61616
>
> On Fri, 2020-07-03 at 13:55 +0200, Jean-Baptiste Onofre wrote:
> > 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 <[email protected]> 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()> feature:install spring/4.3.25.RELEASE_1karaf@root()
> > > > feature:install spring-jms/4.3.25.RELEASE_1karaf@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 <[email protected]> a écrit :
> > > > >
> > > > > Found the issue!!!
> > > > > diff --git a/activemq-osgi/pom.xml b/activemq-
> > > > > osgi/pom.xmlindex b2bdc42ec..fdb08e254 100644--- a/activemq-
> > > > > osgi/pom.xml+++ b/activemq-osgi/pom.xml@@ -62,9 +62,9
> > > > > @@ org.apache.zookeeper*;resolution:=optional, or
> > > > > g.fusesource.leveldbjni*;resolution:=optional, org.fuse
> > > > > source.hawtjni*;resolution:=optional,- org.springframewo
> > > > > rk.jms*;version="[4,6)";resolution:=optional,- org.sprin
> > > > > gframework.transaction*;version="[4,6)";resolution:=optional,
> > > > > - org.springframework*;version="[4,6)";resolution:=optio
> > > > > nal,+ org.springframework.jms*;version="[4,6)",+ or
> > > > > g.springframework.transaction*;version="[4,6)",+ org.spr
> > > > > ingframework*;version="[4,6)", org.xmlpull*;resolution:
> > > > > =optional, scala*;resolution:=optional, javax.ann
> > > > > otation*;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
> > > > > > warningorg.xml.sax.SAXParseException: schema_reference.4:
> > > > > > Failed to read schema document '
> > > > > > 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.re
> > > > > > portError(XMLErrorReporter.java:392) [?:?] at
> > > > > > com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.re
> > > > > > portError(XMLErrorReporter.java:306) [?:?] at
> > > > > > com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHa
> > > > > > ndler.reportSchemaErr(XSDHandler.java:4257) [?:?] at
> > > > > > com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHa
> > > > > > ndler.reportSchemaWarning(XSDHandler.java:4248) [?:?]
> > > > > > at
> > > > > > com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHa
> > > > > > ndler.getSchemaDocument1(XSDHandler.java:2542) [?:?]
> > > > > > at
> > > > > > com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHa
> > > > > > ndler.getSchemaDocument(XSDHandler.java:2238) [?:?] at
> > > > > > com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHa
> > > > > > ndler.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.XMLSchemaValidat
> > > > > > or.findSchemaGrammar(XMLSchemaValidator.java:2710) [?:?]
> > > > > > at
> > > > > > com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidat
> > > > > > or.handleStartElement(XMLSchemaValidator.java:2069) [?:?]
> > > > > > at
> > > > > > com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidat
> > > > > > or.startElement(XMLSchemaValidator.java:829) [?:?] at
> > > > > > com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScanne
> > > > > > rImpl.scanStartElement(XMLNSDocumentScannerImpl.java:374)
> > > > > > [?:?] at
> > > > > > com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScanne
> > > > > > rImpl$NSContentDriver.scanRootElementHook(XMLNSDocumentScan
> > > > > > nerImpl.java:613) [?:?] at
> > > > > > com.sun.org.apache.xerces.internal.impl.XMLDocumentFragment
> > > > > > ScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentS
> > > > > > cannerImpl.java:3063) [?:?] at
> > > > > > com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerI
> > > > > > mpl$PrologDriver.next(XMLDocumentScannerImpl.java:836)
> > > > > > [?:?] at
> > > > > > com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerI
> > > > > > mpl.next(XMLDocumentScannerImpl.java:605) [?:?] at
> > > > > > com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScanne
> > > > > > rImpl.next(XMLNSDocumentScannerImpl.java:112) [?:?] at
> > > > > > com.sun.org.apache.xerces.internal.impl.XMLDocumentFragment
> > > > > > ScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.jav
> > > > > > a:534) [?:?] at
> > > > > > com.sun.org.apache.xerces.internal.parsers.XML11Configurati
> > > > > > on.parse(XML11Configuration.java:888) [?:?] at
> > > > > > com.sun.org.apache.xerces.internal.parsers.XML11Configurati
> > > > > > on.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.XmlBeanDefinitionRead
> > > > > > er.doLoadDocument(XmlBeanDefinitionReader.java:430) [!/:?]
> > > > > > at
> > > > > > org.springframework.beans.factory.xml.XmlBeanDefinitionRead
> > > > > > er.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:388)
> > > > > > [!/:?] at
> > > > > > org.springframework.beans.factory.xml.XmlBeanDefinitionRead
> > > > > > er.loadBeanDefinitions(XmlBeanDefinitionReader.java:336)
> > > > > > [!/:?] at
> > > > > > org.springframework.beans.factory.xml.XmlBeanDefinitionRead
> > > > > > er.loadBeanDefinitions(XmlBeanDefinitionReader.java:305)
> > > > > > [!/:?] at
> > > > > > org.springframework.beans.factory.support.AbstractBeanDefin
> > > > > > itionReader.loadBeanDefinitions(AbstractBeanDefinitionReade
> > > > > > r.java:188) [!/:?] at
> > > > > > org.springframework.beans.factory.support.AbstractBeanDefin
> > > > > > itionReader.loadBeanDefinitions(AbstractBeanDefinitionReade
> > > > > > r.java:224) [!/:?] at
> > > > > > org.springframework.beans.factory.support.AbstractBeanDefin
> > > > > > itionReader.loadBeanDefinitions(AbstractBeanDefinitionReade
> > > > > > r.java:195) [!/:?] at
> > > > > > org.springframework.beans.factory.support.AbstractBeanDefin
> > > > > > itionReader.loadBeanDefinitions(AbstractBeanDefinitionReade
> > > > > > r.java:257) [!/:?] at
> > > > > > org.springframework.context.support.AbstractXmlApplicationC
> > > > > > ontext.loadBeanDefinitions(AbstractXmlApplicationContext.ja
> > > > > > va:128) [!/:?] at
> > > > > > org.springframework.context.support.AbstractXmlApplicationC
> > > > > > ontext.loadBeanDefinitions(AbstractXmlApplicationContext.ja
> > > > > > va:94) [!/:?] at
> > > > > > org.springframework.context.support.AbstractRefreshableAppl
> > > > > > icationContext.refreshBeanFactory(AbstractRefreshableApplic
> > > > > > ationContext.java:133) [!/:?] at
> > > > > > org.springframework.context.support.AbstractApplicationCont
> > > > > > ext.obtainFreshBeanFactory(AbstractApplicationContext.java:
> > > > > > 637) [!/:?] at
> > > > > > org.springframework.context.support.AbstractApplicationCont
> > > > > > ext.refresh(AbstractApplicationContext.java:522) [!/:?]
> > > > > > at
> > > > > > org.apache.activemq.osgi.ActiveMQServiceFactory.updated(Act
> > > > > > iveMQServiceFactory.java:126) [!/:5.15.13] at
> > > > > > org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracke
> > > > > > r.updated(ManagedServiceFactoryTracker.java:159) [!/:?]
> > > > > > at
> > > > > > org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracke
> > > > > > r.provideConfiguration(ManagedServiceFactoryTracker.java:93
> > > > > > ) [!/:?] at
> > > > > > org.apache.felix.cm.impl.ConfigurationManager$ManagedServic
> > > > > > eFactoryUpdate.provide(ConfigurationManager.java:1253)
> > > > > > [!/:?] at
> > > > > > org.apache.felix.cm.impl.ConfigurationManager$ManagedServic
> > > > > > eFactoryUpdate.run(ConfigurationManager.java:1197) [!/:?]
> > > > > > at
> > > > > > org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.jav
> > > > > > a: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(AbstractPlainSoc
> > > > > > ketImpl.java:399) ~[?:?] at
> > > > > > java.net.AbstractPlainSocketImpl.connectToAddress(AbstractP
> > > > > > lainSocketImpl.java:242) ~[?:?] at
> > > > > > java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocke
> > > > > > tImpl.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.
> > > > > > www.http.HttpClient.openServer(HttpClient.java:474) ~[?:?]
> > > > > > at sun.net.
> > > > > > www.http.HttpClient.openServer(HttpClient.java:569) ~[?:?]
> > > > > > at sun.net.www.http.HttpClient.<init>(HttpClient.java:242)
> > > > > > ~[?:?] at sun.net.
> > > > > > www.http.HttpClient.New(HttpClient.java:341) ~[?:?] at
> > > > > > sun.net.www.http.HttpClient.New(HttpClient.java:362) ~[?:?]
> > > > > > at sun.net.
> > > > > > www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1248)
> > > > > > ~[?:?] at sun.net.
> > > > > > www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1187)
> > > > > > ~[?:?] at sun.net.
> > > > > > www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1081)
> > > > > > ~[?:?] at sun.net.
> > > > > > www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:1015)
> > > > > > ~[?:?] at sun.net.
> > > > > > www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1587)
> > > > > > ~[?:?] at sun.net.
> > > > > > www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1515)
> > > > > > ~[?:?] at
> > > > > > com.sun.org.apache.xerces.internal.impl.XMLEntityManager.se
> > > > > > tupCurrentEntity(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.SchemaParsi
> > > > > > ngConfig.parse(SchemaParsingConfig.java:593) ~[?:?] at
> > > > > > com.sun.org.apache.xerces.internal.impl.xs.opti.SchemaParsi
> > > > > > ngConfig.parse(SchemaParsingConfig.java:696) ~[?:?] at
> > > > > > com.sun.org.apache.xerces.internal.impl.xs.opti.SchemaDOMPa
> > > > > > rser.parse(SchemaDOMParser.java:530) ~[?:?] at
> > > > > > com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHa
> > > > > > ndler.getSchemaDocument(XSDHandler.java:2226) ~[?:?]
> > > > > > ... 39 more2020-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 brokerorg.osgi.service.cm.ConfigurationException: null
> > > > > > : Cannot start the broker at
> > > > > > org.apache.activemq.osgi.ActiveMQServiceFactory.updated(Act
> > > > > > iveMQServiceFactory.java:147) ~[!/:5.15.13] at
> > > > > > org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracke
> > > > > > r.updated(ManagedServiceFactoryTracker.java:159) ~[!/:?]
> > > > > > at
> > > > > > org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracke
> > > > > > r.provideConfiguration(ManagedServiceFactoryTracker.java:93
> > > > > > ) [!/:?] at
> > > > > > org.apache.felix.cm.impl.ConfigurationManager$ManagedServic
> > > > > > eFactoryUpdate.provide(ConfigurationManager.java:1253)
> > > > > > [!/:?] at
> > > > > > org.apache.felix.cm.impl.ConfigurationManager$ManagedServic
> > > > > > eFactoryUpdate.run(ConfigurationManager.java:1197) [!/:?]
> > > > > > at
> > > > > > org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.jav
> > > > > > a: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.XmlBeanDefinitionStor
> > > > > > eException: 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.XmlBeanDefinitionRead
> > > > > > er.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:400)
> > > > > > ~[!/:?] at
> > > > > > org.springframework.beans.factory.xml.XmlBeanDefinitionRead
> > > > > > er.loadBeanDefinitions(XmlBeanDefinitionReader.java:336)
> > > > > > ~[!/:?] at
> > > > > > org.springframework.beans.factory.xml.XmlBeanDefinitionRead
> > > > > > er.loadBeanDefinitions(XmlBeanDefinitionReader.java:305)
> > > > > > ~[!/:?] at
> > > > > > org.springframework.beans.factory.support.AbstractBeanDefin
> > > > > > itionReader.loadBeanDefinitions(AbstractBeanDefinitionReade
> > > > > > r.java:188) ~[!/:?] at
> > > > > > org.springframework.beans.factory.support.AbstractBeanDefin
> > > > > > itionReader.loadBeanDefinitions(AbstractBeanDefinitionReade
> > > > > > r.java:224) ~[!/:?] at
> > > > > > org.springframework.beans.factory.support.AbstractBeanDefin
> > > > > > itionReader.loadBeanDefinitions(AbstractBeanDefinitionReade
> > > > > > r.java:195) ~[!/:?] at
> > > > > > org.springframework.beans.factory.support.AbstractBeanDefin
> > > > > > itionReader.loadBeanDefinitions(AbstractBeanDefinitionReade
> > > > > > r.java:257) ~[!/:?] at
> > > > > > org.springframework.context.support.AbstractXmlApplicationC
> > > > > > ontext.loadBeanDefinitions(AbstractXmlApplicationContext.ja
> > > > > > va:128) ~[!/:?] at
> > > > > > org.springframework.context.support.AbstractXmlApplicationC
> > > > > > ontext.loadBeanDefinitions(AbstractXmlApplicationContext.ja
> > > > > > va:94) ~[!/:?] at
> > > > > > org.springframework.context.support.AbstractRefreshableAppl
> > > > > > icationContext.refreshBeanFactory(AbstractRefreshableApplic
> > > > > > ationContext.java:133) ~[!/:?] at
> > > > > > org.springframework.context.support.AbstractApplicationCont
> > > > > > ext.obtainFreshBeanFactory(AbstractApplicationContext.java:
> > > > > > 637) ~[!/:?] at
> > > > > > org.springframework.context.support.AbstractApplicationCont
> > > > > > ext.refresh(AbstractApplicationContext.java:522) ~[!/:?]
> > > > > > at
> > > > > > org.apache.activemq.osgi.ActiveMQServiceFactory.updated(Act
> > > > > > iveMQServiceFactory.java:126) ~[!/:5.15.13] ... 7
> > > > > > moreCaused 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.re
> > > > > > portError(XMLErrorReporter.java:396) ~[?:?] at
> > > > > > com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.re
> > > > > > portError(XMLErrorReporter.java:327) ~[?:?] at
> > > > > > com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.re
> > > > > > portError(XMLErrorReporter.java:284) ~[?:?] at
> > > > > > com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidat
> > > > > > or.handleStartElement(XMLSchemaValidator.java:2132) ~[?:?]
> > > > > > at
> > > > > > com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidat
> > > > > > or.startElement(XMLSchemaValidator.java:829) ~[?:?] at
> > > > > > com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScanne
> > > > > > rImpl.scanStartElement(XMLNSDocumentScannerImpl.java:374)
> > > > > > ~[?:?] at
> > > > > > com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScanne
> > > > > > rImpl$NSContentDriver.scanRootElementHook(XMLNSDocumentScan
> > > > > > nerImpl.java:613) ~[?:?] at
> > > > > > com.sun.org.apache.xerces.internal.impl.XMLDocumentFragment
> > > > > > ScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentS
> > > > > > cannerImpl.java:3063) ~[?:?] at
> > > > > > com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerI
> > > > > > mpl$PrologDriver.next(XMLDocumentScannerImpl.java:836)
> > > > > > ~[?:?] at
> > > > > > com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerI
> > > > > > mpl.next(XMLDocumentScannerImpl.java:605) ~[?:?] at
> > > > > > com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScanne
> > > > > > rImpl.next(XMLNSDocumentScannerImpl.java:112) ~[?:?]
> > > > > > at
> > > > > > com.sun.org.apache.xerces.internal.impl.XMLDocumentFragment
> > > > > > ScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.jav
> > > > > > a:534) ~[?:?] at
> > > > > > com.sun.org.apache.xerces.internal.parsers.XML11Configurati
> > > > > > on.parse(XML11Configuration.java:888) ~[?:?] at
> > > > > > com.sun.org.apache.xerces.internal.parsers.XML11Configurati
> > > > > > on.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.XmlBeanDefinitionRead
> > > > > > er.doLoadDocument(XmlBeanDefinitionReader.java:430) ~[!/:?]
> > > > > > at
> > > > > > org.springframework.beans.factory.xml.XmlBeanDefinitionRead
> > > > > > er.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:388)
> > > > > > ~[!/:?] at
> > > > > > org.springframework.beans.factory.xml.XmlBeanDefinitionRead
> > > > > > er.loadBeanDefinitions(XmlBeanDefinitionReader.java:336)
> > > > > > ~[!/:?] at
> > > > > > org.springframework.beans.factory.xml.XmlBeanDefinitionRead
> > > > > > er.loadBeanDefinitions(XmlBeanDefinitionReader.java:305)
> > > > > > ~[!/:?] at
> > > > > > org.springframework.beans.factory.support.AbstractBeanDefin
> > > > > > itionReader.loadBeanDefinitions(AbstractBeanDefinitionReade
> > > > > > r.java:188) ~[!/:?] at
> > > > > > org.springframework.beans.factory.support.AbstractBeanDefin
> > > > > > itionReader.loadBeanDefinitions(AbstractBeanDefinitionReade
> > > > > > r.java:224) ~[!/:?] at
> > > > > > org.springframework.beans.factory.support.AbstractBeanDefin
> > > > > > itionReader.loadBeanDefinitions(AbstractBeanDefinitionReade
> > > > > > r.java:195) ~[!/:?] at
> > > > > > org.springframework.beans.factory.support.AbstractBeanDefin
> > > > > > itionReader.loadBeanDefinitions(AbstractBeanDefinitionReade
> > > > > > r.java:257) ~[!/:?] at
> > > > > > org.springframework.context.support.AbstractXmlApplicationC
> > > > > > ontext.loadBeanDefinitions(AbstractXmlApplicationContext.ja
> > > > > > va:128) ~[!/:?] at
> > > > > > org.springframework.context.support.AbstractXmlApplicationC
> > > > > > ontext.loadBeanDefinitions(AbstractXmlApplicationContext.ja
> > > > > > va:94) ~[!/:?] at
> > > > > > org.springframework.context.support.AbstractRefreshableAppl
> > > > > > icationContext.refreshBeanFactory(AbstractRefreshableApplic
> > > > > > ationContext.java:133) ~[!/:?] at
> > > > > > org.springframework.context.support.AbstractApplicationCont
> > > > > > ext.obtainFreshBeanFactory(AbstractApplicationContext.java:
> > > > > > 637) ~[!/:?] at
> > > > > > org.springframework.context.support.AbstractApplicationCont
> > > > > > ext.refresh(AbstractApplicationContext.java:522) ~[!/:?]
> > > > > > at
> > > > > > org.apache.activemq.osgi.ActiveMQServiceFactory.updated(Act
> > > > > > iveMQServiceFactory.java:126) ~[!/:5.15.13] ... 7 more
> > > > > > I follow the tips available on
> > > > > > 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.ser
> > > > > > vicemix.bundles.spring-
> > > > > > beans/5.2.5.RELEASE_1</bundle> <bundle start-
> > > > > > level="40">mvn:org.apache.servicemix.bundles/org.apache.ser
> > > > > > vicemix.bundles.spring-
> > > > > > core/5.2.5.RELEASE_1</bundle> <bundle start-
> > > > > > level="40">mvn:org.apache.servicemix.bundles/org.apache.ser
> > > > > > vicemix.bundles.spring-
> > > > > > aop/5.2.5.RELEASE_1</bundle> <bundle start-
> > > > > > level="40">mvn:org.apache.servicemix.bundles/org.apache.ser
> > > > > > vicemix.bundles.spring-
> > > > > > context/5.2.5.RELEASE_1</bundle> <bundle start-
> > > > > > level="40">mvn:org.apache.servicemix.bundles/org.apache.ser
> > > > > > vicemix.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/featuresfeature:repo-add
> > > > > > mvn:org.apache.camel.karaf/apache-
> > > > > > camel/2.24.3/xml/featuresfeature:repo-add
> > > > > > mvn:org.apache.karaf.features/spring-
> > > > > > legacy/4.2.9/xml/featuresfeature:repo-add
> > > > > > mvn:org.apache.activemq/activemq-
> > > > > > karaf/5.15.13/xml/features-corefeature: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