Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 12928 invoked from network); 23 Jul 2008 09:18:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Jul 2008 09:18:18 -0000 Received: (qmail 79725 invoked by uid 500); 23 Jul 2008 09:18:04 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 79717 invoked by uid 500); 23 Jul 2008 09:18:04 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 79705 invoked by uid 99); 23 Jul 2008 09:18:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Jul 2008 02:18:04 -0700 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [217.6.95.237] (HELO tcmail23.telekom.de) (217.6.95.237) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Jul 2008 09:17:10 +0000 Received: from S4DE8SSAADK.t-systems.com (S4DE8SSAADK.t-systems.com [10.206.178.90]) by tcmail21.telekom.de with ESMTP for axis-user@ws.apache.org; Wed, 23 Jul 2008 11:13:48 +0200 Received: from S4DE8SSAANQ.t-systems.com ([10.206.163.42]) by S4DE8SSAADK.t-systems.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 23 Jul 2008 11:13:48 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C8ECA4.6A32ED32" Subject: AW: Websphere MQ configuration Date: Wed, 23 Jul 2008 11:13:48 +0200 Message-Id: In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Websphere MQ configuration Thread-Index: AcjsBlFiAOykTYOvR7S+Oo3Vj3SPJQAmoAnwAACTc7A= References: <51e581cd0807220303n3984957bud96e0fa04f3efc6a@mail.gmail.com> <51e581cd0807220721t6f341546xdf2909ed10d9a4fd@mail.gmail.com> From: To: X-OriginalArrivalTime: 23 Jul 2008 09:13:48.0380 (UTC) FILETIME=[6A6429C0:01C8ECA4] X-Virus-Checked: Checked by ClamAV on apache.org ------_=_NextPart_001_01C8ECA4.6A32ED32 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello again, =20 I figured out, I am already using the client transport type, which is = specified via the the "TRAN" parameter in the context.xml. TRAN=3D0: bindings transport mode TRAN=3D1: client transport mode. =20 So there is still the trace that I might have to set some user or unset = some default user.. ot other authentication settings. =20 Any ideas? =20 Matthias. =20 Von: Gaiser, Matthias=20 Gesendet: Mittwoch, 23. Juli 2008 10:59 An: axis-user@ws.apache.org Betreff: AW: Websphere MQ configuration =20 Upul, =20 Thanks a lot. You are really helpful. Unfortunately, it is still not = running. I now get the following error: [INFO] JMS Transport Receiver/Listener initialized... [INFO] Connected to the JMS connection factory : = java:comp/env/jms/BrokerQueueManagerWindows [ERROR] Error connecting to Connection Factory : = java:comp/env/jms/BrokerQueueManagerWindows javax.jms.JMSSecurityException: MQJMS2013: Ung=FCltige = Sicherheitsauthentifizierung f=FCr MQQueueManager =FCbergeben at com.ibm.mq.jms.MQConnection.createQM(MQConnection.java:2022) at = com.ibm.mq.jms.MQConnection.createQMNonXA(MQConnection.java:1496) at = com.ibm.mq.jms.MQQueueConnection.(MQQueueConnection.java:150) at = com.ibm.mq.jms.MQQueueConnectionFactory.createQueueConnection(MQQueueConn= ectionFactory.java:185) at = com.ibm.mq.jms.MQQueueConnectionFactory.createQueueConnection(MQQueueConn= ectionFactory.java:112) at = org.apache.synapse.transport.jms.JMSConnectionFactory.connectAndListen(JM= SConnectionFactory.java:244) at = org.apache.synapse.transport.jms.JMSListener.start(JMSListener.java:104) at = org.apache.axis2.engine.ListenerManager.start(ListenerManager.java:126) at = org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:442) at = org.apache.axis2.transport.http.AxisAdminServlet.init(AxisAdminServlet.ja= va:55) at = org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java= :1139) at = org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966) at = org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.ja= va:3956) at = org.apache.catalina.core.StandardContext.start(StandardContext.java:4230)= at = org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014) at = org.apache.catalina.core.StandardHost.start(StandardHost.java:736) at = org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014) at = org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at = org.apache.catalina.core.StandardService.start(StandardService.java:448) at = org.apache.catalina.core.StandardServer.start(StandardServer.java:700) at org.apache.catalina.startup.Catalina.start(Catalina.java:552) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at = sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java= :39) at = sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorI= mpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433) =20 The error message translates (accordingly to hits on google) to "invalid = security authentication supplied for MQQueueManager". Through the pages = I found there I assume it has something to do with the transport type. I = probably use the bindings transport type and should use the client = transport type, since the mqseries server runs on another computer.=20 Another solution might be specifying user and password, but I did not = need these to access the Queue from my own JMS client. =20 Any more ideas? It would be really great. I am happy to post my configuration afterwards to save other people from = what I'm going through..=20 =20 Matthias. =20 PS:My configuration so far looks as follows: Axis2.xml: org.apache.naming.java.javaURLContex= tFactory java:comp/env/jms/Broker= QueueManagerWindows queue =20 Context.xml: =20 =20 =20 =20 Von: Upul Godage [mailto:upulg.dev@gmail.com]=20 Gesendet: Dienstag, 22. Juli 2008 16:21 An: axis-user@ws.apache.org Betreff: Re: Websphere MQ configuration =20 org.apache.naming.java.javaURLContex= tFactory java:comp/env/jms/Broker= QueueManagerWindows queue Add the transport.jms.ConnectionFactoryType to the receiver in the = axis2.xml as above. It is either "queue" or "topic" value. You can check = the Synapse's axis2.xml for an example. Upul On Tue, Jul 22, 2008 at 5:32 PM, wrote: Hi Upul, =20 Thanks a lot for the fast answer. I tried out the Synapse JMS Listener, = which somehow solved one part of the problem, but I still get another = error message, I am not sure about how to resolve it. =20 [INFO] JMS Transport Receiver/Listener initialized... [INFO] Connected to the JMS connection factory : = java:comp/env/jms/BrokerQueueManagerWindows [ERROR] Unable to determine type of Connection Factory - i.e. = Queue/Topic [INFO] Unable to determine type of Connection Factory - i.e. Queue/Topic org.apache.synapse.transport.jms.AxisJMSException: Unable to determine = type of Connection Factory - i.e. Queue/Topic at = org.apache.synapse.transport.jms.JMSConnectionFactory.handleException(JMS= ConnectionFactory.java:590) at = org.apache.synapse.transport.jms.JMSConnectionFactory.connectAndListen(JM= SConnectionFactory.java:230) at = org.apache.synapse.transport.jms.JMSListener.start(JMSListener.java:104) at = org.apache.axis2.engine.ListenerManager.start(ListenerManager.java:126) at = org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:442) at = org.apache.axis2.transport.http.AxisAdminServlet.init(AxisAdminServlet.ja= va:55) at = org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java= :1139) at = org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966) at = org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.ja= va:3956) at = org.apache.catalina.core.StandardContext.start(StandardContext.java:4230)= at = org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014) at = org.apache.catalina.core.StandardHost.start(StandardHost.java:736) at = org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014) at = org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at = org.apache.catalina.core.StandardService.start(StandardService.java:448) at = org.apache.catalina.core.StandardServer.start(StandardServer.java:700) at org.apache.catalina.startup.Catalina.start(Catalina.java:552) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at = sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java= :39) at = sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorI= mpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433) =20 I am not so familiar with MQ Series and the Queue and Topic terms. Since = there are not many hits for "Unable to determine type of Connection = Factory", I am quite helpless and would be very grateful for any help. =20 Thanks, Matthias. =20 =20 Von: Upul Godage [mailto:upulg.dev@gmail.com]=20 Gesendet: Dienstag, 22. Juli 2008 12:03 An: axis-user@ws.apache.org Betreff: Re: Websphere MQ configuration =20 Most probably WebSphere MQ is JMS 1.0 compliant. But the Axis2's JMS = listener is written for JMS 1.1. The given method, = javax.jms.ConnectionFactory.createConnection()Ljavax/jms/Connection, was = introduced in JMS 1.1. Instead you can try the Apache Synapse's (http://synapse.apache.org/) = JMS transport listener (which is compliant with JMS 1.0) with Axis2 by = taking the synapse transports jar and changing the Axis2's axis2.xml = pointing to synapse's JMS listener class. Upul On Tue, Jul 22, 2008 at 2:54 PM, wrote: Hi, =20 I am trying to publish a web service via WebSphere MQ and I am = encountering some problems. My steps so far included: =20 1. Created a WebService named "TestService". =20 2. Added in the axis2.xml the section: org.apache.naming.java.javaURLContex= tFactory java:comp/env/jms/Broker= QueueManagerWindows =20 3. Added to Tomcat a context.xml, containing: =20 =20 Now I know that the second resource should not be of an ActiveMQ-Type.. = but I don't know which type it should be for WebsphereMQ. Additionally I = get some errors when I start up the tomcat: [WARN] Error looking up destination with JNDI name : TestService to map = its corresponding provider specific Destination name [WARN] JMS Destination with JNDI name : TestService does not exist [ERROR] StandardWrapper.Throwable java.lang.NoSuchMethodError: = javax.jms.ConnectionFactory.createConnection()Ljavax/jms/Connection; at = org.apache.axis2.transport.jms.JMSConnectionFactory.addDestination(JMSCon= nectionFactory.java:245) at = org.apache.axis2.transport.jms.JMSListener.processService(JMSListener.jav= a:174) at = org.apache.axis2.transport.jms.JMSListener.init(JMSListener.java:138) at = org.apache.axis2.engine.ListenerManager.start(ListenerManager.java:125) at = org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:442) at = org.apache.axis2.transport.http.AxisAdminServlet.init(AxisAdminServlet.ja= va:55) at = org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java= :1139) at = org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966) at = org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.ja= va:3956) at = org.apache.catalina.core.StandardContext.start(StandardContext.java:4230)= at = org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014) at = org.apache.catalina.core.StandardHost.start(StandardHost.java:736) at = org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014) at = org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at = org.apache.catalina.core.StandardService.start(StandardService.java:448) at = org.apache.catalina.core.StandardServer.start(StandardServer.java:700) at org.apache.catalina.startup.Catalina.start(Catalina.java:552) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at = sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java= :39) at = sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorI= mpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433) =20 Can anybody give me some hints, a sample for websphere mq or a solution = for my problem? Thank you for any help. =20 Kind Regards Matthias Gaiser =20 =20 =20 ------_=_NextPart_001_01C8ECA4.6A32ED32 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

