New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JVM based containers lack SSL support #5848
Comments
Is that the complete stacktrace? If not, can you please post the complete one? |
Complete stacktrace:
|
Using the native image has SSL related issues as well, but a different stack trace. Should I create a separate issue for that or post it here? |
@cescoffier @gsmet does this ring a bell? |
Hello @misl, the reason I asked for the stacktrace is because I haven't been able to reproduce this with the same quickstart. Given that this all runs in a container, it's odd that you are seeing this exception. Which Java vendor and version did you use while building the application jar itself (through |
I'm going to try later today... Why I have the feeling it's because of certs location. |
I was unable to reproduce it in JVM mode (JVM in docker with the given docker file). I had issues in native (in Docker again):
The work-around is to use a multi-stage docker file as follows:
Basically, it copies the trust store and suncec from another similar linux image. |
Ah, I compiling with Java 11 with source and target 8. I will retry with Java 8. I agree multi stage will be better. As like this building can be done completely isolated from the host environment. |
Tried with Java 8, but same result:
|
It’s the QuickStart and docker file unchanged, right? Why am I not able to reproduce it...
…On 29 Nov 2019 at 16:01 +0100, Minto ***@***.***>, wrote:
Tried with Java 8, but same result:
***@***.***:~/Dev/github/minto/quarkus-quickstarts/vertx-quickstart$ mvn --version
Apache Maven 3.6.0 (97c98ec64a1fdfee7767ce5ffb20918da4f719f3; 2018-10-24T20:41:47+02:00)
Maven home: /opt/apache-maven-3.6.0
Java version: 1.8.0_222, vendor: Private Build, runtime: /usr/lib/jvm/java-8-openjdk-amd64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "5.0.0-36-generic", arch: "amd64", family: "unix"
***@***.***:~/Dev/github/minto/quarkus-quickstarts/vertx-quickstart$ mvn clean install
[INFO] Scanning for projects...
[INFO]
[INFO] ---------------------< org.acme:vertx-quickstart >----------------------
[INFO] Building vertx-quickstart 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ vertx-quickstart ---
[INFO] Deleting /home/misl/Dev/github/minto/quarkus-quickstarts/vertx-quickstart/target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ vertx-quickstart ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 5 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ vertx-quickstart ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 8 source files to /home/misl/Dev/github/minto/quarkus-quickstarts/vertx-quickstart/target/classes
[INFO] /home/misl/Dev/github/minto/quarkus-quickstarts/vertx-quickstart/src/main/java/org/acme/vertx/EventResource.java: /home/misl/Dev/github/minto/quarkus-quickstarts/vertx-quickstart/src/main/java/org/acme/vertx/EventResource.java uses or overrides a deprecated API.
[INFO] /home/misl/Dev/github/minto/quarkus-quickstarts/vertx-quickstart/src/main/java/org/acme/vertx/EventResource.java: Recompile with -Xlint:deprecation for details.
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ vertx-quickstart ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/misl/Dev/github/minto/quarkus-quickstarts/vertx-quickstart/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ vertx-quickstart ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 10 source files to /home/misl/Dev/github/minto/quarkus-quickstarts/vertx-quickstart/target/test-classes
[INFO]
[INFO] --- docker-maven-plugin:0.28.0:stop (docker-start) @ vertx-quickstart ---
[INFO] DOCKER> [postgres:10.5] "postgresql": Stop and removed container c80e70ea0902 after 0 ms
[INFO]
[INFO] --- docker-maven-plugin:0.28.0:start (docker-start) @ vertx-quickstart ---
[INFO] DOCKER> [postgres:10.5] "postgresql": Start container 218d18b5ed31
[INFO] DOCKER> [postgres:10.5] "postgresql": Waiting for mapped ports [5432] on host localhost
[INFO] DOCKER> [postgres:10.5] "postgresql": Waited on tcp port '[localhost/127.0.0.1:5432]' 5 ms
[INFO]
[INFO] --- maven-surefire-plugin:2.22.1:test (default-test) @ vertx-quickstart ---
15:52:12.408 PostgreSQL:The files belonging to this database system will be owned by user "postgres".
15:52:12.408 PostgreSQL:This user must also own the server process.
15:52:12.408 PostgreSQL:
15:52:12.408 PostgreSQL:The database cluster will be initialized with locale "en_US.utf8".
15:52:12.408 PostgreSQL:The default database encoding has accordingly been set to "UTF8".
15:52:12.408 PostgreSQL:The default text search configuration will be set to "english".
15:52:12.408 PostgreSQL:
15:52:12.408 PostgreSQL:Data page checksums are disabled.
15:52:12.408 PostgreSQL:
15:52:12.409 PostgreSQL:fixing permissions on existing directory /var/lib/postgresql/data ... ok
15:52:12.409 PostgreSQL:creating subdirectories ... ok
15:52:12.426 PostgreSQL:selecting default max_connections ... 100
15:52:12.457 PostgreSQL:selecting default shared_buffers ... 128MB
15:52:12.457 PostgreSQL:selecting dynamic shared memory implementation ... posix
[INFO]
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
15:52:13.339 PostgreSQL:creating configuration files ... ok
15:52:13.555 PostgreSQL:running bootstrap script ... ok
[INFO] Running org.acme.vertx.ResourceUsingWebClientTest
15:52:14.211 PostgreSQL:performing post-bootstrap initialization ... ok
15:52:14.337 PostgreSQL:syncing data to disk ... ok
15:52:14.337 PostgreSQL:
15:52:14.337 PostgreSQL:Success. You can now start the database server using:
15:52:14.337 PostgreSQL:
15:52:14.337 PostgreSQL: pg_ctl -D /var/lib/postgresql/data -l logfile start
15:52:14.337 PostgreSQL:
15:52:14.337 PostgreSQL:
15:52:14.337 PostgreSQL:WARNING: enabling "trust" authentication for local connections
15:52:14.337 PostgreSQL:You can change this by editing pg_hba.conf or using the option -A, or
15:52:14.337 PostgreSQL:--auth-local and --auth-host, the next time you run initdb.
15:52:14.377 PostgreSQL:waiting for server to start....2019-11-29 14:52:14.377 UTC [44] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
15:52:14.404 PostgreSQL:2019-11-29 14:52:14.404 UTC [45] LOG: database system was shut down at 2019-11-29 14:52:14 UTC
15:52:14.413 PostgreSQL:2019-11-29 14:52:14.413 UTC [44] LOG: database system is ready to accept connections
15:52:14.457 PostgreSQL: done
15:52:14.457 PostgreSQL:server started
15:52:14.790 PostgreSQL:CREATE DATABASE
15:52:14.792 PostgreSQL:
15:52:14.792 PostgreSQL:
15:52:14.792 PostgreSQL:/usr/local/bin/docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/*
15:52:14.792 PostgreSQL:
15:52:14.795 PostgreSQL:waiting for server to shut down....2019-11-29 14:52:14.793 UTC [44] LOG: received fast shutdown request
15:52:14.802 PostgreSQL:2019-11-29 14:52:14.799 UTC [44] LOG: aborting any active transactions
15:52:14.802 PostgreSQL:2019-11-29 14:52:14.802 UTC [44] LOG: worker process: logical replication launcher (PID 51) exited with exit code 1
15:52:14.803 PostgreSQL:2019-11-29 14:52:14.802 UTC [46] LOG: shutting down
15:52:14.832 PostgreSQL:2019-11-29 14:52:14.831 UTC [44] LOG: database system is shut down
15:52:14.893 PostgreSQL: done
15:52:14.894 PostgreSQL:server stopped
15:52:14.897 PostgreSQL:
15:52:14.897 PostgreSQL:PostgreSQL init process complete; ready for start up.
15:52:14.897 PostgreSQL:
15:52:14.916 PostgreSQL:2019-11-29 14:52:14.916 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
15:52:14.916 PostgreSQL:2019-11-29 14:52:14.916 UTC [1] LOG: listening on IPv6 address "::", port 5432
15:52:14.933 PostgreSQL:2019-11-29 14:52:14.933 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
15:52:14.960 PostgreSQL:2019-11-29 14:52:14.960 UTC [62] LOG: database system was shut down at 2019-11-29 14:52:14 UTC
15:52:14.971 PostgreSQL:2019-11-29 14:52:14.971 UTC [1] LOG: database system is ready to accept connections
2019-11-29 15:52:16,780 WARN [io.qua.dep.ste.ReflectiveHierarchyStep] (build-12) Unable to properly register the hierarchy of the following classes for reflection as they are not in the Jandex index:
- io.vertx.core.json.JsonObject
- javax.ws.rs.core.Response
- org.reactivestreams.Publisher
Consider adding them to the index either by creating a Jandex index for your dependency via the Maven plugin, an empty META-INF/beans.xml or quarkus.index-dependency properties.");.
2019-11-29 15:52:18,025 INFO [io.quarkus] (main) Quarkus 1.0.1.Final started in 0.836s. Listening on: http://0.0.0.0:8081
2019-11-29 15:52:18,026 INFO [io.quarkus] (main) Profile test activated.
2019-11-29 15:52:18,026 INFO [io.quarkus] (main) Installed features: [cdi, reactive-pg-client, resteasy, resteasy-jsonb, smallrye-context-propagation, smallrye-reactive-streams-operators, vertx]
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 6.533 s - in org.acme.vertx.ResourceUsingWebClientTest
[INFO] Running org.acme.vertx.JsonEndpointTest
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.362 s - in org.acme.vertx.JsonEndpointTest
[INFO] Running org.acme.vertx.EventResourceTest
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.032 s - in org.acme.vertx.EventResourceTest
[INFO] Running org.acme.vertx.GreetingResourceTest
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.025 s - in org.acme.vertx.GreetingResourceTest
[INFO] Running org.acme.vertx.FruitsEndpointTest
2019-11-29 15:52:21,326 WARNING [io.ver.sql.imp.SocketConnectionBase] (vert.x-eventloop-thread-8) Backend notice: severity='NOTICE', code='00000', message='table "fruits" does not exist, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='tablecmds.c', line='914', routine='DropErrorMsgNonExistent', schema='null', table='null', column='null', dataType='null', constraint='null'
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.232 s - in org.acme.vertx.FruitsEndpointTest
2019-11-29 15:52:21,542 INFO [io.quarkus] (main) Quarkus stopped in 0.037s
[INFO]
[INFO] Results:
[INFO]
[INFO] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ vertx-quickstart ---
[INFO] Building jar: /home/misl/Dev/github/minto/quarkus-quickstarts/vertx-quickstart/target/vertx-quickstart-1.0-SNAPSHOT.jar
[INFO]
[INFO] --- quarkus-maven-plugin:1.0.1.Final:build (default) @ vertx-quickstart ---
[INFO] [org.jboss.threads] JBoss Threads version 3.0.0.Final
[WARNING] [io.quarkus.deployment.steps.ReflectiveHierarchyStep] Unable to properly register the hierarchy of the following classes for reflection as they are not in the Jandex index:
- io.vertx.core.json.JsonObject
- javax.ws.rs.core.Response
- org.reactivestreams.Publisher
Consider adding them to the index either by creating a Jandex index for your dependency via the Maven plugin, an empty META-INF/beans.xml or quarkus.index-dependency properties.");.
[INFO] [io.quarkus.deployment.pkg.steps.JarResultBuildStep] Building thin jar: /home/misl/Dev/github/minto/quarkus-quickstarts/vertx-quickstart/target/vertx-quickstart-1.0-SNAPSHOT-runner.jar
[INFO] [io.quarkus.deployment.QuarkusAugmentor] Quarkus augmentation completed in 1400ms
[INFO]
[INFO] --- docker-maven-plugin:0.28.0:stop (docker-stop) @ vertx-quickstart ---
15:52:24.224 PostgreSQL:2019-11-29 14:52:24.224 UTC [1] LOG: received smart shutdown request
15:52:24.231 PostgreSQL:2019-11-29 14:52:24.230 UTC [1] LOG: worker process: logical replication launcher (PID 68) exited with exit code 1
15:52:24.231 PostgreSQL:2019-11-29 14:52:24.231 UTC [63] LOG: shutting down
15:52:24.274 PostgreSQL:2019-11-29 14:52:24.274 UTC [1] LOG: database system is shut down
[INFO] DOCKER> [postgres:10.5] "postgresql": Stop and removed container 218d18b5ed31 after 0 ms
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ vertx-quickstart ---
[INFO] Installing /home/misl/Dev/github/minto/quarkus-quickstarts/vertx-quickstart/target/vertx-quickstart-1.0-SNAPSHOT.jar to /home/misl/.m2/repository/org/acme/vertx-quickstart/1.0-SNAPSHOT/vertx-quickstart-1.0-SNAPSHOT.jar
[INFO] Installing /home/misl/Dev/github/minto/quarkus-quickstarts/vertx-quickstart/pom.xml to /home/misl/.m2/repository/org/acme/vertx-quickstart/1.0-SNAPSHOT/vertx-quickstart-1.0-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 17.538 s
[INFO] Finished at: 2019-11-29T15:52:24+01:00
[INFO] ------------------------------------------------------------------------
***@***.***:~/Dev/github/minto/quarkus-quickstarts/vertx-quickstart$ cat src/main/docker/Dockerfile.jvm
####
# This Dockerfile is used in order to build a container that runs the Quarkus application in JVM mode
#
# Before building the docker image run:
#
# mvn package
#
# Then, build the image with:
#
# docker build -f src/main/docker/Dockerfile.jvm -t quarkus/using-vertx-jvm .
#
# Then run the container using:
#
# docker run -i --rm -p 8080:8080 quarkus/using-vertx-jvm
#
###
FROM fabric8/java-alpine-openjdk8-jre
ENV JAVA_OPTIONS="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
ENV AB_ENABLED=jmx_exporter
COPY target/lib/* /deployments/lib/
COPY target/*-runner.jar /deployments/app.jar
ENTRYPOINT [ "/deployments/run-java.sh" ***@***.***:~/Dev/github/minto/quarkus-quickstarts/vertx-quickstart$ docker build -f src/main/docker/Dockerfile.jvm -t quarkus/using-vertx-jvm .
Sending build context to Docker daemon 18.1MB
Step 1/6 : FROM fabric8/java-alpine-openjdk8-jre
---> 623cf58ad9fd
Step 2/6 : ENV JAVA_OPTIONS="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
---> Using cache
---> ba8994a27833
Step 3/6 : ENV AB_ENABLED=jmx_exporter
---> Using cache
---> c3dd44be9a44
Step 4/6 : COPY target/lib/* /deployments/lib/
---> Using cache
---> 732f0806a7fd
Step 5/6 : COPY target/*-runner.jar /deployments/app.jar
---> 9896cbaeace5
Step 6/6 : ENTRYPOINT [ "/deployments/run-java.sh" ]
---> Running in 323a00272ad7
Removing intermediate container 323a00272ad7
---> 69d2bc1131b4
Successfully built 69d2bc1131b4
Successfully tagged quarkus/using-vertx-jvm:latest
***@***.***:~/Dev/github/minto/quarkus-quickstarts/vertx-quickstart$ docker run -i --rm -p 8080:8080 quarkus/using-vertx-jvm
exec java -Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager -javaagent:/opt/agent-bond/agent-bond.jar=jmx_exporter{{9779:/opt/agent-bond/jmx_exporter_config.yml}} -XX:+UseParallelGC -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -XX:MinHeapFreeRatio=20 -XX:MaxHeapFreeRatio=40 -XX:+ExitOnOutOfMemoryError -cp . -jar /deployments/app.jar
2019-11-29 14:54:31,324 INFO [io.quarkus] (main) vertx-quickstart 1.0-SNAPSHOT (running on Quarkus 1.0.1.Final) started in 1.260s. Listening on: http://0.0.0.0:8080
2019-11-29 14:54:31,382 INFO [io.quarkus] (main) Profile prod activated.
2019-11-29 14:54:31,383 INFO [io.quarkus] (main) Installed features: [cdi, reactive-pg-client, resteasy, resteasy-jsonb, smallrye-context-propagation, smallrye-reactive-streams-operators, vertx]
2019-11-29 14:54:58,631 ERROR [io.qua.ver.htt.run.QuarkusErrorHandler] (vert.x-worker-thread-0) HTTP Request to /swapi/1 failed, error id: ab5d8c81-1dd0-4eef-b5a6-d36cd1629f67-1: java.lang.NoClassDefFoundError: Could not initialize class sun.security.ssl.SSLSessionImpl
at sun.security.ssl.SSLEngineImpl.init(SSLEngineImpl.java:364)
at sun.security.ssl.SSLEngineImpl.<init>(SSLEngineImpl.java:344)
at sun.security.ssl.SSLContextImpl$AbstractTLSContext.createSSLEngineImpl(SSLContextImpl.java:557)
at sun.security.ssl.SSLContextImpl.engineCreateSSLEngine(SSLContextImpl.java:199)
at javax.net.ssl.SSLContext.createSSLEngine(SSLContext.java:329)
at io.netty.handler.ssl.JdkSslContext.<clinit>(JdkSslContext.java:81)
at io.netty.handler.ssl.SslContext.newClientContextInternal(SslContext.java:818)
at io.netty.handler.ssl.SslContextBuilder.build(SslContextBuilder.java:462)
at io.vertx.core.net.impl.SSLHelper.createContext(SSLHelper.java:294)
at io.vertx.core.net.impl.SSLHelper.getContext(SSLHelper.java:478)
at io.vertx.core.net.impl.SSLHelper.validate(SSLHelper.java:503)
at io.vertx.core.http.impl.HttpClientImpl.<init>(HttpClientImpl.java:133)
at io.vertx.core.impl.VertxImpl.createHttpClient(VertxImpl.java:317)
at io.vertx.ext.web.client.WebClient.create(WebClient.java:67)
at io.vertx.axle.ext.web.client.WebClient.create(WebClient.java:105)
at org.acme.vertx.ResourceUsingWebClient.initialize(ResourceUsingWebClient.java:31)
at org.acme.vertx.ResourceUsingWebClient_Bean.create(ResourceUsingWebClient_Bean.zig:224)
at org.acme.vertx.ResourceUsingWebClient_Bean.create(ResourceUsingWebClient_Bean.zig:29)
at io.quarkus.arc.impl.AbstractSharedContext.createInstanceHandle(AbstractSharedContext.java:80)
at io.quarkus.arc.impl.ComputingCache$CacheFunction.lambda$apply$0(ComputingCache.java:99)
at io.quarkus.arc.impl.LazyValue.get(LazyValue.java:26)
at io.quarkus.arc.impl.ComputingCache.getValue(ComputingCache.java:41)
at io.quarkus.arc.impl.AbstractSharedContext.get(AbstractSharedContext.java:25)
at org.acme.vertx.ResourceUsingWebClient_Bean.get(ResourceUsingWebClient_Bean.zig:257)
at org.acme.vertx.ResourceUsingWebClient_Bean.get(ResourceUsingWebClient_Bean.zig:273)
at io.quarkus.arc.impl.ArcContainerImpl.beanInstanceHandle(ArcContainerImpl.java:355)
at io.quarkus.arc.impl.ArcContainerImpl.beanInstanceHandle(ArcContainerImpl.java:367)
at io.quarkus.arc.impl.ArcContainerImpl$1.get(ArcContainerImpl.java:222)
at io.quarkus.arc.impl.ArcContainerImpl$1.get(ArcContainerImpl.java:219)
at io.quarkus.arc.runtime.ArcRecorder$2$1.create(ArcRecorder.java:79)
at io.quarkus.resteasy.common.runtime.QuarkusConstructorInjector.construct(QuarkusConstructorInjector.java:56)
at org.jboss.resteasy.plugins.server.resourcefactory.POJOResourceFactory.createResource(POJOResourceFactory.java:69)
at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:364)
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:477)
at org.jboss.resteasy.core.SynchronousDispatcher.lambda$invoke$4(SynchronousDispatcher.java:252)
at org.jboss.resteasy.core.SynchronousDispatcher.lambda$preprocess$0(SynchronousDispatcher.java:153)
at org.jboss.resteasy.core.interception.jaxrs.PreMatchContainerRequestContext.filter(PreMatchContainerRequestContext.java:363)
at org.jboss.resteasy.core.SynchronousDispatcher.preprocess(SynchronousDispatcher.java:156)
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:238)
at io.quarkus.resteasy.runtime.standalone.RequestDispatcher.service(RequestDispatcher.java:73)
at io.quarkus.resteasy.runtime.standalone.VertxRequestHandler.dispatch(VertxRequestHandler.java:118)
at io.quarkus.resteasy.runtime.standalone.VertxRequestHandler.lambda$handle$0(VertxRequestHandler.java:74)
at io.vertx.core.impl.ContextImpl.lambda$executeBlocking$2(ContextImpl.java:316)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.lang.Thread.run(Thread.java:748)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Just like @cescoffier, I'm a bit stumped here on how you are running into this exception in JVM mode that too in container. The only odd(?) thing I see in your details, for building the application jar, is this:
The vendor seems odd. Do you know who/how was the JDK built? Can you maybe use a different JDK 8 from AdoptOpenJDK here https://adoptopenjdk.net/index.html and point JAVA_HOME to it and redo the whole container build and run and see if that helps? Finally, if that too doesn't help, then can you edit your
and then build the docker image as usual and run it and attach the generated logs (including the entire exception stacktrace again)? |
@cescoffier quickstart and dockerfile are unchanged, it was a fresh git clone. @jaikiran I will give it a try with a different JDK 8 |
Switching to Adopt OpenJDK 8 gives the same results :-(
Running the newly build version with debugging enabled give the following:
|
Is it possible to create a multi stage Dockerfile to perform the actual build (inside a container) and creating the docker jvm based docker images (also inside a container)? Like this personal/local setting should not have any impact on the actual build. |
@misl, Thank you for those logs. They helped. Based on what I see in them, I'm certain that the Java version being used within that container (and I don't mean during
For me it's:
|
For me it's:
|
Hmm, doing a
Also, the SSL issues are gone now. Next is getting native to work as well. |
With @cescoffier his tip native works too. For me personally this issue is done. The only thing is how to prevent others run into this? Does it make sense to explicitly mention FROM image version (latest) in Dockerfile? |
I need to check, we must NOT use |
and it does... |
Avoid issues such as quarkusio#5848
opened: #5914 |
Hello @cescoffier, should we close this one, now that the Dockerfile change has been merged? |
@jaikiran yes! |
Avoid issues such as quarkusio#5848
Describe the bug
Using Vert.X based Web Clients HTTPS requests results in
NoClassDefFoundError
errors. See log below. Seems like the image is missing some required dependencies.Expected behavior
Using
mvn quarkus:dev
works just fine.To Reproduce
Log output
The text was updated successfully, but these errors were encountered: