Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-6544

ActiveMQ does not start up on karaf if offline (SAXParseException)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.14.2
    • 5.15.0, 5.14.3
    • OSGi/Karaf
    • None
    • Karaf, Offline

    • Regression
    • Important

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              cschneider Christian Schneider
              cschneider Christian Schneider
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: