camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lavanya <lavanya...@gmail.com>
Subject BindException with Embedded Jetty for camel web app
Date Thu, 26 Jan 2012 21:11:02 GMT
Hi,

I have a web application based on spring, camel and  activemq. The war file
works fine when I deploy in tomcat. I am trying to use the embedded Jetty
instead of Tomcat as described 
http://internna.blogspot.com/2011/08/step-by-step-executable-war-files.html
here 

I am always getting the below exception:

java.io.IOException: Failed to bind to server socket: tcp://localhost:61616
due to: java.net.BindException: Address already in use: JVM_Bind
caused by
java.net.BindException: Address already in use: JVM_Bind
        at java.net.PlainSocketImpl.socketBind(Native Method)
        at java.net.PlainSocketImpl.bind(Unknown Source)
        at java.net.ServerSocket.bind(Unknown Source)
        at java.net.ServerSocket.<init>(Unknown Source)
        at javax.net.DefaultServerSocketFactory.createServerSocket(Unknown
Source)
        at
org.apache.activemq.transport.tcp.TcpTransportServer.bind(TcpTransportServer.java:135)
        at
org.apache.activemq.transport.tcp.TcpTransportFactory.doBind(TcpTransportFactory.java:60)
        at
org.apache.activemq.transport.TransportFactory.bind(TransportFactory.java:131)
        at
org.apache.activemq.broker.TransportConnector.createTransportServer(TransportConnector.java:319)

I have also tried to different port, getting the same exception again.

When I do netstat -a, I am not seeing any process listening to this port.

I am not sure what is going on, could you please help resolving this issue.

FYI:  I am using Jetty version 7, activemq 5.5, camel 2.8.2,spring
3.0.x,geronimo-servlet 1.2

Thanks for your response.



--
View this message in context: http://camel.465427.n5.nabble.com/BindException-with-Embedded-Jetty-for-camel-web-app-tp5433991p5433991.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message