Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-15581

Unable to load XML REST definitions with camel-main xmlRests config property

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.4.3, 3.5.0
    • Fix Version/s: 3.6.0, 3.4.5
    • Component/s: camel-main
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      I noticed an issue when trying to use the camel-main configuration property camel.main.xml-rests in Camel Quarkus. It results in:

      2020-09-25 15:33:25,811 ERROR [org.apa.cam.qua.mai.CamelMainRuntime] (main) Failed to start application: org.apache.camel.RuntimeCamelException: org.apache.camel.xml.io.XmlPullParserException: Expected starting tag '

      {http://camel.apache.org/schema/spring}

      routes', read starting tag '

      {http://camel.apache.org/schema/spring}

      rests' instead
      at org.apache.camel.RuntimeCamelException.wrapRuntimeException(RuntimeCamelException.java:66)
      at org.apache.camel.main.DefaultRoutesCollector.collectXmlRestsFromDirectory(DefaultRoutesCollector.java:219)

        Attachments

          Activity

            People

            • Assignee:
              jamesnetherton James Netherton
              Reporter:
              jamesnetherton James Netherton
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: