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

Cannot start Java 11 with JMX enabled in Ubuntu #18

Open
mauromol opened this issue Sep 21, 2020 · 0 comments
Open

Cannot start Java 11 with JMX enabled in Ubuntu #18

mauromol opened this issue Sep 21, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@mauromol
Copy link

When trying to start a Spring Boot app with a JRE locally installed in the host system (under /run/host/usr/lib/jvm/java-11-openjdk-amd64), I get the following exception on startup:

Error: Config file not found: /run/host/usr/lib/jvm/java-11-openjdk-amd64/conf/management/management.properties

That file actually exists, but it's a symlink that points to /etc/java-11-openjdk/management/management.properties, which is probably not "visible" to the flatpak (it should be mapped to /run/host/etc/java-11-openjdk/management/management.properties). If I disable JMX, it works instead, but this disables Spring Boot app Lifecycle Management.

Is there a workaround?

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

2 participants