flathub / flathub/org.eclipse.Java

Cannot start Java 11 with JMX enabled in Ubuntu

Ouverte
#18 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
bug
Langage dominant
Aucune donnée de langage
Étoiles
6
Forks
10
Merge moyen
7 h 27 min
PR mergées (30 j)
2

Description

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?

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Piste de recherche

Reproduce the startup failure with a Spring Boot app using host-installed Java 11 and JMX enabled. Inspect how the Flatpak exposes /run/host/usr/lib/jvm/java-11-openjdk-amd64/conf/management/management.properties and its /etc/java-11-openjdk/management/management.properties symlink. Done means the file resolves inside the Flatpak and the application starts with JMX enabled.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
java, spring-boot, ubuntu
Domaine
desktop, operating-systems, tooling
Type d'issue
Bug
Difficulté
4/5
Temps estimé
3-5 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
35/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.