mhd-robaii opened a new issue, #5225:
URL: https://github.com/apache/camel-k/issues/5225

   ### What happened?
   
   Hi everybody.
   
   We installed camel-k 2.2.0 in our k8s gke cluster version 
v1.26.10-gke.1101000, kamel operator is installed and running without errors 
but after the build the pod starts with an error that it cannot find the 
"quarkus.bootstrap.runner.QuarkusEntryPoint" library
   
   Any ideas what might be the reason for and how to fix it?
   
   ### Steps to reproduce
   
   1. GCP Configuration
   For gke configuration we followed the guide 
https://camel.apache.org/camel-k/2.2.x/installation/platform/gke.html and 
https://camel.apache.org/camel-k/2.2.x/installation/registry/gcr.html
   
   2. Command to install camel-k
   ```sh
    kamel install \
    --olm=false \
    --registry eu.gcr.io \
    --organization project-id \
    --registry-insecure \
    --registry-secret kaniko-secret \
    --build-publish-strategy Kaniko \
    --log-level=debug \
    -n connectors
   ```
   3. Route Basic.java
   ```java
   // camel-k: language=java
   
   import org.apache.camel.builder.RouteBuilder;
   
   public class Basic extends RouteBuilder {
     @Override
     public void configure() throws Exception {
   
         from("timer:java?period=1000")
           .setHeader("example")
             .constant("Java")
           .setBody()
             .simple("Hello World! Camel K route written in ${header.example}.")
           .to("log:info");
   
     }
   }
   ```
   4. Command to execute route
   ```sh
   kamel run Basic.java
   ```
   5. integration kit `kubectl get ik`
   
   ```ssh
   NAME                       ALIAS   PHASE   TYPE       LAYOUT     IMAGE       
                                                              ROOT
   kit-cnjdgp62o7ps73dgkn70           Ready   platform   fast-jar   
eu.gcr.io/project-id/camel-k-kit-cnjdgp62o7ps73dgkn70:373506017
   ```
   6. Integration `kubectl get integration`
   
   ```
   NAME      PHASE   RUNTIME PROVIDER   RUNTIME VERSION   KIT                   
     REPLICAS
   basic   Error   quarkus            3.2.3             
kit-cnjdgp62o7ps73dgkn70   1
   ```
   
   7. pods `kubectl get pods`
   ```ssh
   NAME                                       READY   STATUS             
RESTARTS      AGE
   basic-6565b6945f-6qc4d                     0/1     CrashLoopBackOff   4 (42s 
ago)   2m22s
   camel-k-kit-cnjdgp62o7ps73dgkn70-builder   0/1     Completed          0      
       3m8s
   camel-k-operator-5657577787-2wnfm          1/1     Running            0      
       3m54s
   ```
   
   8. Logs route pod `kubectl logs basic-6565b6945f-6qc4d`
   
   ```ssh
   exec java -cp 
./resources:/etc/camel/application.properties:/etc/camel/conf.d/_resources:/etc/camel/resources:/etc/.......
   Error: Could not find or load main class 
io.quarkus.bootstrap.runner.QuarkusEntryPoint │
   │ Caused by: java.lang.ClassNotFoundException: 
io.quarkus.bootstrap.runner.QuarkusEntryPoint
   ```
   
   
   
   ### Relevant log output
   
   ```shell
   kubectl logs basic-6565b6945f-6qc4d
   
   exec java -cp 
./resources:/etc/camel/application.properties:/etc/camel/conf.d/_resources:/etc/camel/resources:/etc/.......
   Error: Could not find or load main class 
io.quarkus.bootstrap.runner.QuarkusEntryPoint │
   │ Caused by: java.lang.ClassNotFoundException: 
io.quarkus.bootstrap.runner.QuarkusEntryPoint
   ```
   
   
   ### Camel K version
   
   v2.2.0


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

To unsubscribe, e-mail: [email protected]

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

Reply via email to