DEVTEST 10.7.2 Sp2hf21 : We are facing issues with DEVTEST startup script running through systemd facility generates a JDK error for IAM
search cancel

DEVTEST 10.7.2 Sp2hf21 : We are facing issues with DEVTEST startup script running through systemd facility generates a JDK error for IAM

book

Article ID: 268680

calendar_today

Updated On:

Products

Service Virtualization

Issue/Introduction

We are facing issues with devtest startup script running through systemd facility generates a JDK error for IAM (like after weekend patching work, this issue occurring after 10.7.2.SP2 upgrade onwards).

Need to find the proper entries in the systemd service file for the startup. Please help us here to resolve this issue

IAM ...
No suitable Java Virtual Machine could be found on your system.
The version of the JVM must be 11.
Please define INSTALL4J_JAVA_HOME to point to a suitable JVM.
Enterprise Dashboard...
EnterpriseDashboardService is stopped.
Registry...
RegistryService is stopped.
Portal...
PortalService is stopped.
VSE...
VirtualServiceEnvironmentService is stopped.
Status script completed...

Environment

Release : 10.7.2 Sp2.hf21

Cause

JDK 11 Linux issue

Resolution

 if you add an Environment variable to the Linux system that should take care of the JAVA Error

"No suitable Java Virtual Machine could be found on your system.
The version of the JVM must be 11.
Please define INSTALL4J_JAVA_HOME to point to a suitable JVM.

example: IAM_JAVA_HOME=/opt/CA/DevTest/IdentityAccessManager/jdk/bin

 

Add this to the start up script: 

Description=LISA App Service Script
Wants=basic.target
After=basic.target network.target
 
[Service]
Environment="IAM_JAVA_HOME=/opt/apps/java/jdk11"
Type=forking
User=app
Group=app
ExecStart=/opt/apps/scripts/lisa-start.sh
ExecStop=/opt/apps/scripts/lisa-stop.sh