Hello again,

 

I figured out, I am already using the client transport = type, which is specified via the the “TRAN” parameter in the = context.xml.

TRAN=3D0: bindings transport mode

TRAN=3D1: client transport mode.

 

So there is still the trace that I might have to set some = user or unset some default user.. ot other authentication = settings.

 

Any ideas?

 

Matthias.

 

Von:<= /b> = Gaiser, Matthias
Gesendet: Mittwoch, 23. Juli 2008 10:59
An: axis-user@ws.apache.org
Betreff: AW: Websphere MQ configuration

 

Upul,

 

Thanks a lot. You are really helpful. Unfortunately, it = is still not running. I now get the following error:

[INFO] JMS Transport = Receiver/Listener initialized...

[INFO] Connected to the JMS = connection factory : java:comp/env/jms/BrokerQueueManagerWindows

[ERROR] Error connecting to = Connection Factory : java:comp/env/jms/BrokerQueueManagerWindows

javax.jms.JMSSecurityException: MQJMS2013: Ung=FCltige Sicherheitsauthentifizierung f=FCr MQQueueManager = =FCbergeben

      at com.ibm.mq.jms.MQConnection.createQM(MQConnection.java:2022)

      at com.ibm.mq.jms.MQConnection.createQMNonXA(MQConnection.java:1496)

      at com.ibm.mq.jms.MQQueueConnection.<init>(MQQueueConnection.java:150)

      at com.ibm.mq.jms.MQQueueConnectionFactory.createQueueConnection(<= span style=3D'font-size:10.0pt;font-family:"Courier = New";color:navy'>MQQueueConnectionFactory.java:185)

      at com.ibm.mq.jms.MQQueueConnectionFactory.createQueueConnection(<= span style=3D'font-size:10.0pt;font-family:"Courier = New";color:navy'>MQQueueConnectionFactory.java:112)

      at org.apache.synapse.transport.jms.JMSConnectionFactory.connectAndListen(JMSConnectionFactory.java:244)

      at org.apache.synapse.transport.jms.JMSListener.start(JMSListener.java:104)

      at org.apache.axis2.engine.ListenerManager.start(ListenerManager.java:126)

      at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:442)

      at org.apache.axis2.transport.http.AxisAdminServlet.init(AxisAdminServlet.java:55)

      at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)

      at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)

      at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3956)

      at org.apache.catalina.core.StandardContext.start(StandardContext.java:4230)

      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)

      at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)

      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)

      at = org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)

      at org.apache.catalina.core.StandardService.start(StandardService.java:448)

      at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)

      at org.apache.catalina.startup.Catalina.start(Catalina.java:552)

      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.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)

      at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)

 

