You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Jacek Szymański (Jira)" <ji...@apache.org> on 2023/03/15 14:16:00 UTC

[jira] [Created] (CAMEL-19156) XML route configurations ignored without both XML IO and JAXB XML loaded

Jacek Szymański created CAMEL-19156:
---------------------------------------

             Summary: XML route configurations ignored without both XML IO and JAXB XML loaded
                 Key: CAMEL-19156
                 URL: https://issues.apache.org/jira/browse/CAMEL-19156
             Project: Camel
          Issue Type: Bug
          Components: camel-spring-boot
    Affects Versions: 4.0-M2, 3.20.2, 3.20.0
            Reporter: Jacek Szymański


XML route configurations are ignored unless both camel-xml-io-dsl-starter and camel-xml-jaxb-dsl-starter are loaded; XML routes are started without configurations.

To reproduce:
 * check out camel-spring-boot-examples, either main branch or camel-spring-boot-examples-3.20.0 tag
 * navigate to routes-configuration subdir
 * remove dependency on either DSL from pom.xml
 * run mvn spring-boot:run

Result:

{{2023-03-15 15:10:37.665 INFO 24848 — [ main] o.a.c.impl.engine.AbstractCamelContext : Routes startup (started:3)}}
{{2023-03-15 15:10:37.665 INFO 24848 — [ main] o.a.c.impl.engine.AbstractCamelContext : Started route1 (timer://java) (source: java:29)}}
{{2023-03-15 15:10:37.665 INFO 24848 — [ main] o.a.c.impl.engine.AbstractCamelContext : Started route2 (timer://xml)}}
{{2023-03-15 15:10:37.665 INFO 24848 — [ main] o.a.c.impl.engine.AbstractCamelContext : Started route3 (timer://yaml) (source: my-yaml-route.yaml:22)}}
{{2023-03-15 15:10:37.665 INFO 24848 — [ main] o.a.c.impl.engine.AbstractCamelContext : Routes configuration:}}
{{2023-03-15 15:10:37.665 INFO 24848 — [ main] o.a.c.impl.engine.AbstractCamelContext : route1 (javaError)}}
{{2023-03-15 15:10:37.666 INFO 24848 — [ main] o.a.c.impl.engine.AbstractCamelContext : route3 (yamlError)}}
{{2023-03-15 15:10:37.666 INFO 24848 — [ main] o.a.c.impl.engine.AbstractCamelContext : Apache Camel 3.20.0 (MyCamel) started in 1s43ms (build:80ms init:329ms start:634ms)}}



XML route is loaded and started, but without the configurations. No error or warning is logged about missing configuration.



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