posted 13 years ago
Hi All,
As i have mentioned in the above post :
in the first deploy of the war file , it works fine but whenever i redeploy the war file
i will get the error : java.net.BindException: Address already in use
it seems that port will be still opened even so if I undeploy the war file
important points to mention :
1) this problem does not arise under windows
2)this problem appears under linux : after undeploy of the war file i used to check whether the port still in use or not using 2 following commands
a) it will be still listening if i use the command
#netstat -anp | grep 11900
tcp 0 0 0.0.0.0:11900 0.0.0.0:* LISTEN -
b) the port appears to be unused if i use the command
#lsof -i:11900
any one tell me how to fix the issue
here is the full code :
TCPServerServlet.java
TCPServer.java
ServerDataEvent.java
RspHandler.java
NioServer.java
EchoWorker.java
ChangeRequest.java