The error message translates (accordingly to hits on = google) to “invalid security authentication supplied for MQQueueManager”. Through the pages I found there I assume it has = something to do with the transport type. I probably use the bindings transport type = and should use the client transport type, since the mqseries server runs on another computer.

Another solution might be specifying user and password, = but I did not need these to access the Queue from my own JMS = client.

 

Any more ideas? It would be really = great.

I am happy to post my configuration afterwards to save = other people from what I’m going through..

 

Matthias.

 

PS:My configuration so far looks as = follows:

Axis2.xml:

<transportRecei= ver name=3D"jms"

                   class=3D"org.apache.synapse.transport.jms.JMSListene= r">

    <parameter name=3D"default">

        <parameter name=3D"java.naming.factory.initial">org.apache.naming.java.javaURLContextFactory= </parameter>

        <parameter name=3D"transport.jms.ConnectionFactoryJNDIName&quo= t;>java:comp/env/jms/BrokerQueueManagerWindows<= span style=3D'color:teal'></parameter>

        <parameter name=3D"transport.jms.ConnectionFactoryType" locked=3D"false">queue</parameter>

    </parameter>

</transportReceiver>

 

Context.xml:

<Resource name=3D"jms/BrokerQueueManagerWindows"<= /i>

        = auth=3D"Container"

           &= nbsp;    type=3D"com.ibm.mq.jms.MQQueueConnectionFactory&quo= t;

        = factory=3D"com.ibm.mq.jms.MQQueueConnectionFactoryFact= ory"

           &= nbsp;    description=3D"JMS Queue Connection Factory for sending messages"

           &= nbsp;    HOST=3D"XXX"

           &= nbsp;    PORT=3D"XXX"

           &= nbsp;    CHAN=3D"XXX"

           &= nbsp;    TRAN=3D"1"

           &= nbsp;    QMGR=3D"XXX"/>

         &= nbsp;     

     = <Resource

           &= nbsp;   name=3D"TestService"

           &= nbsp;   auth=3D"Container"

           &= nbsp;   type=3D"com.ibm.mq.jms.MQQueue"

           &= nbsp;   factory=3D"com.ibm.mq.jms.MQQueueFactory"<= /i>

           &= nbsp;   description=3D"JMS Queue for receiving messages from = Dialog"

           &= nbsp;   QU=3D"PDMWebConnector" />

 

 

 

