IAPJMS fails to start, within sw_error: 1996-Failure in JPROC Layer [Failed to start Java Layer] [-2]

IAPJMS fails to start, within sw_error: 1996-Failure in JPROC Layer [Failed to start Java Layer] [-2]

book

Article ID: KB0088286

calendar_today

Updated On:

Products Versions
TIBCO iProcess Engine (SQL) -
Not Applicable -

Description

Resolution:
Description: Error starting IAPJMS
sw_error:
2009/10/20 11:08:41(iapjms:::2::com.staffware.core.swprocess.library.SWProcessControl::206):1996-Failure in JPROC Layer [Couldn't initialise Java Process] [java.lang.Exception: java.lang.NoClassDefFoundError: javax/jms/Message]
2009/10/20 11:08:41.381892(IAPJMS:1:4252:2::::pro:iapjms.c:80004:275): 1996-Failure in JPROC Layer [Failed to start Java Layer] [-2]

iapjams_java.log:
2009-10-20 11:08:41,343 [ERROR] SWProcessControl - No Class definition found while instantiating
java.lang.NoClassDefFoundError: javax/jms/Message
    at com.staffware.core.iapjms.library.iapjmsserver.IAPJMSMain.initIAPJMSThreads(IAPJMSMain.java:243)
    at com.staffware.core.iapjms.library.iapjmsserver.IAPJMSMain.init(IAPJMSMain.java:342)
    at com.staffware.core.swprocess.library.SWProcessControl.&ltinit>(SWProcessControl.java:141)
Caused by: java.lang.ClassNotFoundException: javax.jms.Message
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
    ... 3 more
2009-10-20 11:08:41,343 [ERROR] SWProcessControl - Unexpected exception while constructing SWProcessControl
java.lang.Exception: java.lang.NoClassDefFoundError: javax/jms/Message
    at com.staffware.core.swprocess.library.SWProcessControl.&ltinit>(SWProcessControl.java:193)
Caused by: java.lang.NoClassDefFoundError: javax/jms/Message
    at com.staffware.core.iapjms.library.iapjmsserver.IAPJMSMain.initIAPJMSThreads(IAPJMSMain.java:243)
    at com.staffware.core.iapjms.library.iapjmsserver.IAPJMSMain.init(IAPJMSMain.java:342)
    at com.staffware.core.swprocess.library.SWProcessControl.&ltinit>(SWProcessControl.java:141)
Caused by: java.lang.ClassNotFoundException: javax.jms.Message
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
    ... 3 more
======================
Resolution:

This is an issue with starting Java. It is likely that your classpath.external.base is incorrect within your %SWDIR%\etc\iapjms_classpath.properties or EMS has not been installed properly (or at all). Verify EMS is installed and verify location of jar files.

In EMS 4.x and earlier the jar files were in EMS_HOME/java/clients e.g. c:\tibco\ems\java\client

In EMS 5.0 and above the jar file are located in EMS_HOME/lib Aditonaly ems now has the version number e.g.
c:\tibco\ems\5.1\lib

The path in the iapjms_classpath.properties should match the path to the jar files in the EMS installation.

The default entries in the iapjms_classpath.proeprties for EMS are:
#classpath.basedir.ems=C:/TIBCO/ems/clients/java
#classpath.ems.1=jms.jar,tibjms.jar,tibjmsadmin.jar,tibcrypt.jar

The lines must be uncommented by removing the #. The classpath.basedir.ems must be updated with the correct path to the EMS jar files.

If cannot resolve the issue from the above info, clear the current logs and restart iProcess with debug on the IPAJMS process?

To do this:
1.      Stop iProcess
2.      Edit the file SWDIR/etc/ iapjms_log4j.properties and amend the first line to read:
log4j.rootLogger=DEBUG,IAPJMS
3.      Set the DEBUG process attribute for iapjms using the command:
swadm  set_attribute  0  IAPJMS  0  DEBUG  ALL=255
4.      Start iProcess


After the failure to start attach the following to the SR:
1.      iProcess log files in SWDIR/logs
2.      iProcess configuration files
SWDIR/swdefs
SWDIR/etc/staffpms
SWDIR/etc/staffcfg
SWDIR/etc/iapjms.properties
SWDIR/etc/iapjms_classpath.properties
3.      Output from the following commands as the iProcess user:
swadm  show_all_attributes
swsvrmgr STATUS -v
sweaireg  list
set output (run from cmd prompt to get env config) 4. What is the version of EMS used?

Issue/Introduction

IAPJMS fails to start, within sw_error: 1996-Failure in JPROC Layer [Failed to start Java Layer] [-2]