> Have you stopped/started the server?
Yes. I even rebooted my machine.
> GlassFish isn't closing any ports and doesn't have
> any mechanism for
> doing that....
Good to hear that.
>Tomcat run on the same machine and your
> application open
> the same port and it works? This is strange....
Tomcat, jboss and weblogic run on the same machine, but not at the same time. They all work.
> Can you wrap your ServerSocket.accpet() method with a
> try/catch and see
> what is the exception you are getting? The exception
> might be swallowed
> so might be a good idea to start with a debugger and
> add a breakpoint on
> the accept() to see how come it exit the loop (that's
> the only way the
> port can be closed).
I will try more. Thanks.
[Message sent by forum member 'weijiang' (weijiang)]
http://forums.java.net/jive/thread.jspa?messageID=263711