Von:<= /b> Upul = Godage [mailto:upulg.dev@gmail.com]
Gesendet: Dienstag, 22. Juli 2008 16:21
An: axis-
user@ws.apac= he.org
Betreff: Re: Websphere MQ configuration

 

    <parameter name=3D"default">
        <parameter name=3D"java.naming.factory.initial">org.apache.naming.java.= javaURLContextFactory</parameter>
        <parameter name=3D"transport.jms.ConnectionFactoryJNDIName">java:comp/e= nv/jms/BrokerQueueManagerWindows</parameter>
        <parameter name=3D"transport.jms.ConnectionFactoryType" locked=3D"false">queue</parameter>
    </parameter>

Add the transport.jms.ConnectionFactoryType to the receiver in the = axis2.xml as above. It is either "queue" or "topic" value. You = can check the Synapse's axis2.xml for an example.

Upul

On Tue, Jul 22, 2008 at 5:32 PM, <Matthias.Gaiser@t-systems.c= om> wrote:

Hi = Upul,

 

Thanks a lot for the = fast answer. I tried out the Synapse JMS Listener, which somehow solved one = part of the problem, but I still get another error message, I am not sure about = how to resolve it.

 

[INFO] JMS Transport Receiver/Listener initialized...

[INFO] Connected to the = JMS connection factory : = java:comp/env/jms/BrokerQueueManagerWindows

[ERROR] Unable to = determine type of Connection Factory - i.e. Queue/Topic

[INFO] Unable to = determine type of Connection Factory - i.e. Queue/Topic

org.apache.synapse.transport.jms.Ax= isJMSException: Unable to determine type of = Connection Factory - i.e. Queue/Topic

      at org.apache.synapse.transport.jms.JMSConnectionFactory.handleException(JMSConnectionFactory.java:590)

      at org.apache.synapse.transport.jms.JMSConnectionFactory.connectAndListen(JMSConnectionFactory.java:230)

      at org.apache.synapse.transport.jms.JMSListener.start(JMSListener.java:104)

      at org.apache.axis2.engine.ListenerManager.start(ListenerManager.java:126)

      at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:442)

      at org.apache.axis2.transport.http.AxisAdminServlet.init(AxisAdminServlet.java:55= )

      at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)

      at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)

      at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3956)

      at org.apache.catalina.core.StandardContext.start(StandardContext.java:4230)

      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)

      at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)

      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)

      at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)

      at org.apache.catalina.core.StandardService.start(StandardService.java:448= )

      at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)

      at org.apache.catalina.startup.Catalina.start(Catalina.java:552)

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

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

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:2= 5)

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

      at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)

      at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)

 

