flathub / flathub/org.eclipse.Java

Cannot start Java 11 with JMX enabled in Ubuntu

未關閉
#18 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
bug
主要語言
沒有語言資料
星號
6
分支
10
平均合併
7 小時 27 分鐘
30 天內合併 PR
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?

貢獻指南

這個儲存庫沒有索引到貢獻指南

研究方向

使用主機上安裝的 Java 11 並啟用 JMX 的 Spring Boot 應用程式重現啟動失敗。檢查 Flatpak 如何公開 /run/host/usr/lib/jvm/java-11-openjdk-amd64/conf/management/management.properties 及其符號連結 /etc/java-11-openjdk/management/management.properties。檔案能在 Flatpak 內解析,且應用程式在啟用 JMX 的情況下啟動,即表示完成。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
java, spring-boot, ubuntu
領域
desktop, operating-systems, tooling
Issue 類型
缺陷
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。