RHEL: Failed to load native library jlinenative #7112
Labels
Status: Open
Issue has been triaged by the front-line engineers and is being worked on verification
Type: Bug
Label issue as a bug defect
Brief Summary
On RHEL 9.4 with JDK v21.0.5+11, when upgrading from Payara v6.2024.7 to v6.2024.8, I started receiving the following error when attempting to execute the asadmin command: Failed to load native library: jlinenative ... java.langUnsatisfiedLinkError ... failed to map segment from shared object ...
...for the full error, see the Current Outcome section.
This issue originated when JLine was upgraded from v3.21.0 to v3.26.3 in Payara v6.2024.8 via Pull Request #6827
This issue still exists in Payara v6.2024.11 with JLine v3.27.0
Expected Outcome
I would expect the asadmin command to prompt as normal:
Current Outcome
Error: v6.2024.8
Error: v6.2024.11
Reproducer
I think this issue is ultimately a JLine issue but exists when attempting to start Payara. The issue is present because the /tmp directory is mounted with the "noexec" option as is advised for security purposes. The workaround is to inadvisably remount the /tmp directory without the "noexec" option or more advisable, start Payara with a custom temp directory. You can start Payara with a custom temp directory by modifying the asadmin file to utilize the
-Djava.io.tmpdir=
JVM option.Disabling JLine as described in the Payara Community Documentation has no effect.
https://docs.payara.fish/community/docs/5.2020.3/documentation/payara-server/asadmin-commands/disabling-jline.html
Operating System
RHEL 9.4
JDK Version
OpenJDK 21.0.5+11
Payara Distribution
Payara Server Full Profile
The text was updated successfully, but these errors were encountered: