I am installing WildFly 26 and OpenJDK11 on Ubuntu 22.04 LTS with latest updates. I am trying to create an Elytron credential store.
This command, using a bash shell, results in the error shown.
sudo /opt/wildfly/bin/jboss-cli.sh --connect '/subsystem=elytron/credential-store=defaultCS:add(location=keystore/credentials, relative-to=jboss.server.config.dir, credential-reference={clear-text="{EXT}/usr/bin/wildfly_pass", type="COMMAND"}, create=true)'
/opt/wildfly/bin/jboss-cli.sh: 88: exec: /usr/bin/java/bin/java: not found
echo $JAVA_HOME show it to equal to /usr/bin/java
This same error is thrown for any jboss-cli.sh --connect attempts.
When I run "systemctl status wildfly", I see this:
wildfly.service - The WildFly Application Server Loaded: loaded (/etc/systemd/system/wildfly.service; disabled; vendor pres> Active: active (running) since Wed 2024-04-10 09:27:03 EDT; 19s ago Main PID: 5657 (launch.sh) Tasks: 107 (limit: 9339) Memory: 410.6M CPU: 19.673s CGroup: /system.slice/wildfly.service ├─5657 /bin/bash /opt/wildfly/bin/launch.sh standalone standalone.> ├─5658 /bin/sh /opt/wildfly/bin/standalone.sh -c standalone.xml -b> └─5781 java "-D[Standalone]" -server -Xms2048m -Xmx2048m -XX:Metas> The vendor preset (not visible here) is set to active
Q1: Is WildFly actually running, or is it disabled?
Q2: Any ideas why this error is being thrown?
Cheers,
Ken