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

Spring 3.2.1 [Error: Could not find or load main class org.springframework.boot.loader.JarLauncher] #2521

Closed
AhmdFahad opened this issue Jan 10, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@AhmdFahad
Copy link

Describe the bug

JKube not working with Spring Boot 3.2.1

JKube can`t build docker image

Error: Could not find or load main class org.springframework.boot.loader.JarLauncher
Caused by: java.lang.ClassNotFoundException: org.springframework.boot.loader.JarLauncher

Spring has change the path of JarLauncher

#FROM
ENTRYPOINT ["java", "org.springframework.boot.loader.JarLauncher"]

#TO
ENTRYPOINT ["java", "org.springframework.boot.loader.launch.JarLauncher"]

Eclipse JKube version

1.15.0

Component

Kubernetes Maven Plugin

Apache Maven version

None

Gradle version

None

Steps to reproduce

K8S:build

Expected behavior

build an image

Runtime

Kubernetes (vanilla)

Kubernetes API Server version

1.25.3

Environment

Windows

Eclipse JKube Logs

No response

Sample Reproducer Project

No response

Additional context

No response

@AhmdFahad AhmdFahad added the bug Something isn't working label Jan 10, 2024
@rohanKanojia
Copy link
Member

Duplicate of #2477

@rohanKanojia rohanKanojia marked this as a duplicate of #2477 Jan 10, 2024
@manusa
Copy link
Member

manusa commented Jan 10, 2024

Duplicate of #2477 will be fixed in next minor release 1.16.0

@manusa
Copy link
Member

manusa commented Jan 10, 2024

check workaround in the meantime #2477 (comment)

@rohanKanojia
Copy link
Member

@AhmdFahad : Could you please check if you can resolve issue by using 1.16-SNAPSHOT? You can check how to use JKube Snapshot artifacts here.

@AhmdFahad
Copy link
Author

@rohanKanojia

it`s working 🎇🎆

image

@manusa manusa closed this as completed Jan 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants