Forum Discussion

saranzzworld's avatar
saranzzworld
Senior Member
8 years ago

Not able to configure hermesjms with IBM WebsphereMQ V 8.0

I am not able to create new session in Hermes v1.14 to configure jms through IBM WebSphere mq v 8.o.

 

I have added following jar in newly created group in providers tab

 

  • com.ibm.mq.pcf.jar
  • com.ibm.mqjms.jar
  • com.ibm.mq.jar
  • connector

 

After selection loader as previously created group

When I am trying to select Connection Factory: Class as "com.ibm.mq.jms.MQQueueConnectionFactory" . I am getting the following error

 

java.lang.NoClassDefFoundError: javax/jms/JMSRuntimeException
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
at java.lang.Class.getConstructor0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at hermes.util.ReflectUtils.createConnectionFactory(ReflectUtils.java:207)
at hermes.browser.dialog.ConnectionFactoryConfigPanel$4.contentsChanged(ConnectionFactoryConfigPanel.java:232)
at javax.swing.AbstractListModel.fireContentsChanged(Unknown Source)
at javax.swing.DefaultComboBoxModel.setSelectedItem(Unknown Source)
at javax.swing.JComboBox.setSelectedItem(Unknown Source)
at javax.swing.JComboBox.setSelectedIndex(Unknown Source)
at javax.swing.plaf.basic.BasicComboPopup$Handler.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at javax.swing.plaf.basic.BasicComboPopup$1.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$200(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.WaitDispatchSupport$2.run(Unknown Source)
at java.awt.WaitDispatchSupport$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.WaitDispatchSupport.enter(Unknown Source)
at java.awt.Dialog.show(Unknown Source)
at hermes.swing.actions.EditObjectAction.actionPerformed(EditObjectAction.java:113)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.AbstractButton.doClick(Unknown Source)
at com.jidesoft.plaf.vsnet.VsnetMenuItemUI.doClick(Unknown Source)
at com.jidesoft.plaf.vsnet.VsnetMenuItemUI$MouseInputHandler.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$200(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: javax.jms.JMSRuntimeException
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 hermes.impl.LoaderSupport$DebugClassLoader.findClass(LoaderSupport.java:130)
at java.lang.ClassLoader.loadClass(Unknown Source)
at hermes.impl.LoaderSupport$DebugClassLoader.loadClass(LoaderSupport.java:99)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 86 more

 

 

Also after getting this error I am not able to add any property. When I try to close this session and opening new session I am getting same error with another error (cannot find class com.ibm.mq.jms.MQConnectionFactory in loader wmq).

 

One of  my colleague has same configuration properties as mine, but its working for them, but not for me.

 

Pls help me to successfully connect hermes jms with IBM websphere v 8.0.. I am trying to resolve this issue for almost a week.

 

Thanks & Regards,

Saravnan

4 Replies

  • nmrao's avatar
    nmrao
    Champion Level 3
    1. Are you using jms 1.1 ? or 2.0?
    2. Add the respective jms-<version.jar> to the classpath

  • timjohnarm's avatar
    timjohnarm
    Occasional Contributor

    For IBM MQ V9 the various jars have all been rolled into a single jar called com.ibm.mq.allclient.jar I think this is also the case for Websphere MQ V8 but I skipped that version.

  • ballard123's avatar
    ballard123
    Occasional Contributor

    Has anyone found a solution to this?

     

    I am now experiencing this (I am very new to HermesJMS) and have no idea how to resolve it?

     

    I am using com.ibm.mq.allclient.jar lib in providers that sets fine, but then when setting Loader to MQ and Class as MQConnectionFactory I get the above error. I am using IIB MQ Version 8.0.0.2 and SOAP UI 5.3.0 and HermesJMS (standard with 5.3.0 SOAPUI).

     

    Thanks in advance

    • Manova's avatar
      Manova
      New Member

      Hi ballard123,

       

      I also faced the same issue. I removed 'com.ibm.mq.allclient.jar' from provider list. and its able to discover the queue.

       

      Regards,

      Manova