Re: [I] java.lang.ClassNotFoundException: io.quarkus.bootstrap.runner.QuarkusEntryPoint [camel-k]

2023-12-06 Thread via GitHub


lsergio commented on issue #4955:
URL: https://github.com/apache/camel-k/issues/4955#issuecomment-1842677157

   Thanks. I'll have a look at the other publish strategies.


-- 
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: commits-unsubscr...@camel.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [I] java.lang.ClassNotFoundException: io.quarkus.bootstrap.runner.QuarkusEntryPoint [camel-k]

2023-12-05 Thread via GitHub


squakez closed issue #4955: java.lang.ClassNotFoundException: 
io.quarkus.bootstrap.runner.QuarkusEntryPoint
URL: https://github.com/apache/camel-k/issues/4955


-- 
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: commits-unsubscr...@camel.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [I] java.lang.ClassNotFoundException: io.quarkus.bootstrap.runner.QuarkusEntryPoint [camel-k]

2023-12-05 Thread via GitHub


squakez commented on issue #4955:
URL: https://github.com/apache/camel-k/issues/4955#issuecomment-1841138876

   I think the problem is the fact that Kaniko (and Buildah) needs root 
privileges in order to work. When it creates the container, since it is with 
root privileges, then, the artifact has root visibility only. By default, the 
securityContext will run with the `USER 1000` privileges, reason why it cannot 
find that artifact. The only way to have this running is, as you did, run with 
a privileged root.
   
   We have deprecated Kaniko and Buildah also for this reason in version 2.1.0, 
so, the suggestion from us is to move to a supported (and more secure) 
publishing strategy [1].
   
   [1] 
https://camel.apache.org/camel-k/next/installation/advanced/build-config.html#publish-strategy
 


-- 
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: commits-unsubscr...@camel.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [I] java.lang.ClassNotFoundException: io.quarkus.bootstrap.runner.QuarkusEntryPoint [camel-k]

2023-12-04 Thread via GitHub


lsergio commented on issue #4955:
URL: https://github.com/apache/camel-k/issues/4955#issuecomment-1838506295

   I'm doing `kubectl apply -f test.yaml `where `test.yaml` is:
   ```
   apiVersion: camel.apache.org/v1
   kind: Integration
   metadata:
 name: test
   spec:
 sources:
 - name: main.groovy
   content: |-
 rest("/test-mode")
 .post()
 .to("direct:start")
   
 from("direct:start").to("log:info")
   ```


-- 
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: commits-unsubscr...@camel.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [I] java.lang.ClassNotFoundException: io.quarkus.bootstrap.runner.QuarkusEntryPoint [camel-k]

2023-12-04 Thread via GitHub


claudio4j commented on issue #4955:
URL: https://github.com/apache/camel-k/issues/4955#issuecomment-1838489592

   > Create an Integration. In my case I used one like this:
   
   Are you creating the Integration CR yourself or using `kamel run 
` ?


-- 
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: commits-unsubscr...@camel.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [I] java.lang.ClassNotFoundException: io.quarkus.bootstrap.runner.QuarkusEntryPoint [camel-k]

2023-12-04 Thread via GitHub


lsergio commented on issue #4955:
URL: https://github.com/apache/camel-k/issues/4955#issuecomment-1838405062

   I'm running on Kubernetss 1.25 on EKS: v1.25.15-eks-4f4795d, more precisely


-- 
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: commits-unsubscr...@camel.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [I] java.lang.ClassNotFoundException: io.quarkus.bootstrap.runner.QuarkusEntryPoint [camel-k]

2023-12-04 Thread via GitHub


squakez commented on issue #4955:
URL: https://github.com/apache/camel-k/issues/4955#issuecomment-1838092436

   What Kubernetes version/distribution are you using?


-- 
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: commits-unsubscr...@camel.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [I] java.lang.ClassNotFoundException: io.quarkus.bootstrap.runner.QuarkusEntryPoint [camel-k]

2023-12-01 Thread via GitHub


