Service Virtualization

Expand all | Collapse all

TIBCO EMS Connectivity Issue

Jump to Best Answer
  • 1.  TIBCO EMS Connectivity Issue

    Posted 08-09-2018 11:37 AM

    Hi Team, 

     

    DevTest Version 10.3.0

    Objective- To create a Tibco EMS JNDI Based VS by Request and Response Pairs

    Available Jars- tibcrypt, tibjms, tibjmsadmin, tibjmsapps, tibrvjms - V8.3.0_Client JAR files

    Transport Protocol Used- JMS

    Created the JMS Asset as follows

    TIBCO- JMS Connection Factory -->Direct JMS Connection Factory for TIBCO EMS (Class) -->Server URL

     

    Getting below error while connecting the server URL. 

     

    Verifying Asset
    Error: Error loading class com.tibco.tibjms.TibjmsConnectionFactory from jar file tibjms.jar: javax/jms/JMSContext


    ============================================================================
    | Exception:
    ============================================================================
    | Message: Error loading class com.tibco.tibjms.TibjmsConnectionFactory from jar file tibjms.jar: javax/jms/JMSContext
    ----------------------------------------------------------------------------
    | Trapped Exception: javax/jms/JMSContext
    | Trapped Message: java.lang.NoClassDefFoundError: javax/jms/JMSContext
    ----------------------------------------------------------------------------
    STACK TRACE
    java.lang.NoClassDefFoundError: javax/jms/JMSContext
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:348)
    at com.itko.lisa.asset.util.ReflectionClassSpec.loadClass(ReflectionClassSpec.java:47)
    at com.itko.lisa.messaging.providers.tibco.AbstractTibcoDirectConnectionFactoryAsset.verifyEnvironment(AbstractTibcoDirectConnectionFactoryAsset.java:150)
    at com.itko.lisa.asset.AssetUtils.verifyRuntimeAsset(AssetUtils.java:1288)
    at com.itko.lisa.asset.ui.AssetEditor$5.run(AssetEditor.java:306)
    at com.itko.lisa.asset.ui.ProgressLog$Worker.doInBackground(ProgressLog.java:142)
    at com.itko.lisa.asset.ui.ProgressLog$Worker.doInBackground(ProgressLog.java:100)
    at javax.swing.SwingWorker$1.call(SwingWorker.java:295)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at javax.swing.SwingWorker.run(SwingWorker.java:334)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
    Caused by: java.lang.ClassNotFoundException: javax.jms.JMSContext
    at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    ... 14 more
    ============================================================================


    at com.itko.lisa.asset.util.ReflectionClassSpec.loadClass(ReflectionClassSpec.java:58)
    at com.itko.lisa.messaging.providers.tibco.AbstractTibcoDirectConnectionFactoryAsset.verifyEnvironment(AbstractTibcoDirectConnectionFactoryAsset.java:150)
    at com.itko.lisa.asset.AssetUtils.verifyRuntimeAsset(AssetUtils.java:1288)
    at com.itko.lisa.asset.ui.AssetEditor$5.run(AssetEditor.java:306)
    at com.itko.lisa.asset.ui.ProgressLog$Worker.doInBackground(ProgressLog.java:142)
    at com.itko.lisa.asset.ui.ProgressLog$Worker.doInBackground(ProgressLog.java:100)
    at javax.swing.SwingWorker$1.call(SwingWorker.java:295)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at javax.swing.SwingWorker.run(SwingWorker.java:334)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)

     

    Please suggest how to resolve this error. 



  • 2.  Re: TIBCO EMS Connectivity Issue

     
    Posted 08-09-2018 11:48 AM

    Hello  Dhanasekar,

     

    Where were the jar files added?

    Make sure it is under the $DEVTEST_HOME\lib directory and don't forget to restart your Workstation after placing the jar files and before testing the assets.

     

    Hope it helps.

    Heloisa



  • 3.  Re: TIBCO EMS Connectivity Issue

    Posted 08-09-2018 01:05 PM

    Hi Maria/Team, 

     

    I have all the JAR files under $DEVTEST_HOME\lib directory only. DevTest Workstation and all components also restarted. Still, getting the same error. Requesting you to please advise on this. 



  • 4.  Re: TIBCO EMS Connectivity Issue

    Posted 08-09-2018 01:53 PM

    It is saying that a class was not found. Could it be that you missed adding a jar? If possible, list all the jars you're attempting to add, provide the full jar file name that may include version number, this may be important to know in case there's a conflict in version.



  • 5.  Re: TIBCO EMS Connectivity Issue

    Posted 08-09-2018 02:02 PM

    Hi William/Team, 

     

    All the below listed JAR files are EMS_V8.3.0_Client_Jar files.  I am using these JAR files as per docops reference(Third-Party File Requirements - DevTest Solutions - 10.3 - CA Technologies Documentation ). 

     

    tibcrypt.jar
    tibjms.jar
    tibjmsadmin.jar
    tibjmsapps.jar
    tibrvjms.jar

     

    Requesting you to please update if any other version JAR files or more than these JAR files required to resolve this issue



  • 6.  Re: TIBCO EMS Connectivity Issue

    Posted 08-09-2018 07:19 PM

    And I'm assuming you placed these jar files in the DEVTEST_HOME install on the server where the VSE is running?



  • 7.  Re: TIBCO EMS Connectivity Issue

    Posted 08-10-2018 08:17 AM

    Hi William, 

     

    Yes. I have placed the above mentioned JAR files in DEVTEST_HOME install \lib directory only. VSE is also running on the same server. 



  • 8.  Re: TIBCO EMS Connectivity Issue
    Best Answer

    Posted 08-10-2018 08:20 AM

    Double check and make sure javax.jms-api-2.0.jar is also in DT_HOME/lib.  The missing class is in javax.jmx....Jar



  • 9.  Re: TIBCO EMS Connectivity Issue

    Posted 08-10-2018 09:24 AM

    Hi Joel, 

     

    Thank you for the update.

     

    After adding "jms-2.0.jar" file. Able to get the success message with JMS Connection Factory asset file.