Adding a user to a WildFly server, results in error -
i trying add user wildfly server error:
./add-user.sh: 1: eval: /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java/bin/java: not found
i suppose need change java_home location in .conf file have done in .conf files of wildfly/bin directory. how can solve issue?
the add-user.sh script doesn't source configuration file, have provide java binary through environment.
you can in multiple ways :
through
javavariable pointingjavaexecutable :export java=/path/to/jdk_install/bin/java ./add-user.sh [...]through
java_homevariable pointing java installation directory :export java_home=/path/to/jdk_install/ ./add-user.sh [...]by including java's installation
bindirectorypath:export path="/path/to/jdk_install/bin:$path" ./add-user.sh [...]
note these may vary depending on wildfly or jboss eap version ; gathered these reading script of wildfly-8.1.0.final installation.
if you're not sure applies own version , have basic understanding of shell scripts should check own : they're few dozens lines long , commented.
Comments
Post a Comment