iProcess background processes will not start - EAIRun_Init() - Can't find java Loader class

iProcess background processes will not start - EAIRun_Init() - Can't find java Loader class

book

Article ID: KB0080808

calendar_today

Updated On:

Products Versions
TIBCO iProcess Engine (SQL) 11.6.0

Description

iProcess background processes will not start.
 
Error in iProcess sw_warn.log file:
1867-'EAIJAVA' EAI Run-Time Plug-In failed to initialize, error EAI_JAVA: EAIRun_Init() - Can't find java Loader class
 
The error indicates that the background process were unable to load the classes requires to initialize the plug-in. The jar files to load the plug-in are located under SWDIR/eaijava/libs/bootstrap
 
In a Windows iProcess environment there are the 3 configuration settings that must be set correctly for the EAIJAVA plug-in to initialize.
 
1. The Windows environment variable SW_SYSCLASSPATH
    This must be set to location all files under SWDIR/eaijava/libs/bootstrap
    These are the jar files required to bootstrap the plugin.
    e.g.
    SW_SYSCLASSPATH=C:\swserver\staffw_nod1\eaijava\libs\bootstrap\bootstrap.jar;C:\swserver\staffw_nod1\eaijava\libs\bootstrap\log4j-1.2.13.jar
 
 
2. iProcess process attribute SWLIB_PATH for the BG, RPCBG and BGPREDICT processes
    The value of the attributes can be displayed using the iProcess command:
        swadm show_all_attributes SWLIB_PATH
 
    The attribute defined the location of the jvm.dll file that the background processes use to create a Java Virtual Machine.
 
    For the iProcess Technology Plug-in 11.6.0 on Windows this must be a 32-bit Java 1.8.0 JRE.
    e.g.
    swadm set_attribute  0 BG 0 SWLIB_PATH C:\swserver\staffw_nod1\java\bin\client
    swadm set_attribute  0 RPCBG 0 SWLIB_PATH C:\swserver\staffw_nod\java\bin\client
    swadm set_attribute  0 BGPREDICT 0 SWLIB_PATH C:\swserver\staffw_nod\java\bin\client
 
 
3. The Windows PATH environment variable
    For Java 1.8 the PATH should reference JRE_HOME\bin and JRE_HOME\bin\client
    The PATH should reference the same JRE location as the SWLIB_PATH process attributes
    Put the entries at the start of the PATH just in case other entries reference a different version of the Java libraries.
    e.g.
    PATH= C:\swserver\staffw_nod1\java\bin\client; C:\swserver\staffw_nod1\java\bin;

 

Issue/Introduction

iProcess background processes will not start. 1867-'EAIJAVA' EAI Run-Time Plug-In failed to initialize, error EAI_JAVA: EAIRun_Init() - Can't find java Loader class

Environment

TIBCO iProcess Engine (SQL) 11.6.0 TIBCO iProcess Technology Plug-in (Windows) 11.6.0 Microsoft Windows Server 2012

Resolution

The issue was that the SW_SYSCLASSPATH environment variable was set to:
SW_SYSCLASSPATH=C:\swserver\staffw_nod1\eaijava\libs\bootstrap\bootstrap.jar;C:\swserver\staffw_nod1\eaijava\libs\bootstrap\log4j-1.2.13.ja
The last “r” was missing at the end.
 
The Windows environment variables are loaded when the iProcess sentinels are started. The sentinels then pass on the environment when starting the iProcess processes.

The SW_SYSCLASSPATH variable must be set correctly before the iProcess sentinels are started.

If the SW_SYSCLASSPATH is changed then this has no effect on iProcess until the sentinels are restarted.

 

Additional Information

TIBCO iProcess Technology Plug-in Installation Guide
TIBCO iProcess Connector for ActiveMatrix BusinessWork User’s Guide