Skip to content
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

Stork service discovery + Openshift - missing documentation related to required dependency on native mode #26927

Closed
pjgg opened this issue Jul 26, 2022 · 1 comment · Fixed by #26929
Assignees
Labels
Milestone

Comments

@pjgg
Copy link
Contributor

pjgg commented Jul 26, 2022

Describe the bug

Related to:

io.smallrye.stork:stork-service-discovery-kubernetes requires io.quarkus:quarkus-openshift-client or io.quarkus:quarkus-kubernetes-client in order to build a native image otherwise you will get the following native build error:

Caused by: java.lang.ClassNotFoundException: org.bouncycastle.jce.provider.BouncyCastleProvider
        at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:476)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:589)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
        ... 41 more

Another workaround is just to add the missing dependencies in your path

<dependency>
            <groupId>org.bouncycastle</groupId>
            <artifactId>bcprov-jdk15on</artifactId>
        </dependency>
        <dependency>
            <groupId>org.bouncycastle</groupId>
            <artifactId>bcpkix-jdk15on</artifactId>
        </dependency>

I am missing all of these details on io.smallrye.stork:stork-service-discovery-kubernetes
Doc Ref:

Maybe a simple note on Stork-quarkus would be enough

How to Reproduce?

Just create a Quarkus application with io.smallrye.stork:stork-service-discovery-kubernetes and build a native image of your application -> mvn clean package -Pnative

Output of uname -a or ver

Linux localhost.localdomain 5.18.7-100.fc35.x86_64 #1 SMP PREEMPT_DYNAMIC Sat Jun 25 20:05:19 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

Output of java -version

openjdk 11.0.14 2022-01-18 OpenJDK Runtime Environment Temurin-11.0.14+9 (build 11.0.14+9) OpenJDK 64-Bit Server VM Temurin-11.0.14+9 (build 11.0.14+9, mixed mode)

GraalVM version (if different from Java)

No response

Quarkus version or git rev

999-SNAPSHOT

Build tool (ie. output of mvnw --version or gradlew --version)

Apache Maven 3.8.3 (ff8e977a158738155dc465c6a97ffaf31982d739)

Additional information

No response

@pjgg pjgg added the kind/bug Something isn't working label Jul 26, 2022
@quarkus-bot
Copy link

quarkus-bot bot commented Jul 26, 2022

/cc @geoand, @iocanel, @michalszynkiewicz

@geoand geoand self-assigned this Jul 26, 2022
geoand added a commit to geoand/quarkus that referenced this issue Jul 26, 2022
geoand added a commit that referenced this issue Jul 26, 2022
Add note about BouncyCastle dependency for Stork
@quarkus-bot quarkus-bot bot added this to the 2.12 - main milestone Jul 26, 2022
@gsmet gsmet modified the milestones: 2.12 - main, 2.11.1.Final Jul 26, 2022
gsmet pushed a commit to gsmet/quarkus that referenced this issue Jul 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants