I think the reason is that the queue named 'MyService' does not exist in ActiveMQ. You can create a queue in the ActiveMQ named 'MyService' (http://activemq.apache.org/configure-startup-destinations.html) and try with the default transports as it was.
When using Synapse transports you have only replaced the server-side configuration. When using activemq there is a special logic to handle dynamic queues in the code, which will look for 'dynamicQueues/MyService' instead. I am not sure whether that existed in Axis2 1.2 transports. In your case client side did not know about 'dynamicQueues/MyService' and looking for 'MyService' instead. You can try with Axis 1.3. Upul On Nov 15, 2007 9:30 PM, Ted Jones <[EMAIL PROTECTED]> wrote: > > Make that version.aar... > > > > Ted Jones wrote: > I would try stripping down your service.xml to the bare minimum. Something > like this: > > > <service name="MyService"> > > <messageReceivers> > > <messageReceiver mep="http://www.w3.org/ns/wsdl/in-out" > > class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver" /> > > </messageReceivers> > > <parameter name="ServiceClass" locked="false"> > > Server.MyService > > </parameter> > > </service> Your axis2.xml seems correct. > > Also, try adding the version.sar and view through JConsole to see if it > shows up as a queue. > > zze-TRABELSI Anis RD-BIZZ-ISS wrote: > > > I changed axis2.xml as you told me and I kept every thing else unchanged but > I still have this exception : > > > > 14 nov. 2007 11:07:14 org.apache.axis2.transport.jms.JMSOutTransportInfo > getDestination > > ATTENTION: Cannot get or lookup JMS destination : MyService from url : > jms:/MyService?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&java.naming.provider.url=tcp://P-XZZPRET103.rd.francetelecom.fr:61616&java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory > : MyService > > 14 nov. 2007 11:07:45 org.apache.axis2.transport.jms.JMSSender invoke > > ATTENTION: Did not receive a JMS response within 30000 ms to destination : > queue://MyService > > org.apache.axis2.AxisFault: The input stream for an incoming message is > null. > > at > org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:61) > > at > org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:356) > > at > org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:294) > > at > clientstub.MyServiceMyServiceSOAP12Port_jmsStub.AddNumbers(MyServiceMyServiceSOAP12Port_jmsStub.java:165) > > at service.Client.test(Client.java:27) > > at service.Client.main(Client.java:40) > > > > For information, here are my services.xml and a the part of axis2.xml > dealing with JMS transport: > > services.xml > > > > <!-- This file was auto-generated from WSDL --> > > <!-- by the Apache Axis2 version: #axisVersion# #today# --> > > <serviceGroup> > > <service name="MyService"> > > <transports> > > <transport>jms</transport> > > </transports> > > <messageReceivers> > > <messageReceiver mep="http://www.w3.org/ns/wsdl/in-out" > > class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver" /> > > </messageReceivers> > > <parameter name="ServiceClass" locked="false"> > > Server.MyService > > </parameter> > > <parameter name="useOriginalwsdl" locked="false"> > > false > > </parameter> > > <parameter name="modifyUserWSDLPortAddress" locked="false"> > > true > > </parameter> > > <operation name="addNumbers" > > mep="http://www.w3.org/ns/wsdl/in-out"> > > <actionMapping>urn:addNumbers</actionMapping> > > <outputActionMapping>urn:addNumbers</outputActionMapping> > > </operation> > > </service> > > </serviceGroup> > > > > axis2.xml > > ... > > <transportReceiver name="jms" > > class="org.apache.synapse.transport.jms.JMSListener"> > > <parameter name="myTopicConnectionFactory"> > > <parameter name="java.naming.factory.initial"> > > org.apache.activemq.jndi.ActiveMQInitialContextFactory > > </parameter> > > <parameter name="java.naming.provider.url"> > > tcp://localhost:61616 > > </parameter> > > <parameter name="transport.jms.ConnectionFactoryJNDIName"> > > TopicConnectionFactory > > </parameter> > > </parameter> > > <parameter name="myQueueConnectionFactory"> > > <parameter name="java.naming.factory.initial"> > > org.apache.activemq.jndi.ActiveMQInitialContextFactory > > </parameter> > > <parameter name="java.naming.provider.url"> > > tcp://localhost:61616 > > </parameter> > > <parameter name="transport.jms.ConnectionFactoryJNDIName"> > > QueueConnectionFactory > > </parameter> > > </parameter> > > <parameter name="default"> > > <parameter name="java.naming.factory.initial"> > > org.apache.activemq.jndi.ActiveMQInitialContextFactory > > </parameter> > > <parameter name="java.naming.provider.url"> > > tcp://localhost:61616 > > </parameter> > > <parameter name="transport.jms.ConnectionFactoryJNDIName"> > > QueueConnectionFactory > > </parameter> > > </parameter> > > </transportReceiver> > > ... > > <transportSender name="jms" > > class="org.apache.synapse.transport.jms.JMSSender" /> > > ... > > > Anis > > ________________________________ > De : Asankha C. Perera [mailto:[EMAIL PROTECTED] > Envoyé : mardi 13 novembre 2007 18:17 > À : [email protected] > Objet : Re: JMS on axis2 > > Can I suggest you try something ..? Can you download > http://people.apache.org/repo/m2-ibiblio-rsync-repository/org/apache/synapse/synapse-transports/1.1/synapse-transports-1.1.jar > into your lib folder (i.e. where your axis2-kernel.jar currently resides) > and edit your axis2.xml as > > <transportReceiver name="jms" > class="org.apache.synapse.transport.jms.JMSListener"> > .... > </transportReceiver> > > and > > <transportSender name="jms" > class="org.apache.synapse.transport.jms.JMSSender"/> > > Leave everything else the same.. and only change the package name as shown > above.. Let me know if this fixes the issue. > > asankha > > zze-TRABELSI Anis RD-BIZZ-ISS wrote: > > Thank you for your answer > > I have already seen this thread, I think the problem does not come from the > deployment of the service. > Here is what I get when I start tomcat (the JMS transport is initialized) : > > 13 nov. 2007 15:40:10 org.apache.catalina.core.AprLifecycleListener init > INFO: The Apache Tomcat Native library which allows optimal performance in > production environments was not found on the java.library.path: > C:\Java\JDK\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;c:\orawin\bin;C:\oracle\ora81\bin\;C:\Program > Files\Oracle\jre\1.1.7bin\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program > Files\Axalto\Access Client\v5\;C:\Program > Files\QuickTime\QTSystem\;C:\Sun\SDK\bin;C:\Sun\jwsdp-2.0\jwsdp-shared\bin;C:\Sun\AppServer\bin;C:\Java\Sun\bin;C:\JOnAS-4.8.5ant\bin;C:\Java\JDK\bin;C:\JOnAS-4.8.5\bin\nt;C:\Sun\jwsdp-2.0\jwsdp-shared\bin;AXIS2_HOME;AXIS2_HOME\bin;J2EE_HOME\bin;M2_HOME;M2_HOME\bin > 13 nov. 2007 15:40:10 org.apache.coyote.http11.Http11Protocol init > INFO: Initialisation de Coyote HTTP/1.1 sur http-8080 > 13 nov. 2007 15:40:10 org.apache.catalina.startup.Catalina load > INFO: Initialization processed in 525 ms > 13 nov. 2007 15:40:10 org.apache.catalina.core.StandardService start > INFO: DÚmarrage du service Catalina > 13 nov. 2007 15:40:10 org.apache.catalina.core.StandardEngine start > INFO: Starting Servlet Engine: Apache Tomcat/6.0.13 > 13 nov. 2007 15:40:10 org.apache.catalina.startup.HostConfig deployWAR > INFO: DÚploiement de l'archive axis2.war de l'application web > 13 nov. 2007 15:40:11 org.apache.axis2.deployment.ModuleDeployer deploy > INFO: Deploying module: addressing-1.2 > 13 nov. 2007 15:40:11 org.apache.axis2.deployment.ModuleDeployer deploy > INFO: Deploying module: soapmonitor-1.2 > 13 nov. 2007 15:40:11 org.apache.axis2.deployment.ServiceDeployer deploy > INFO: Deploying Web service: MyService.aar > 13 nov. 2007 15:40:12 org.apache.axis2.transport.jms.JMSConnectionFactory > getDestinationName > ATTENTION: Error looking up destination with JNDI name : MyService to map > its corresponding provider specific Destination name > 13 nov. 2007 15:40:12 org.apache.axis2.transport.jms.JMSConnectionFactory > addDestination > ATTENTION: JMS Destination with JNDI name : MyService does not exist > 13 nov. 2007 15:40:12 org.apache.axis2.transport.jms.JMSConnectionFactory > addDestination > ATTENTION: JMS Destination with JNDI name : MyService created > 13 nov. 2007 15:40:12 org.apache.axis2.transport.jms.JMSConnectionFactory > addDes > tinationINFO: Mapping JNDI name : MyService and JMS Destination name : > MyService against service : MyService > 13 nov. 2007 15:40:12 org.apache.axis2.transport.jms.JMSListener init > INFO: JMS Transport Receiver (Listener) initialized... > 13 nov. 2007 15:40:12 org.apache.axis2.transport.jms.JMSConnectionFactory > listenOnDestination > ATTENTION: Cannot find destination : MyService Creating a Queue with this > name > 13 nov. 2007 15:40:12 org.apache.axis2.transport.jms.JMSConnectionFactory > listen > > INFO: Connection factory : default initialized... > 13 nov. 2007 15:40:12 org.apache.axis2.transport.jms.JMSConnectionFactory > listen > > INFO: Connection factory : myTopicConnectionFactory initialized... > 13 nov. 2007 15:40:12 org.apache.axis2.transport.jms.JMSConnectionFactory > listen > > INFO: Connection factory : myQueueConnectionFactory initialized... > 13 nov. 2007 15:40:13 org.apache.coyote.http11.Http11Protocol start > INFO: DÚmarrage de Coyote HTTP/1.1 sur http-8080 > 13 nov. 2007 15:40:13 org.apache.jk.common.ChannelSocket init > INFO: JK: ajp13 listening on /0.0.0.0:8009 > 13 nov. 2007 15:40:13 org.apache.jk.server.JkMain start > INFO: Jk running ID=0 time=0/32 config=null > 13 nov. 2007 15:40:13 org.apache.catalina.startup.Catalina start > INFO: Server startup in 2732 ms > > > ________________________________ > De : Ted Jones [mailto:[EMAIL PROTECTED] > Envoyé : mardi 13 novembre 2007 17:12 > À : [email protected] > Objet : Re: JMS on axis2 > > Here is a thread on JMS with Axis2 that may be helpful to you. > > http://www.mail-archive.com/[email protected]/msg26522.html > > HTH, > Ted > > zze-TRABELSI Anis RD-BIZZ-ISS wrote: > > > Hello, > > I'm trying to run JMS over axis2 1.2 > I create a web service called MyService which I deploy on tomcat 6.0.13 > I generate the client stub and I start activemq (as JMS provider) > The problem appears when I invoke MyService, I get the following exception > : > > 13 nov. 2007 15:56:51 org.apache.axis2.transport.jms.JMSOutTransportInfo > getDestination > ATTENTION: Cannot get or lookup JMS destination : MyService from url : > jms:/MyService?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&java.naming.provider.url=tcp://P-XZZPRET103.rd.francetelecom.fr:61616&java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory > : MyService > > org.apache.axis2.AxisFault: > at > org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:434) > at > org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:373) > at > org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:294) > at > clientstub.MyServiceMyServiceSOAP12Port_jmsStub.AddNumbers(MyServiceMyServiceSOAP12Port_jmsStub.java:165) > at service.Client.test(Client.java:27) > at service.Client.main(Client.java:40) > > Can someone help me with that? > > Thanks in advance > > --------------------------------------------------------------------- To > unsubscribe, e-mail: [EMAIL PROTECTED] For additional > commands, e-mail: [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- To > unsubscribe, e-mail: [EMAIL PROTECTED] For additional > commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
