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

Error: Could not find or load main class org.springframework.boot.loader.launch.JarLauncher #1792

Closed
5 tasks done
grosejon opened this issue Dec 17, 2024 · 3 comments
Closed
5 tasks done

Comments

@grosejon
Copy link

Steps to reproduce

Updated to latest release 1.15.0, container starts but logs just say
Error: Could not find or load main class org.springframework.boot.loader.launch.JarLauncher

Expected behavior

No errors

Actual behavior

Receive repeated error message
Error: Could not find or load main class org.springframework.boot.loader.launch.JarLauncher

Logs

No response

Komga version

1.15.0

Operating system

Docker

Installation method

Docker

Other details

No response

Acknowledgements

  • I have searched the existing issues (open AND closed) and this is a new ticket, NOT a duplicate or related to another open issue.
  • I have written a short but informative title.
  • I have checked the FAQ.
  • I have updated the app to the latest version.
  • I will fill out all of the requested information in this form.
@gotson
Copy link
Owner

gotson commented Dec 17, 2024

The container image entrypoint has changed, you need to recreate the container.

@gotson gotson pinned this issue Dec 17, 2024
@jdzido
Copy link

jdzido commented Dec 19, 2024

I had this same problem and this was first result on google.

I'm using Portainer for managing docker. For me recreating image was not fixing problem and I had to manually update entrypoint on container config.

That was the old ENTRYPOINT:
java --enable-preview --enable-native-access=ALL-UNNAMED org.springframework.boot.loader.launch.JarLauncher --spring.config.additional-location=file:/config/

This is new working ENTRYPOINT for gotson/komga:1.15.1
java --enable-preview --enable-native-access=ALL-UNNAMED -jar application.jar --spring.config.additional-location=file:/config/

@gotson gotson closed this as completed Dec 20, 2024
@grosejon
Copy link
Author

@jdzido How did you manually update that? I don't see entrypoint in the documentation as something I can change in the compose file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants