-
Bug
-
Resolution: Not a Bug
-
Major
-
camel-k-1.8
-
None
-
False
-
None
-
False
-
%
-
Todo
-
-
Very Likely
try to run simple camel rest service on Camel-K-Integration 1.8 /Apache Camel-K Runtime 1.21
2022-10-31 07:54:55,593 INFO [org.apa.cam.k.Runtime] (main) Apache Camel K Runtime 1.12.1.redhat-00031 2022-10-31 07:54:55,636 INFO [org.apa.cam.qua.cor.CamelBootstrapRecorder] (main) Bootstrap runtime: org.apache.camel.quarkus.main.CamelMainRuntime 2022-10-31 07:54:55,892 INFO [org.apa.cam.k.lis.SourcesConfigurer] (main) Loading routes from: SourceDefinition{name='end1', language='xml', type='source', location='file:/etc/camel/sources/end1.xml', } 2022-10-31 07:54:56,669 ERROR [org.apa.cam.qua.mai.CamelMainRuntime] (main) Failed to start application: org.apache.camel.FailedToCreateRouteException: Failed to create route getDetails at: >>> To[language:constant:resource:file:/etc/camel/resources/response.xml] <<< in route: Route(getDetails)[From[rest://post:/subscriber/details?consu... because of No endpoint could be found for: language://constant:resource:file:/etc/camel/resources/response.xml, please check your classpath contains the needed Camel component jar.
end1.xml
<?xml version="1.0" encoding="UTF-8"?><!-- camel-k: language=xml dependency=camel-quarkus-openapi-java --> <rests xmlns="http://camel.apache.org/schema/spring"> <rest> <post id="getDetails" uri="/subscriber/details" consumes="application/xml" produces="application/xml"> <param name="body" type="body" required="true" description="request data"/> <to uri="language:constant:resource:file:/etc/camel/resources/response.xml"/> </post> </rest> </rests>