lsergio commented on issue #4955:
URL: https://github.com/apache/camel-k/issues/4955#issuecomment-1836607564

   @squakez I checked the container and the artifacts are there. However, to be 
able to be see them, I had to edit the generated deployment and change the 
securityContext from:
   
   `securityContext: {}`
   
   to
   
   ```
   securityContext:
 runAsUser: 0
   ```
   And the list of files shows me:
   
   ```
   ./dependencies/app:
   total 4
   -rw-r--r-- 1 root root 2658 Dec  1 16:48 camel-k-integration-2.1.0.jar
   
   ./dependencies/lib:
   total 24
   drwxr-sr-x 2 root root  4096 Dec  1 16:48 boot
   drwxr-sr-x 2 root root 16384 Dec  1 16:48 main
   
   ./dependencies/lib/boot:
   total 1708
   -rw-r--r-- 1 root root   9341 Dec  1 16:48 io.github.crac.org-crac-0.1.3.jar
   -rw-r--r-- 1 root root  43387 Dec  1 16:48 
io.quarkus.quarkus-bootstrap-runner-3.2.6.Final.jar
   -rw-r--r-- 1 root root  45294 Dec  1 16:48 
io.quarkus.quarkus-development-mode-spi-3.2.6.Final.jar
   ```
   (the list was truncated, as it was too long)
   
   And after this change the integration also starts successfully.


-- 
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: commits-unsubscr...@camel.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [I] java.lang.ClassNotFoundException: io.quarkus.bootstrap.runner.QuarkusEntryPoint [camel-k]

2023-12-01 Thread via GitHub


squakez commented on issue #4955:
URL: https://github.com/apache/camel-k/issues/4955#issuecomment-1836286658

   It seems to be a problem with the container, like the application was not 
really pushed. Can you verify if the generated container has the required 
artifacts? Please check the image which is running the Pod. Also, consider 
we've deprecated Kaniko [1], so, if there is some problem there we won't be 
able to fix. Try to use default Spectrum or Jib strategy [2].
   
   [1] https://camel.apache.org/blog/2023/10/camel-k-2-1/
   [2] 
https://camel.apache.org/camel-k/next/installation/advanced/build-config.html#publish-strategy


-- 
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: commits-unsubscr...@camel.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



[I] java.lang.ClassNotFoundException: io.quarkus.bootstrap.runner.QuarkusEntryPoint [camel-k]

2023-12-01 Thread via GitHub


lsergio opened a new issue, #4955:
URL: https://github.com/apache/camel-k/issues/4955

   ### What happened?
   
   I'm trying to run a basic integration with Camel K 2.1 and it fails to start.
   
   ### Steps to reproduce
   
   1. Setup a gcr repository as described in 
https://camel.apache.org/camel-k/2.1.x/installation/registry/gcr.html.
   2. Install kamel using the following command: kamel install --olm=false 
--build-publish-strategy=Kaniko --registry gcr.io  --organization yourprojectid 
--registry-secret kaniko-secret
   3. Create a secret for pulling the images from GCR and configure the 
