I'd have to check it by installing activemq features and trying a broker...
I don't know about a workaround for this problem - tomorrow, I'll check why it needs to download this schema in the first place (instead of taking one from the jar). regards Grzegorz czw., 17 paź 2024 o 18:24 Luis Lozano <[email protected]> napisał(a): > No. In karaf 4.2.16 I use 5.15.11, and in 4.4.6 I use 5.17.1 > > Do you know of any workarounds to get through this at the moment? I need > the client to test it in their environment before sending a new version. > > El jue, 17 oct 2024 a las 18:13, Grzegorz Grzybek (<[email protected]>) > escribió: > >> Hmm >> >> I checked >> org.apache.servicemix.bundles.spring-beans-5.3.33_1.jar/META-INF/spring.schemas >> and it contains proper mapping: >> >> http\:// >> www.springframework.org/schema/beans/spring-beans-2.0.xsd=org/springframework/beans/factory/xml/spring-beans.xsd >> http\:// >> www.springframework.org/schema/beans/spring-beans-2.5.xsd=org/springframework/beans/factory/xml/spring-beans.xsd >> http\:// >> www.springframework.org/schema/beans/spring-beans-3.0.xsd=org/springframework/beans/factory/xml/spring-beans.xsd >> http\:// >> www.springframework.org/schema/beans/spring-beans-3.1.xsd=org/springframework/beans/factory/xml/spring-beans.xsd >> http\:// >> www.springframework.org/schema/beans/spring-beans-3.2.xsd=org/springframework/beans/factory/xml/spring-beans.xsd >> http\:// >> www.springframework.org/schema/beans/spring-beans-4.0.xsd=org/springframework/beans/factory/xml/spring-beans.xsd >> http\:// >> www.springframework.org/schema/beans/spring-beans-4.1.xsd=org/springframework/beans/factory/xml/spring-beans.xsd >> http\:// >> www.springframework.org/schema/beans/spring-beans-4.2.xsd=org/springframework/beans/factory/xml/spring-beans.xsd >> http\:// >> www.springframework.org/schema/beans/spring-beans-4.3.xsd=org/springframework/beans/factory/xml/spring-beans.xsd >> http\:// >> www.springframework.org/schema/beans/spring-beans.xsd=org/springframework/beans/factory/xml/spring-beans.xsd >> >> I don't remember exactly, but I'm pretty sure that at the edge of these >> calls: >> >> at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source) [!/:?] >> at >> org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:77) >> [!/:?] >> >> spring-core adds (to xerces / jaxp document builder) proper locator that >> loads the schema not from network, but from the classpath... >> >> Are you using the same version of ActiveMQ in Karaf 4.2.x and 4.4.x? >> >> ~Grzegorz >> >> czw., 17 paź 2024 o 18:02 Luis Lozano <[email protected]> >> napisał(a): >> >>> Good afternoon. >>> Good afternoon. >>> I have attached a file. >>> >>> 2024-10-16T11:37:36,239 | WARN | CM Configuration Updater >>> (ManagedServiceFactory Update: factoryPid=[org.apache.activemq.server]) | >>> XmlBeanDefinitionReader | 346 - >>> org.apache.servicemix.bundles.spring-beans - 5.3.33.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', >>> 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 >>> 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) [!/:?] >>> >>> ... >>> >>> Caused by: java.net.UnknownHostException: www.springframework.org >>> at >>> java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:220) >>> ~[?:?] >>> at java.net.Socket.connect(Socket.java:609) ~[?:?] >>> at java.net.Socket.connect(Socket.java:558) ~[?:?] >>> at sun.net.NetworkClient.doConnect(NetworkClient.java:182) ~[?:?] >>> >>> >>> >>> Thanx >>> >>> El jue, 17 oct 2024 a las 17:49, Grzegorz Grzybek (<[email protected]>) >>> escribió: >>> >>>> Hmm... >>>> >>>> What's the actual stack trace? Is it visible in the log? >>>> >>>> regards >>>> Grzegorz Grzybek >>>> >>>> czw., 17 paź 2024 o 17:41 Luis Lozano <[email protected]> >>>> napisał(a): >>>> >>>>> Hi. >>>>> "spring-benas-2.0.xsd" is used in the activemq.xml file. >>>>> If I change it to >>>>> http://www.springframework.org/schema/beans/spring-beans.xsd, the >>>>> error is the same, but now with that last reference name. >>>>> Which reference should I use? >>>>> >>>>> El jue, 17 oct 2024 a las 17:05, Grzegorz Grzybek (< >>>>> [email protected]>) escribió: >>>>> >>>>>> Hello >>>>>> >>>>>> "http://www.springframework.org/schema/beans/spring-beans-2.0.xsd" >>>>>> means you have this ancient reference in your application... Normally >>>>>> Spring XMLs should refer to _generic_ XSD without version and these >>>>>> should >>>>>> be _resolved_ from the jar... >>>>>> >>>>>> Please check if you have this reference in your code. >>>>>> >>>>>> kind regards >>>>>> Grzegorz Grzybek >>>>>> >>>>>> czw., 17 paź 2024 o 14:54 Luis Lozano <[email protected]> >>>>>> napisał(a): >>>>>> >>>>>>> >>>>>>> Hello everyone. >>>>>>> >>>>>>> We have recently migrated from karaf 4.2.16 to karaf 4.4.6 >>>>>>> We have our own distribution. >>>>>>> The fact is that everything works fine, except for activemq, which >>>>>>> in the case of installations on servers without internet throws the >>>>>>> following error in kararf.log: >>>>>>> 2024-10-16T11:37:36,239 | WARN | CM Configuration Updater >>>>>>> (ManagedServiceFactory Update: factoryPid=[org.apache.activemq.server]) >>>>>>> | >>>>>>> XmlBeanDefinitionReader | 346 - >>>>>>> org.apache.servicemix.bundles.spring-beans >>>>>>> - 5.3.33.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', >>>>>>> because 1) could not find the document; 2) the document could not be >>>>>>> read; >>>>>>> 3) the root >>>>>>> >>>>>>> .... >>>>>>> >>>>>>> >>>>>>> This makes the activemq broker not work. >>>>>>> >>>>>>> Thanks for the help.-- >>>>>>> Saludos: >>>>>>> Luis Lozano. >>>>>>> >>>>>> >>>>> >>>>> -- >>>>> Saludos: >>>>> Luis Lozano. >>>>> >>>> >>> >>> -- >>> Saludos: >>> Luis Lozano. >>> >> > > -- > Saludos: > Luis Lozano. >
