2 Replies Latest reply on May 31, 2011 7:21 AM by shptlucky

    IBM Websphere v6 and JBoss 4x MQ Connectivity - Please Guide

    shptlucky Newbie

      On Server Side, i have IBM Websphere v6...

       

      On Client Side, i have JBoss 4.0.3SP1....

       

      I want to use MQ technology. I Need Client Side Settings.

       

      1) I read that it requires "wmq.jmsra.rar" <--- Not able to find this rar file on searches but found 2 files(com.ibm.mq.jar and com.ibm.mqjms.jar) of this rar on IBM Server's folder i.e \IBM\WebSphere\AppServer\lib\WMQ\java\lib. Should i make .rar of these two files

       

      2) I Found two files ""messaging-service.xml"" and "wsmq-ds.xml". when i put those in my Jboss jms folder "\server\default\deploy\jms". I get following error on server. "No ClassLoaders found for: org.jboss.jms.server.ServerPeer; - nested throwable: (java.lang.ClassNotFoundException: No ClassLoaders found for: org.jboss.jms.server.ServerPeer)".

                     where could i get this ServerPeer .jar file?

       

      Kindly Guide me how to make connection further i stuck on the way.

       

      Thank you

        • 1. Re: IBM Websphere v6 and JBoss 4x MQ Connectivity - Please Guide
          shptlucky Newbie

          As I got no reply from JBoss Active Community, i am moving forward of my own.

           

          Now i have downloaded Websphere MQ V7

          and i copied following wmq.jmsra.rar (attached below) from it's folder: \IBM\WebSphere MQ\java\lib\jca

           

          I put it in jboss deploy folder which gives following error

          ___________________________________________________

           

          Problem starting service jboss.jca:service=RARDeployment,name='wmq.jmsra.rar'

          com.ibm.mq.connector.DetailedResourceAdapterInternalException: MQJCA1008: An incorrect version of the WebSphere MQ classes for JMS was found. Deployment failed., error code: MQJCA1008 The WebSphere MQ classes for JMS were found in the class path but were not the correct version. This error can occur if the application server finds an earlier version of the WebSphere MQ classes for JMS in the class path. The error can also occur if you do not configure WebSphere Application Server to use the correct version of the WebSphere MQ classes for JMS.

                  at com.ibm.mq.connector.services.JCAExceptionBuilder.buildException(JCAExceptionBuilder.java:129)

                  at com.ibm.mq.connector.services.JCAExceptionBuilder.buildException(JCAExceptionBuilder.java:86)

                  at com.ibm.mq.connector.ResourceAdapterImpl.verifyJMSClasses(ResourceAdapterImpl.java:879)

                  at com.ibm.mq.connector.ResourceAdapterImpl.start(ResourceAdapterImpl.java:302)

                  at org.jboss.resource.deployment.RARDeployment.startService(RARDeployment.java:107)

                  at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)

                  at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230)

                  at org.jboss.system.ServiceDynamicMBeanSupport.invoke(ServiceDynamicMBeanSupport.java:110)

                  at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:150)

                  at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)

                  at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943)

                  at $Proxy0.start(Unknown Source)

                  at org.jboss.system.ServiceController.start(ServiceController.java:428)

                  at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)

                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                  at java.lang.reflect.Method.invoke(Method.java:597)

                  at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)

                  at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)

                  at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)

                  at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)

                  at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)

                  at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)

                  at $Proxy35.start(Unknown Source)

                  at org.jboss.deployment.SimpleSubDeployerSupport.startService(SimpleSubDeployerSupport.java:330)

                  at org.jboss.deployment.SimpleSubDeployerSupport.start(SimpleSubDeployerSupport.java:112)

                  at org.jboss.deployment.MainDeployer.start(MainDeployer.java:989)

                  at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:790)

                  at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)

                  at sun.reflect.GeneratedMethodAccessor49.invoke(Unknown Source)

                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                  at java.lang.reflect.Method.invoke(Method.java:597)

                  at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)

                  at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)

                  at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)

                  at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)

                  at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)

                  at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)

                  at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)

                  at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)

                  at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)

                  at $Proxy9.deploy(Unknown Source)

                  at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:319)

                  at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:507)

                  at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:192)

                  at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:203)

                  at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:182)

          15:38:04,137 ERROR [URLDeploymentScanner] Incomplete Deployment listing:

           

          --- Incompletely deployed packages ---

          org.jboss.deployment.DeploymentInfo@885fda34 { url=file:/C:/jboss-4.0.3SP1/server/default/deploy/jms/jms-ds.xml }

            deployer: org.jboss.deployment.XSLSubDeployer@39d325

            status: null

            state: FAILED

            watch: file:/C:/jboss-4.0.3SP1/server/default/deploy/jms/jms-ds.xml

            altDD: null

            lastDeployed: 1306836080152

            lastModified: 1306836080137

            mbeans:

           

          --- MBeans waiting for other MBeans ---

          ObjectName: jboss.jca:service=RARDeployment,name='wmq.jmsra.rar'

            State: FAILED

            Reason: com.ibm.mq.connector.DetailedResourceAdapterInternalException: MQJCA1008: An incorrect version of the WebSphere MQ classes for JMS was found. Deployment failed., error code: MQJCA1008 The WebSphere MQ classes for JMS were found in the class path but were not the correct version. This error can occur if the application server finds an earlier version of the WebSphere MQ classes for JMS in the class path. The error can also occur if you do not configure WebSphere Application Server to use the correct version of the WebSphere MQ classes for JMS.

           

          --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---

          ObjectName: jboss.jca:service=RARDeployment,name='wmq.jmsra.rar'

            State: FAILED

            Reason: com.ibm.mq.connector.DetailedResourceAdapterInternalException: MQJCA1008: An incorrect version of the WebSphere MQ classes for JMS was found. Deployment failed., error code: MQJCA1008 The WebSphere MQ classes for JMS were found in the class path but were not the correct version. This error can occur if the application server finds an earlier version of the WebSphere MQ classes for JMS in the class path. The error can also occur if you do not configure WebSphere Application Server to use the correct version of the WebSphere MQ classes for JMS.

          _____________________________________________________

           

          So Next work i am doing now is

           

          Downloading WebSphere MQ V6.0.2.

           

          Let's See how it will Go.

           

          Will Update, Boss Gonna Kick ma 

           

           

           

          Following is attachment of Websphere MQ 7.0.2 :-

          • 2. Re: IBM Websphere v6 and JBoss 4x MQ Connectivity - Please Guide
            shptlucky Newbie

            After Downloading WebSphere MQ V6.0.2 i got a rar file wmq.jmsra.rar which contains only four jar files

            i.e dhbcore.jar, com.ibm.mqjms.jar, com.ibm.mq.jar and mqconnector.jar and there is ra.xml in meta-inf folder inside it. I have attached that file below.

             

            I Copied that .rar file into my deploy/jms folder and i got following exception:

             

            ____________________

             

            [ServiceController] Problem starting service jboss.jca:service=RARDeployment,name='wmq.jmsra.rar'

            java.lang.NoSuchFieldError: TITLES

                    at com.ibm.mq.connector.MQJCAJMSLevel.printMQVERInfo(ResourceAdapterImpl.java:900)

                    at com.ibm.mq.connector.ResourceAdapterImpl.initializeTrace(ResourceAdapterImpl.java:634)

                    at com.ibm.mq.connector.ResourceAdapterImpl.start(ResourceAdapterImpl.java:235)

                    at org.jboss.resource.deployment.RARDeployment.startService(RARDeployment.java:107)

                    at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)

                    at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230)

                    at org.jboss.system.ServiceDynamicMBeanSupport.invoke(ServiceDynamicMBeanSupport.java:110)

                    at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:150)

                    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)

                    at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943)

                    at $Proxy0.start(Unknown Source)

                    at org.jboss.system.ServiceController.start(ServiceController.java:428)

                    at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)

                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                    at java.lang.reflect.Method.invoke(Method.java:597)

                    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)

                    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)

                    at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)

                    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)

                    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)

                    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)

                    at $Proxy35.start(Unknown Source)

             

                    at org.jboss.deployment.SimpleSubDeployerSupport.startService(SimpleSubDeployerSupport.java:330)

                    at org.jboss.deployment.SimpleSubDeployerSupport.start(SimpleSubDeployerSupport.java:112)

                    at org.jboss.deployment.MainDeployer.start(MainDeployer.java:989)

                    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:790)

                    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)

                    at sun.reflect.GeneratedMethodAccessor49.invoke(Unknown Source)

                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                    at java.lang.reflect.Method.invoke(Method.java:597)

                    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)

                    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)

                    at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)

                    at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)

                    at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)

                    at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)

                    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)

                    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)

                    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)

                    at $Proxy9.deploy(Unknown Source)

                    at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:319)

                    at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:507)

                    at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:192)

                    at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:265)

                    at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)

                    at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230)

                    at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)

                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                    at java.lang.reflect.Method.invoke(Method.java:597)

                    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)

                    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)

                    at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)

                    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)

                    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)

                    at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943)

                    at $Proxy0.start(Unknown Source)

                    at org.jboss.system.ServiceController.start(ServiceController.java:428)

                    at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)

                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                    at java.lang.reflect.Method.invoke(Method.java:597)

                    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)

                    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)

                    at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)

                    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)

                    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)

                    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)

                    at $Proxy4.start(Unknown Source)

                    at org.jboss.deployment.SARDeployer.start(SARDeployer.java:285)

                    at org.jboss.deployment.MainDeployer.start(MainDeployer.java:989)

                    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:790)

                    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)

                    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:737)

                    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                    at java.lang.reflect.Method.invoke(Method.java:597)

                    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)

                    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)

                    at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)

                    at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)

                    at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)

                    at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)

                    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)

                    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)

                    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)

                    at $Proxy5.deploy(Unknown Source)

                    at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:453)

                    at org.jboss.system.server.ServerImpl.start(ServerImpl.java:330)

                    at org.jboss.Main.boot(Main.java:187)

                    at org.jboss.Main$1.run(Main.java:438)

                    at java.lang.Thread.run(Thread.java:662)

             

            ERROR [URLDeploymentScanner] Incomplete Deployment listing:

             

            --- MBeans waiting for other MBeans ---

            ObjectName: jboss.jca:service=RARDeployment,name='wmq.jmsra.rar'

              State: FAILED

              Reason: java.lang.NoSuchFieldError: TITLES

             

            --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---

            ObjectName: jboss.jca:service=RARDeployment,name='wmq.jmsra.rar'

              State: FAILED

              Reason: java.lang.NoSuchFieldError: TITLES

            ____________________

             

             

            Don't know why this error occur, i have to check because i have chose correct version of rar file. Let's hope for the best.

            Will update you guys soon.

             

            If you have any idea then please tell.

             

            Following attachment is of Websphere 6.0.2.10 Fix