gus-maurizio commented on issue #1474:
URL: https://github.com/apache/camel-quarkus/issues/1474#issuecomment-657607765


   Ciao Luca. It is basically that example (with a few embellishments). Added 
the camel-main, camel-log, camel-timer to the pom.xml and it compiles ok. The 
problems are trying to do mvn clean quarkus:dev (I get the messages above) and 
java -jar ....-runner.jar when I get the messages below:
   
   `
   Exception in thread "main" java.lang.NoClassDefFoundError: 
org/apache/camel/quarkus/core/CamelConfig$$accessor
        at io.quarkus.runtime.generated.Config.<clinit>(Config.zig:590)
        at io.quarkus.runner.ApplicationImpl.<clinit>(ApplicationImpl.zig:45)
        at 
java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native
 Method)
        at 
java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at 
java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at 
java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
        at java.base/java.lang.Class.newInstance(Class.java:584)
        at io.quarkus.runtime.Quarkus.run(Quarkus.java:60)
        at io.quarkus.runtime.Quarkus.run(Quarkus.java:38)
        at com.example.Main.main(Main.java:11)
   Caused by: java.lang.ClassNotFoundException: 
org.apache.camel.quarkus.core.CamelConfig$$accessor
        at 
java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
        at 
java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
        ... 10 more
   `
   
   The main class is simple:
   `
   package com.example;
   
   import io.quarkus.runtime.Quarkus;
   import io.quarkus.runtime.annotations.QuarkusMain;
   import org.apache.camel.quarkus.main.CamelMainApplication;
   
   @QuarkusMain
   public class Main {
       public static void main(String... args) {
           Quarkus.run(CamelMainApplication.class, args);
       }
   }
   `


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to