cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mayank Thakore <maya...@huawei.com>
Subject JMS connect exception, but service published
Date Wed, 06 Feb 2008 04:30:29 GMT
Hi,

When publishing a web service on jms transport, if activemq is not running,
an exception log is printed but the service creation is still successful.

I checked service got created using this code:

		Endpoint impl = Endpoint.publish(url, object);
		if ((impl != null) && impl.isPublished()) {
			// success
		}

How to check that there has been a problem with the service creation in this
case?

And this is the exception trace:

Feb 6, 2008 9:32:52 AM
org.apache.cxf.service.factory.ReflectionServiceFactoryBean
buildServiceFromWSDL
INFO: Creating Service {tmf854.v1.ws}FaultService from WSDL:
wsdl/mtosi1.1/wsdl/services/FaultService.wsdl
Feb 6, 2008 9:32:53 AM org.apache.cxf.endpoint.ServerImpl initDestination
INFO: Setting the server's publish address to be jms://AlarmRetrieval
Feb 6, 2008 9:32:53 AM org.apache.cxf.transport.jms.JMSDestination activate
INFO: JMSServerTransport activate().... 
Feb 6, 2008 9:32:54 AM org.apache.cxf.transport.jms.JMSDestination activate
SEVERE: JMS connect failed with JMSException : 
javax.jms.JMSException: Could not connect to broker URL:
tcp://localhost:61616. Reason: java.net.ConnectException: Connection
refused: connect
	at
org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java
:33)
	at
org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(Activ
eMQConnectionFactory.java:280)
	at
org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(Activ
eMQConnectionFactory.java:214)
	at
org.apache.activemq.ActiveMQConnectionFactory.createTopicConnection(ActiveMQ
ConnectionFactory.java:191)
	at
org.apache.cxf.transport.jms.JMSProviderHub.connect(JMSProviderHub.java:91)
	at
org.apache.cxf.transport.jms.JMSDestination.activate(JMSDestination.java:109
)
	at
org.apache.cxf.transport.AbstractObservable.setMessageObserver(AbstractObser
vable.java:47)
	at
org.apache.cxf.binding.AbstractBindingFactory.addListener(AbstractBindingFac
tory.java:166)
	at
org.apache.cxf.binding.soap.SoapBindingFactory.addListener(SoapBindingFactor
y.java:616)
	at org.apache.cxf.endpoint.ServerImpl.start(ServerImpl.java:122)
	at
org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:232)
	at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:179)
	at
org.apache.cxf.jaxws.spi.ProviderImpl.createAndPublishEndpoint(ProviderImpl.
java:74)
	at javax.xml.ws.Endpoint.publish(Endpoint.java:156)
Caused by: java.net.ConnectException: Connection refused: connect
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
	at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:519)
	at
org.apache.activemq.transport.tcp.TcpTransport.connect(TcpTransport.java:335
)
	at
org.apache.activemq.transport.tcp.TcpTransport.doStart(TcpTransport.java:303
)
	at
org.apache.activemq.util.ServiceSupport.start(ServiceSupport.java:49)
	at
org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:54)
	at
org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:54)
	at
org.apache.activemq.transport.WireFormatNegotiator.start(WireFormatNegotiato
r.java:66)
	at
org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:54)
	at
org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:54)
	at
org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(Activ
eMQConnectionFactory.java:265)
	... 33 more


Regards
Mayank

****************************************************************************
****************************
 This e-mail and attachments contain confidential information from HUAWEI,
which is intended only for the person or entity whose address is listed
above. Any use of the information contained herein in any way (including,
but not limited to, total or partial disclosure, reproduction, or
dissemination) by persons other than the intended recipient's) is
prohibited. If you receive this e-mail in error, please notify the sender by
phone or email immediately and delete it!




Mime
View raw message