Unable to start Identity Access Manager service in 10.4

Document ID : KB000116791
Last Modified Date : 03/10/2018
Show Technical Document Details
Issue:
After installing new instance of DevTest 10.4 in Oracle Linux, unable to start Identity Access Manager.

No logs are created in DevTest_Home\IdentityAccessManager\standalone\log folder.

Started DevTest_Home/IdentityAccessManager/bin/IdentityAccessManager instead of IdentityAccessManagerService and see the below:

========================================================================= 
JBoss Bootstrap Environment 
JBOSS_HOME: /home/dc-user/CA/DevTest/IdentityAccessManager 
JAVA: java 
JAVA_OPTS: -server -Djboss.http.port=51112 -Djboss.https.port=51111 -Djboss.bind.address.management=0.0.0.0 -Djboss.bind.address=0.0.0.0 -Diam.truststore=../iam-truststore.ks -Diam.truststore.pass=passphrase -Dkeycloak.migration.action=import -Dkeycloak.migration.provider=iam-updater -Dkeycloak.migration.dir=../realms-to-import -Dkeycloak.migration.strategy=IGNORE_EXISTING -Diam.version=1.2.0 
========================================================================= 
Environment:
DevTest 10.4 installed in Oracle Linux environment.
Cause:
DevTest_Home\IdentityAccessManager\standalone.sh file has the below (JAVA="java" ) for setting JAVA and no Java was installed on the machine which caused the issue.
---------- 
# Setup the JVM 
if [ "x$JAVA" = "x" ]; then 
if [ "x$JAVA_HOME" != "x" ]; then 
JAVA="$JAVA_HOME/bin/java" 
else 
JAVA="java" 
fi 
fi 
---------- 

Note: By default DevTest should be using its default jre and if it is not available then uses jre found on the machine.
Resolution:
In DevTest_Home/IdentityAccessManager/bin/standalone.sh changing the line 130 as below 

From 
JAVA="java" 

TO 
JAVA="../../jre/bin/java" 

resolve the issue.