I have 2 components using REST/XML to communicate.
When one of them tries to send a message to the other one I get this
exception:
Caused by: com.sun.jersey.api.client.ClientHandlerException:
java.net.BindException: Address already in use: connect
at
com.sun.jersey.client.urlconnection.URLConnectionClientHandler.handle(UR
LConnectionClientHandler.java:128)
at com.sun.jersey.api.client.Client.handle(Client.java:397)
at
com.sun.jersey.api.client.WebResource.handle(WebResource.java:557)
at
com.sun.jersey.api.client.WebResource.access$300(WebResource.java:69)
at
com.sun.jersey.api.client.WebResource$Builder.post(WebResource.java:499)
The thing I don't understand is that I usually receive this exception
when I try to start a second web container listening on the same port as
another one on the same machine.
Why do I get that exception sending a HTTP POST ?
Thanks in advance...
Pascal