How to resolve "java.lang.NoClassDefFoundError:javax/jms/Connection" exception
book
Article ID: KB0078653
calendar_today
Updated On:
Products
Versions
TIBCO BusinessEvents Enterprise Edition
-
Description
The exception "java.lang.NoClassDefFoundError:javax/jms/Connection" occurs when TIBCO BusinessEvents does not find the required jms classes from its jms client libraries or if the client libraries are missing from CLASSPATH. This can occur in both design-time (TIBCO BusinessEvents Studio) as well as run-time.
Issue/Introduction
How to resolve "java.lang.NoClassDefFoundError:javax/jms/Connection" exception.
Environment
All Supported Environment
Resolution
To resolve the issue please do the following: 1. Copy the EMS client libs to BE_HOME/lib/ext/tpcl,
2. The jar files that are needed from EMS_HOME/lib directory are "tibjms.jar" , "jms2.0.jar" and "TIBCrypt.jar". Note: jms-2.0.jar is available from EMS 7.x and 8.x on-wards. Older EMS version uses jms.jar instead. TIBCrypt.jar from EMS will be required for any secure connection (SSL) to EMS.
3. Additionally update the be-engine.tra file with the correct EMS_HOME (tibco.env.EMS_HOME).
4. Restart the BE engines
If TIBCO BusinessEvents Studio JMS Test connection fails with the same error during the design-time. To resolve , please follow the above steps and then restart the BE Studio.