flathub / flathub/org.eclipse.Java
Cannot start Java 11 with JMX enabled in Ubuntu
- Lenguaje dominante
- Sin datos de lenguaje
- Estrellas
- 6
- Forks
- 10
- Merge medio
- 7 h 27 min
- PR fusionados (30 d)
- 2
Descripción
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?
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- java, spring-boot, ubuntu
- Área
- desktop, operating-systems, tooling
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100