Hi The src/test/resources/camel or src/main/resources/camel is a reserved folder where Camel will by default load routes from various source files such as yaml, xml, or whatever. So do not use that for test data.
Or turn this off in camel, see the camel. spring boot page for the options https://camel.apache.org/camel-spring-boot/3.17.x/spring-boot.html#_sb_option_camel_springboot_routes-include-pattern On Fri, Jul 1, 2022 at 3:08 PM Ghita Cornel <ghita_cor...@yahoo.com.invalid> wrote: > Hi all > > I have this project GitHub - ghitacornel/testApacheCamel > <https://github.com/ghitacornel/testApacheCamel> > > GitHub - ghitacornel/testApacheCamel > > Contribute to ghitacornel/testApacheCamel development by creating an > account on GitHub. > <https://github.com/ghitacornel/testApacheCamel> > for test purpose. > > While trying to test some examples with latest Apache Camel + Spring Boot, > I keep on getting > " > ... > java.lang.IllegalStateException: Failed to load ApplicationContext > ... > Caused by: > org.apache.camel.spring.boot.CamelSpringBootInitializationException: > java.lang.IllegalArgumentException: Cannot find RoutesBuilderLoader in > classpath supporting file extension: txt =>> !!! or json > ... > " > This exception happens only when running these tests => > camel.ParallelRouteTest > + camel.CsvJsonXmlRouteTest > > *Any advice ? things that i missed in my configurations ?* > > When running the Main Spring Boot class these applications work as > expected. This issue occurs only when running those 2 tests. > I attached the full log also > > BR > Cornel > -- Claus Ibsen ----------------- http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2