Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-20179

dependency for camel-language will not be resolved automatically

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Major Major
    • camel-k-1.10
    • camel-k-1.8
    • Camel-K
    • None
    • False
    • None
    • False
    • % %
    • Todo
    • Hide

      Defining dependency at the kamel cli. 

      kamel  run -d camel-language ...

      works fine.

      Show
      Defining dependency at the kamel cli.  kamel  run -d camel-language ... works fine.
    • 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> 

       

              rhn-support-tasato Tadayoshi Sato
              rbaumgar Robert Baumgartner
              Jan Bouska Jan Bouska
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: