Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-21416

camel-jbang: Simple camel run --runtime camel-quarkus hello.yaml fails with ClassNotFoundException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Not A Bug
    • 4.8.1
    • None
    • camel-jbang
    • None
    • Unknown

    Description

      What I did:

      1. jbang app install --force camel@apache/camel
      2. camel init hello.yaml
      3. camel run --runtime camel-quarkus hello.yaml

      [~]$ camel run --runtime camel-quarkus hello.yaml
      java.lang.ClassNotFoundException: org.apache.camel.kamelets.catalog.KameletsCatalog
      	at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:445)
      	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:592)
      	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525)
      	at org.apache.camel.dsl.jbang.core.commands.catalog.KameletCatalogHelper.loadKamelets(KameletCatalogHelper.java:151)
      	at org.apache.camel.dsl.jbang.core.commands.catalog.KameletCatalogHelper.findKameletNames(KameletCatalogHelper.java:37)
      	at org.apache.camel.dsl.jbang.core.commands.ExportBaseCommand.resolveDependencies(ExportBaseCommand.java:368)
      	at org.apache.camel.dsl.jbang.core.commands.ExportQuarkus.resolveDependencies(ExportQuarkus.java:448)
      	at org.apache.camel.dsl.jbang.core.commands.ExportQuarkus.export(ExportQuarkus.java:117)
      	at org.apache.camel.dsl.jbang.core.commands.Run.runQuarkus(Run.java:912)
      	at org.apache.camel.dsl.jbang.core.commands.Run.run(Run.java:414)
      	at org.apache.camel.dsl.jbang.core.commands.Run.doCall(Run.java:319)
      	at org.apache.camel.dsl.jbang.core.commands.CamelCommand.call(CamelCommand.java:71)
      	at org.apache.camel.dsl.jbang.core.commands.CamelCommand.call(CamelCommand.java:37)
      	at picocli.CommandLine.executeUserObject(CommandLine.java:2045)
      	at picocli.CommandLine.access$1500(CommandLine.java:148)
      	at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2465)
      	at picocli.CommandLine$RunLast.handle(CommandLine.java:2457)
      	at picocli.CommandLine$RunLast.handle(CommandLine.java:2419)
      	at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2277)
      	at picocli.CommandLine$RunLast.execute(CommandLine.java:2421)
      	at picocli.CommandLine.execute(CommandLine.java:2174)
      	at org.apache.camel.dsl.jbang.core.commands.CamelJBangMain.run(CamelJBangMain.java:173)
      	at org.apache.camel.dsl.jbang.core.commands.CamelJBangMain.run(CamelJBangMain.java:62)
      	at main.CamelJBang.main(CamelJBang.java:36)
      

      the same issues can be observed with runtime camel-spring-boot, with runtime camel-main it works.

      Attachments

        Activity

          People

            Unassigned Unassigned
            avano Andrej Vano
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: