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 2016/12/19 12:54:58 UTC

[jira] [Commented] (AMQ-6544) ActiveMQ does not start up on karaf if offline (SAXParseException)

    [ https://issues.apache.org/jira/browse/AMQ-6544?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15761090#comment-15761090 ] 

ASF GitHub Bot commented on AMQ-6544:
-------------------------------------

GitHub user cschneider opened a pull request:

    https://github.com/apache/activemq/pull/222

    [AMQ-6544] Create spring.schemas with schemas of activemq and spring

    As spring is embedded now we also need to define the spring schema mappings to make them available when being offline. Downside is that this needs to be maintained. So the better way would be to join the files from activemq-spring and spring. 
    Does anyone know how to do this?


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/cschneider/activemq AMQ-6544

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/activemq/pull/222.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #222
    
----
commit 50dae26788400cef745932535f1c933abdd56637
Author: Christian Schneider <ch...@die-schneider.net>
Date:   2016-12-19T12:51:58Z

    [AMQ-6544] Create spring.schemas with schemas of activemq and spring

----


> ActiveMQ does not start up on karaf if offline (SAXParseException)
> ------------------------------------------------------------------
>
>                 Key: AMQ-6544
>                 URL: https://issues.apache.org/jira/browse/AMQ-6544
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: OSGi/Karaf
>    Affects Versions: 5.14.2
>         Environment: Karaf, Offline
>            Reporter: Christian Schneider
>             Fix For: 5.x
>
>
> To reproduce:
> - Download, unpack and start karaf 4.0.8
>     feature:repo-add activemq 5.14.2
>     feature:install activemq-broker
> ActiveMQ start succesfully.
> Now stop karaf, go offline and start karaf again.
> This time the exception below can be found in the log and ActiveMQ fails to start.
> org.osgi.service.cm.ConfigurationException: null : Cannot start the broker
> Caused by: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 24 in XML document from URL [file:/home/cschneider/java/apache-karaf-4.0.8/etc/activemq.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-elt.1.a: Cannot find the declaration of element 'beans'.
> Caused by: org.xml.sax.SAXParseException: cvc-elt.1.a: Cannot find the declaration of element 'beans'.
> Full stack trace can be found here http://apaste.info/PQSHZ
> The reason for this problem seems to be that the xsd can not be found. So I assume we lack the correct mapping from urls to embedded xsds.
> I will work on a fix.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)