pull-secret trait in the IntegrationPlatform object:
  traits:
 pull-secret:
   secretName: gcr-json-key
   
   4. Create an Integration. In my case I used one like this:
   ```
   apiVersion: camel.apache.org/v1
   kind: Integration
   metadata:
 name: test
   spec:
 sources:
 - name: main.groovy
   content: |-
 rest("/test-mode")
 .post()
 .to("direct:start")
   
 from("direct:start").to("log:info")
   ```
   5. Wait for the builder to finish and create the integration pod.
   6. Check the Integration pod log.
   
   There will be this error:
   ```
   Error: Could not find or load main class 
io.quarkus.bootstrap.runner.QuarkusEntryPoint
   Caused by: java.lang.ClassNotFoundException: 
io.quarkus.bootstrap.runner.QuarkusEntryPoint
   ```
   The full log is added to the log output field. 

   
   ### Relevant log output
   
   ```shell
   exec java -cp 
./resources:/etc/camel/application.properties:/etc/camel/conf.d/_resources:/etc/camel/resources:/etc/camel/sources/main.groovy:dependencies/app/camel-k-integration-2.1.0.jar:dependencies/lib/boot/io.github.crac.org-crac-0.1.3.jar:dependencies/lib/boot/io.quarkus.quarkus-bootstrap-runner-3.2.6.Final.jar:dependencies/lib/boot/io.quarkus.quarkus-development-mode-spi-3.2.6.Final.jar:dependencies/lib/boot/io.quarkus.quarkus-vertx-latebound-mdc-provider-3.2.6.Final.jar:dependencies/lib/boot/io.smallrye.common.smallrye-common-io-2.1.0.jar:dependencies/lib/boot/jakarta.json.jakarta.json-api-2.1.2.jar:dependencies/lib/boot/org.eclipse.parsson.parsson-1.1.2.jar:dependencies/lib/boot/org.graalvm.sdk.graal-sdk-23.0.1.jar:dependencies/lib/boot/org.jboss.logging.jboss-logging-3.5.1.Final.jar:dependencies/lib/boot/org.jboss.logmanager.jboss-logmanager-embedded-1.1.1.jar:dependencies/lib/boot/org.wildfly.common.wildfly-common-1.5.4.Final-format-001.jar:dependencies/lib/main/com.aayu
 
shatharva.brotli4j.brotli4j-1.12.0.jar:dependencies/lib/main/com.aayushatharva.brotli4j.native-linux-x86_64-1.12.0.jar:dependencies/lib/main/com.aayushatharva.brotli4j.service-1.12.0.jar:dependencies/lib/main/com.fasterxml.jackson.core.jackson-annotations-2.15.2.jar:dependencies/lib/main/com.fasterxml.jackson.core.jackson-core-2.15.2.jar:dependencies/lib/main/com.fasterxml.jackson.core.jackson-databind-2.15.2.jar:dependencies/lib/main/com.fasterxml.jackson.dataformat.jackson-dataformat-yaml-2.15.2.jar:dependencies/lib/main/com.fasterxml.jackson.datatype.jackson-datatype-jdk8-2.15.2.jar:dependencies/lib/main/com.fasterxml.jackson.datatype.jackson-datatype-jsr310-2.15.2.jar:dependencies/lib/main/com.fasterxml.jackson.module.jackson-module-parameter-names-2.15.2.jar:dependencies/lib/main/com.github.mifmif.generex-1.0.2.jar:dependencies/lib/main/dk.brics.automaton.automaton-1.11-8.jar:dependencies/lib/main/io.fabric8.kubernetes-client-6.7.2.jar:dependencies/lib/main/io.fabric8.kubernete
 
s-client-api-6.7.2.jar:dependencies/lib/main/io.fabric8.kubernetes-httpclient-vertx-6.7.2.jar:dependencies/lib/main/io.fabric8.kubernetes-model-admissionregistration-6.7.2.jar:dependencies/lib/main/io.fabric8.kubernetes-model-apiextensions-6.7.2.jar:dependencies/lib/main/io.fabric8.kubernetes-model-apps-6.7.2.jar:dependencies/lib/main/io.fabric8.kubernetes-model-autoscaling-6.7.2.jar:dependencies/lib/main/io.fabric8.kubernetes-model-batch-6.7.2.jar:dependencies/lib/main/io.fabric8.kubernetes-model-certificates-6.7.2.jar:dependencies/lib/main/io.fabric8.kubernetes-model-common-6.7.2.jar:dependencies/lib/main/io.fabric8.kubernetes-model-coordination-6.7.2.jar:dependencies/lib/main/io.fabric8.kubernetes-model-core-6.7.2.jar:dependencies/lib/main/io.fabric8.kubernetes-model-discovery-6.7.2.jar:dependencies/lib/main/io.fabric8.kubernetes-model-events-6.7.2.jar:dependencies/lib/main/io.fabric8.kubernetes-model-extensions-6.7.2.jar:dependencies/lib/main/io.fabric8.kubernetes-model-flowcont