I am not so familiar = with MQ Series and the Queue and Topic terms. Since there are not many hits for "Unable to determine type of Connection Factory", I am quite = helpless and would be very grateful for any help.

 

Thanks,

Matthias.

 

 

Von: Upul Godage [mailto:upulg.dev@gmail.com]
Gesendet: Dienstag, 22. Juli 2008 12:03
An: axis-user@ws.apache.org
Betreff: Re: Websphere MQ configuration

 

Most probably WebSphere MQ is JMS 1.0 compliant. But the Axis2's JMS listener is written for JMS 1.1. The = given method, javax.jms.ConnectionFactory.create= Connection()Ljavax/jms/Connection, was introduced in JMS 1.1.
Instead you can try the Apache Synapse's (http://synapse.apache.org/) JMS transport listener = (which is compliant with JMS 1.0) with Axis2 by taking the synapse transports = jar and changing the Axis2's axis2.xml pointing to synapse's JMS listener = class.

Upul

On Tue, Jul 22, 2008 at 2:54 PM, <Matthias.Gaiser@t-systems.com> wrote:

Hi,

 

I am trying to publish a web service via WebSphere MQ and I am = encountering some problems.

My steps so far included:

 

1. Created a WebService named "TestService".

 

2. Added in the axis2.xml the section:

<transportReceiver name=3D"jms"

       &nbs= p;           class=3D"org.apache.axis2.transport.jms.JMSListener&= quot;>

    = <parameter name=3D"default">

     &nbs= p;  <parameter name=3D"java.naming.factory.initial">org.apache.naming.java.javaURLContextFactory= </parameter>

     &nbs= p;  <parameter name=3D"transport.jms.ConnectionFactoryJNDIName&quo= t;>java:comp/env/jms/BrokerQueueManagerWindows<= span style=3D'color:teal'></parameter>

    = </parameter>

</transportRecei= ver>

 

3. Added to Tomcat a context.xml, containing:

<Resource name=3D"jms/BrokerQueueManagerWindows"

      =             auth=3D"Container"

      =            type=3D"com.ibm.mq.jms.MQQueueConnectionFactory"

      =            factory= =3D"com.ibm.mq.jms.MQQueueConnectionFactoryFactory"

      =             description<= span style=3D'color:blue;background:white'>=3D"JMS Queue Connection Factory for sending = messages"

      =            HOST=3D"XXX"

      =             PORT=3D"1111"

      =             CHAN=3D"XXX"

      =             TRAN=3D"1"

      =             QMGR=3D"XXX/>

<Resource

      =             name=3D"TestService"

      =            auth=3D"Container"

      =            type=3D"org.apache.activemq.command.ActiveMQQueue"

      =             factory=3D"org.apache.activemq.jndi.JNDIReferenceFactory"

      =             physicalName=3D"XXX" />

 

 

Now I know that the second resource should not be of an = ActiveMQ-Type.. but I don't know which type it should be for WebsphereMQ. Additionally I get = some errors when I start up the tomcat:

[WARN] Error looking up = destination with JNDI name : TestService to map its corresponding provider specific Destination name

[WARN] JMS Destination = with JNDI name : TestService does not exist

[ERROR] = StandardWrapper.Throwable

java.lang.NoSuchMethodError: javax.jms.ConnectionFactory.createConnection()Ljavax/jms/Connection;

      at org.apache.axis2.transport.jms.JMSConnectionFactory.addDestination(JMSConnectionFactory.java:245)

      at org.apache.axis2.transport.jms.JMSListener.processService(JMSListener.java:174)

      at org.apache.axis2.transport.jms.JMSListener.init(JMSListener.java:138)

      at org.apache.axis2.engine.ListenerManager.start(ListenerManager.java:125)

      at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:442)

      at org.apache.axis2.transport.http.AxisAdminServlet.init(AxisAdminServlet.java:55= )

      at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)

      at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)

      at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3956)

      at org.apache.catalina.core.StandardContext.start(StandardContext.java:4230)

      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)

      at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)

      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)

      at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)

      at org.apache.catalina.core.StandardService.start(StandardService.java:448= )

      at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)

      at org.apache.catalina.startup.Catalina.start(Catalina.java:552)

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

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

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:2= 5)

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

      at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)

      at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)

 

Can anybody give me some hints, a sample for websphere mq or a = solution for my problem?

Thank you for any help.

 

Kind Regards

Matthias Gaiser

 

 

 

------_=_NextPart_001_01C8ECA4.6A32ED32--