aldettinger opened a new issue #3265: URL: https://github.com/apache/camel-quarkus/issues/3265
When a camel-quarkus application is using `camel.main.routes-include-pattern` with a `*` wildcard, some routebuilders/routeconfigurations resources might be loaded twice. Users may face error messages like below: - `Failed to start route xyz because of Multiple consumers for the same endpoint is not allowed` - `Route configuration already exists with id: xyz` The simplest way to reproduce might be to amend the [main-yaml/src/main/resources/applications.properties](https://github.com/apache/camel-quarkus/blob/main/integration-tests/main-yaml/src/main/resources/application.properties) file with `camel.main.routes-include-pattern = classpath:routes/*.yaml` Then, running the tests will show that route loading fails because of multiple consumers on a given endpoint. It might be due to the fact that a route is loaded twice. The `DefaultPackageScanResourceResolver` seems guilty as a `DefaultPackageScanResourceResolver.findInClasspath("routes/", resources, "*.yaml")` returns a collection of 4 routes while 2 are expected. It looks like the same underlying resource loaded from different class loaders are not equal. As such, the given resource can be returned twice in the `Set<Resource>`. Not sure yet whether we could consider the issue to be in camel or camel-quarkus. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org