Cannot start Java 11 with JMX enabled in Ubuntu
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- java, spring-boot, ubuntu
- Domain
- desktop, operating-systems, tooling
Research direction
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.
Written by the indexing model from the issue text.
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?
- Dominant language
- No language data
- Stars
- 6
- Forks
- 10
- Avg merge
- 7h 27m
- Merged PRs (30d)
- 2
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from flathub/org.eclipse.Java
-
Eclipse (Flatpak) crashes with SIGABRT: GTK icon fallback aborts when the glycin SVG loader fails Openbug
Difficulty 5/5 Over a week Newbie friendliness 35/100
flathub/org.eclipse.Java#138 · 3 comments ·
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 25/100
flathub/org.eclipse.Java#100 · 1 comment ·
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 35/100
flathub/org.eclipse.Java#56 · 3 comments ·
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 28/100
flathub/org.eclipse.Java#34 · 3 comments · 1 reaction ·
-
question
Difficulty 4/5 3-5 days Newbie friendliness 25/100
flathub/org.eclipse.Java#30 · 10 comments ·
All issues in flathub/org.eclipse.Java
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Eynzof/Hermes-CN-Desktop#616 ·
-
app bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
AvengeMedia/DankMaterialShell#3537 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
CherryHQ/cherry-studio#20947 · 1 reaction ·