How to fix error: "File Adapter Error "java.lang.ClassNotFoundException: javax.jms.Session" error seen on TIBCO Administrator while starting TIBCO ActiveMatrix BusinessWorks Plug-in for Files for Unix and Windows 7.0.0"
book
Article ID: KB0076383
calendar_today
Updated On:
Products
Versions
TIBCO ActiveMatrix BusinessWorks Plug-in for Files for Unix and Windows
7.0.0
Description
Environment: =========== TIBCO ActiveMatrix BusinessWorks Plug-in for Files for Unix and Windows 7.0.0 and supported versions of Admin and TIBCO Runtime Agent(TRA).
Symptoms: ======== 1). Status as Error on TIBCO Administrator. “Error : java.lang.ClassNotFoundException: javax.jms.Session".
Cause: ===== Missing jar files : 'jms-2.0 jar and tibems.jar'
Error : ========= For Error ClassNotFoundException error while starting file adapter. Exception in thread "main" java.lang.NoClassDefFoundError: javax/jms/Session at com.tibco.sdk.serializer.config.MDeploymentDeserializer.readJmsSession(MDeploymentDeserializer.java:757) at com.tibco.sdk.serializer.config.MDeploymentDeserializer.readAnySupportedType(MDeploymentDeserializer.java:277) at com.tibco.sdk.serializer.MPropertyBasedDeserializer.readAny(MPropertyBasedDeserializer.java:231) at com.tibco.sdk.serializer.MPropertyBasedDeserializer.internalRead(MPropertyBasedDeserializer.java:187) at com.tibco.sdk.serializer.MPropertyBasedDeserializer.readAllOfFrom(MPropertyBasedDeserializer.java:215) at com.tibco.sdk.serializer.MPropertyBasedDeserializer.readAllOfFrom(MPropertyBasedDeserializer.java:201) at com.tibco.sdk.serializer.MPropertyBasedDeserializer.readAllOf(MPropertyBasedDeserializer.java:195) at com.tibco.sdk.serializer.config.MDeploymentDeserializer.readMessaging(MDeploymentDeserializer.java:386) at com.tibco.sdk.serializer.config.MDeploymentDeserializer.readAnySupportedType(MDeploymentDeserializer.java:265) at com.tibco.sdk.serializer.MPropertyBasedDeserializer.readAny(MPropertyBasedDeserializer.java:231) at com.tibco.sdk.serializer.MPropertyBasedDeserializer.internalRead(MPropertyBasedDeserializer.java:187) at com.tibco.sdk.serializer.MPropertyBasedDeserializer.readAllOfFrom(MPropertyBasedDeserializer.java:215) at com.tibco.sdk.serializer.MPropertyBasedDeserializer.readAllOfFrom(MPropertyBasedDeserializer.java:201) at com.tibco.sdk.serializer.MPropertyBasedDeserializer.readAllOf(MPropertyBasedDeserializer.java:195) at com.tibco.sdk.serializer.config.MDeploymentDeserializer.readSessions(MDeploymentDeserializer.java:1201) at com.tibco.sdk.serializer.config.MDeploymentDeserializer.readAnySupportedType(MDeploymentDeserializer.java:263) at com.tibco.sdk.serializer.MPropertyBasedDeserializer.readAny(MPropertyBasedDeserializer.java:231) at com.tibco.sdk.serializer.MPropertyBasedDeserializer.internalRead(MPropertyBasedDeserializer.java:187) at com.tibco.sdk.serializer.MPropertyBasedDeserializer.readAllOfFrom(MPropertyBasedDeserializer.java:215) at com.tibco.sdk.serializer.MPropertyBasedDeserializer.readAllOfFrom(MPropertyBasedDeserializer.java:201) at com.tibco.sdk.serializer.MPropertyBasedDeserializer.readAllOf(MPropertyBasedDeserializer.java:195) at com.tibco.sdk.serializer.config.MDeploymentDeserializer.readDeployment(MDeploymentDeserializer.java:369) at com.tibco.sdk.serializer.config.MDeploymentDeserializer.readAnySupportedType(MDeploymentDeserializer.java:331) at com.tibco.sdk.serializer.MPropertyBasedDeserializer.readAny(MPropertyBasedDeserializer.java:231) at com.tibco.sdk.serializer.MPropertyBasedDeserializer.deserialize(MPropertyBasedDeserializer.java:32) at com.tibco.sdk.serializer.MPropertyBasedDeserializer.readAny(MPropertyBasedDeserializer.java:228) at com.tibco.sdk.serializer.MPropertyBasedDeserializer.internalRead(MPropertyBasedDeserializer.java:187) at com.tibco.sdk.serializer.MPropertyBasedDeserializer.readOptional(MPropertyBasedDeserializer.java:264) at com.tibco.sdk.serializer.MPropertyBasedDeserializer.readOptional(MPropertyBasedDeserializer.java:255) at com.tibco.sdk.serializer.MConfigDeserializer.readConfig(MConfigDeserializer.java:83) at com.tibco.sdk.serializer.MConfigDeserializer.readAnySupportedType(MConfigDeserializer.java:54) at com.tibco.sdk.serializer.MPropertyBasedDeserializer.readAny(MPropertyBasedDeserializer.java:231) at com.tibco.sdk.serializer.MPropertyBasedDeserializer.deserialize(MPropertyBasedDeserializer.java:32) at com.tibco.sdk.MAppImpl.onConfigDeserialize(MAppImpl.java:339) at com.tibco.sdk.MDefaultAppImpl.start(MDefaultAppImpl.java:120) at com.tibco.sdk.MApp.start(MApp.java:225) at com.tibco.adapter.adfiles.FAFileAdapter.main(Unknown Source) Caused by: java.lang.ClassNotFoundException: javax.jms.Session at java.net.URLClassLoader$1.run(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source)
Issue/Introduction
Error on starting File Adapter: File Adapter-Error "java.lang.ClassNotFoundException: javax/jms session, fixed by placing the missing jar files in tpcl/lib and ems/lib folder. Required jar files : jms-2.0 jar and tibems.jar .
Environment
TIBCO ActiveMatrix BusinessWorks Plug-in for Files for Unix and Windows 7.0.0
Resolution
Resolution:
- Place jms-2.0 jar and tibems.jar on tpcl\lib folder and ems\lib folder. - check for the missing class-path for EMS in the tra file.