Nithya, the error says that the address you try to bind is already in use. "Address already in use: bind"
So please make sure, that you don't run another webserver blocking address http://localhost:8192/upload/ . Hopefully this will help you. Regards, Lars nvijayak wrote: > > Hi, > > I followed the steps in the servicemix tutorial to create the http-upload > (http://servicemix.apache.org/7-intermediate-writing-a-http-upload-application.html) > > When I hotdeploy the service assembly I get a bind exception. Has anyone > face this before? > > I am copying a part of the servicemix output when I copy the upload-sa > into hotdeploy directory: > > ERROR - AutoDeploymentService - Failed to update Service > Assembly: http > -upload-sa > java.lang.Exception: <?xml version="1.0" encoding="UTF-8"?> > <jbi-task xmlns="http://java.sun.com/xml/ns/jbi/management-message" > version="1.0 > "> > <jbi-task-result> > <frmwk-task-result> > <frmwk-task-result-details> > <task-result-details> > <task-id>start</task-id> > <task-result>FAILED</task-result> > <message-type>ERROR</message-type> > </task-result-details> > </frmwk-task-result-details> > </frmwk-task-result> > <component-task-result > xmlns="http://java.sun.com/xml/ns/jbi/management-message" >> > <component-name>servicemix-http</component-name> > <component-task-result-details> > <task-result-details> > <task-id>start</task-id> > <task-result>FAILED</task-result> > <message-type>ERROR</message-type> > <task-status-msg> > <msg-loc-info> > <loc-token/> > <loc-message>Unable to start service unit</loc-message> > </msg-loc-info> > </task-status-msg> > <exception-info> > <nesting-level>1</nesting-level> > <msg-loc-info> > <loc-token/> > <loc-message>Address already in > use: bin > d</loc-message> > > <stack-trace><![CDATA[java.net.BindExcep > tion: Address already in use: bind > at sun.nio.ch.Net.bind(Native Method) > at > sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java: > 119) > at > sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59) > at > org.mortbay.jetty.nio.SelectChannelConnector.open(SelectChannelConnec > tor.java:211) > at > org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelCon > nector.java:309) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: > 40) > at org.mortbay.jetty.Server.doStart(Server.java:228) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: > 40) > at > org.apache.servicemix.http.jetty.JettyContextManager.createServer(Jet > tyContextManager.java:286) > at > org.apache.servicemix.http.jetty.JettyContextManager.createContext(Je > ttyContextManager.java:142) > at > org.apache.servicemix.http.endpoints.HttpConsumerEndpoint.start(HttpC > onsumerEndpoint.java:186) > at > org.apache.servicemix.common.endpoints.SimpleEndpoint.activate(Simple > Endpoint.java:55) > at > org.apache.servicemix.common.ServiceUnit.start(ServiceUnit.java:53) > at > org.apache.servicemix.common.BaseServiceUnitManager.start(BaseService > UnitManager.java:151) > at > org.apache.servicemix.jbi.framework.ServiceUnitLifeCycle.start(Servic > eUnitLifeCycle.java:103) > at > org.apache.servicemix.jbi.framework.ServiceAssemblyLifeCycle.start(Se > rviceAssemblyLifeCycle.java:132) > at > org.apache.servicemix.jbi.framework.DeploymentService.start(Deploymen > tService.java:378) > at > org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServi > ceAssembly(AutoDeploymentService.java:352) > at > org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchi > ve(AutoDeploymentService.java:253) > at > org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDire > ctory(AutoDeploymentService.java:647) > at > org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800( > AutoDeploymentService.java:60) > at > org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoD > eploymentService.java:611) > at java.util.TimerThread.mainLoop(Timer.java:512) > at java.util.TimerThread.run(Timer.java:462) > ]]></stack-trace> > </msg-loc-info> > </exception-info> > </task-result-details> > </component-task-result-details> > </component-task-result> > </jbi-task-result> > </jbi-task> > > Thanks, > Nithya > -- View this message in context: http://www.nabble.com/bind-error-in-deploying-http-upload-tutorial-tp14722182s12049p14728390.html Sent from the ServiceMix - User mailing list archive at Nabble.com.
