You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2022/08/23 05:50:00 UTC

[jira] [Work logged] (AMQ-9026) ActiveMQ unable to run offline with Karaf

     [ https://issues.apache.org/jira/browse/AMQ-9026?focusedWorklogId=802702&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-802702 ]

ASF GitHub Bot logged work on AMQ-9026:
---------------------------------------

                Author: ASF GitHub Bot
            Created on: 23/Aug/22 05:49
            Start Date: 23/Aug/22 05:49
    Worklog Time Spent: 10m 
      Work Description: jbonofre merged PR #897:
URL: https://github.com/apache/activemq/pull/897




Issue Time Tracking
-------------------

            Worklog Id:     (was: 802702)
    Remaining Estimate: 0h
            Time Spent: 10m

> ActiveMQ unable to run offline with Karaf
> -----------------------------------------
>
>                 Key: AMQ-9026
>                 URL: https://issues.apache.org/jira/browse/AMQ-9026
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: OSGi/Karaf
>    Affects Versions: 5.17.0
>            Reporter: George McCone
>            Assignee: Jean-Baptiste Onofré
>            Priority: Minor
>             Fix For: 5.17.2
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> When trying to start an ActiveMq broker using an XML configuration file in Karaf from an environment that does not have internet access, the broker fails to start because it can not resolve the spring-beans.xsd file.
> This is similar to the situation reported in AMQ-7258, but the workaround of loading the spring-legacy feature does not work as result of the upgrade to Spring 5.x done in AMQ-8026.
> The root cause is that activemq-osgi bundle's mapping in the spring.schemas file for the http schemalocations do not match the name of the XSDs that are embedded in the spring-beans bundle for spring version 5. It looks like all the version numbers were removed in from the xsd file name for version 5.
> Workaround:
> To work around this problem without manually modifying the contents of the spring.schemas file within the activemq-osgi bundle (which does work, just to prove this was root cause), is to modify the schema location within the activemq.xml file to use a classpath definition. For example, use the following
> xsi:schemaLocation="http://www.springframework.org/schema/beans classpath:org/springframework/beans/factory/xml/spring-beans.xsd
> instead of of the standard
> xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd



--
This message was sent by Atlassian Jira
(v8.20.10#820010)