axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Asankha C. Perera" <asan...@wso2.com>
Subject Re: Axis2 + jms
Date Wed, 29 Oct 2008 10:29:11 GMT
Hi Shen

What is the version of Axis2 you are using? When you invoke ?wsdl on the 
service and get its WSDL, do you see the JMS URL's listed on it? There 
was a bug with Axis2 https://issues.apache.org/jira/browse/AXIS2-3961 
which caused the JMS EPR to not be available.

asankha

Shen, Chunxia wrote:
>
> Hi asankha,
>
> My service is deployed successfully and listen to the queue.
> But when I use the TestClient2 to invoke web service via 
> HelloWorldStub I encounter below error:(HelloWorldStub is generated by 
> wsdl2java)
>
> _java.lang.NullPointerException_
>         at sample.HelloWorldStub.sayHello(_HelloWorldStub.java:249_)
>         at sample.TestClient2.main(_TestClient2.java:37_)
> Exception in thread "main"
>
>
> Below attached server log and screenshot.
>
>
>
> [INFO] Deploying Web service: HelloWorld.aar - 
> file:/C:/axis2/repository/services/HelloWorld.aar
> [INFO] Deploying Web service: StockQuoteService.aar - 
> file:/C:/axis2/repository/services/StockQuoteService.aar
>
> [INFO] Deploying Web service: version.aar - 
> file:/C:/axis2/repository/services/version.aar
> [INFO] Listening on port 8080
> [WARN] Service Version does not specifya JMS connection factory or 
> refers to an invalid factory. This service
> is being marked as faulty and will not be available over the JMS 
> transport
> [INFO] Mapping JNDI name : myjmsqueue and JMS Destination name : 
> myjmsqueue against service : HelloWorld
> [WARN] Service StockQuoteService does not specifya JMS connection 
> factory or refers to an invalid factory. Thi
> s service is being marked as faulty and will not be available over the 
> JMS transport
> [INFO] JMS Transport Receiver (Listener) initialized...
> [INFO] Connection factory : myjmsfactoryTest initialized...
> [INFO] [SimpleAxisServer] Started
>
>
> ole0
>
>
>
> <<TestClient2.java>>
>
>
> Thanks & Regards
>
>
> Shen Chunxia (Jennie)
> ReBT
> Tel: 86-21-38954626 ext. 61104
> chunxia.shen@citigroup.com
>
> -----Original Message-----
> From: Asankha C. Perera [mailto:asankha@wso2.com]
> Sent: Wednesday, October 29, 2008 5:06 PM
> To: axis-user@ws.apache.org
> Cc: Hans.Drexler@HumanInference.com; ariesfajar.dwiputera@sg.bosch.com;
> He, Jinda [CCC-OT_IT]
> Subject: Re: Axis2 + jms
>
>
> Hi Shen
> > Now my axis2 server is listen to the queue, and How can I write a 
> client to call the service?
> >  
> First of all lets make sure your service started on JMS successfully. If
> it did, it should dump some information like the following:
>
> 2008-10-29 14:30:15,240 [-] [main]  INFO JMSListener JMS Transport
> Receiver/Listener initialized...
> 2008-10-29 14:30:15,315 [-] [main]  INFO JMSConnectionFactory Connected
> to the JMS connection factory : TopicConnectionFactory
> 2008-10-29 14:30:15,648 [-] [main]  INFO JMSConnectionFactory Connection
> factory : myTopicConnectionFactory initialized...
> 2008-10-29 14:30:15,651 [-] [main]  INFO JMSConnectionFactory Connected
> to the JMS connection factory : QueueConnectionFactory
> 2008-10-29 14:30:15,709 [-] [main]  INFO JMSConnectionFactory Connection
> factory : myQueueConnectionFactory initialized...
> 2008-10-29 14:30:15,712 [-] [main]  INFO JMSConnectionFactory Connected
> to the JMS connection factory : QueueConnectionFactory
> 2008-10-29 14:30:15,730 [-] [main]  INFO JMSConnectionFactory Connection
> factory : default initialized...
> 2008-10-29 14:30:15,731 [-] [main]  INFO JMSListener JMS Listener started
> 2008-10-29 14:30:15,731 [-] [main]  INFO JMSListener Starting to listen
> on destination : SimpleStockQuoteService of type queue for service
> SimpleStockQuoteService
> 2008-10-29 14:30:15,733 [-] [main]  INFO JMSConnectionFactory Mapped
> JNDI name : SimpleStockQuoteService and JMS Destination name :
> SimpleStockQuoteService against service : SimpleStockQuoteService
> 2008-10-29 14:30:15,772 [-] [main]  WARN JMSConnectionFactory Cannot
> find destination : SimpleStockQuoteService. Creating a Queue
>
> The JMS listener defaults to a Queue with the same name as your service
> - unless you override this with the "transport.jms.Destination"
> property. So make sure to create the required destination as necessary
> as WLS does not auto create this like ActiveMQ. Once it starts
> successfully, you should be able to post a text message (e.g.
> "<hello/>") from the WLS console to this queue and see something
> happening on the service. If this is all working, everything is fine.
> > I attached my TestClient and below attached my axis2.xml snippt:
> >  
> Basically a client for a JMS service looks exactly the same as one for a
> normal web service. Only the EPR or the "To" address would be a JMS URL
>
> If you see any errors, posting your logs would help us better understand
> any problem
>
> asankha
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
> ------------------------------------------------------------------------
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org

Mime
View raw message