You are trying to talk into and send out of the same port number. This ties
up the port for either the input or output and then the attempt to use it
for output or input respectively gives a Bind exception because the port is
already in use. Any time you try and use any port that is already in use,
you will see this exception.
The tunnel works by having one end connected to the port your trying to
send data out to and another port sitting open to receive input (similar in
concept to how UNIX command tee works). If you were trying to send output
to a server located on host CorePortal10 at port 8090, and you wanted to
send input on an OPEN---unused---port of say, 8091, then you would use the
following command when sitting in the directory containing the soap.jar
file:
java -cp soap.jar org.apache.soap.util.net.TcpTunnelGui 8091 CorePortal10 8090
Note that:
E:\LocalCVSRepository\SourceCode\jars>java -cp soap.jar
org.apache.soap.util.net.TcpTunnelGui
provides:
Usage: java TcpTunnelGui listenport tunnelhost tunnelport
-=> Gregg <=-
---
Gregg Leichtman, Ph.D.
Quintiles Intelligent Imaging
521 Plymouth Road, Suite 115
Plymouth Meeting, PA 19462
Opinions expressed in this message are my own and in no way reflect Quintiles
Transnational policy.
"Bardman, Jody" <[EMAIL PROTECTED]> on 07/27/2001 08:17:52 AM
Please respond to [EMAIL PROTECTED]
To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
cc:
Subject: TcpTunnelGui program
Hi, I am new to Soap and Java.
My need is to have a Java Soap client talking to a MS Soap Server.
I am having trouble with accessing the MS Soap Server (I will be sending
that problem shortly).
I am using JRun which defaults to port 8100.
My computer name is CorePortal10.
When I want to run the rpcrouter:
http://CorePortal10:8100/soap/servlet/rpcrouter
For debugging purposes, I want to use TcpTunnelGui but I am not sure of the
parameters that I need to pass to it.
I tried running the following command from the DOS prompt:
java org.apache.soap.util.net.TcpTunnelGui 8100 CorePortal10 8100
The program is only displayed for a moment then exits and displays the
following error:
java.net.BindException: Address in use: JVM_Bind
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:397)
at java.net.ServerSocket.<init>(ServerSocket.java:170)
at java.net.ServerSocket.<init>(ServerSocket.java:82)
at
org.apache.soap.util.net.TcpTunnelGui$3.run(TcpTunnelGui.java:185)
Thanks for any help.
Jody