flathub / flathub/org.eclipse.Java

Cannot start Java 11 with JMX enabled in Ubuntu

オープン
#18 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug
主要言語
言語のデータがありません
スター
6
フォーク
10
平均マージ
7時間 27分
マージ済み PR(30日)
2

説明

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?

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
java, spring-boot, ubuntu
領域
desktop, operating-systems, tooling
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。