Thanks for clarifying. I understand it better now.  so each service in
servicemix needs to be host on a different port. I got this mistaken with
the approach axis takes. I changed the locationUri to
http://localhost:8092/upload and it works now

Thanks,
Nithya



lhe wrote:
> 
> Nithya,
> 
> changing the service name will have no effect at all.
> 
> You have to change the http://localhost:8192/upload/ .into something
> different. Maybe take another port than 8192. Anyway, turn off the
> servicemix and then try to browser localhost:8192 in your browser. If this
> works without smx running, then you have another webserver running.
> 
> The error message you posted here says that Jetty (this is the webserver
> in the case of the tutorial) can't bind the adress
> http://localhost:8192/upload/ for some reason. The only reason I can
> imagine is that another webserver blocks it.
> 
> If nothing works, then just try running this tutorial from a clean service
> mix installation. 
> 
> Regards,
> Lars
> 
> 
> 
> 
> 
> nvijayak wrote:
>> 
>> 
>> thanks, I tried changing the service name in case if there was already
>> another service in that name. But it still gives me the same error. I
>> looked through the code to see if there are any attempts for opening a
>> socket or connection but couldn't find any. I followed the example for
>> htttp-uploader from the tutorial step by step. It uses a HandlerBean and
>> HttpMarsaler class. I wonder if any of these would be causing the
>> problem. 
>> 
>> I started servicemix 3.2.1 as stated in the website, created the
>> http-uploader-sa example and copied it to the hotdeploy directory.
>> 
>> If anyone has seen this problem before and solved I would very much
>> appreciate if you can post how. Also any suggestions for what might me
>> the problem is welcome.
>> 
>> Thanks,
>> Nithya
>> 
>> 
>> 
>> lhe77 wrote:
>>> 
>>> 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-tp14722182s12049p14793068.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to