dev@glassfish.java.net

Re: Multiple instances of the same domain

From: Byron Nevins <Byron.Nevins_at_Sun.COM>
Date: Tue, 04 Mar 2008 12:23:42 -0800
I definitely do not.  And the String does not appear anywhere in v3 (.java) files...


Binod wrote:
Hope you dont have SO_REUSEADDR set to true. In windows, that would allow you to bind
socket to same port.

- Binod.

On 04-Mar-08, at 9:21 PM, Jeanfrancois Arcand wrote:

Byron,

This is impossible for TCP or you have found major flaw inside the JDK ;-) But remember we are also supporting UDP now, so if you do a netstat -an, you will see that all UDP listeners *can* bind to the same port. Can you double check?

Thanks

-- Jeanfrancois

Byron Nevins wrote:
Yes -- this is on Windows XP...
Jerome Dochez wrote:
I am still getting a port conflict :

SEVERE: doSelect exception
java.net.BindException: Address already in use: 8181=com.sun.grizzly.http.SelectorThreadHandler@2e6a28
   at com.sun.grizzly.TCPSelectorHandler.preSelect(TCPSelectorHandler.java:323)
   at com.sun.grizzly.Controller.doSelect(Controller.java:317)
   at com.sun.grizzly.SelectorHandlerRunner.run(SelectorHandlerRunner.java:68)
   at java.lang.Thread.run(Thread.java:613)
Mar 3, 2008 9:36:56 PM com.sun.grizzly.Controller doSelect
SEVERE: doSelect exception
java.net.BindException: Address already in use: 4848=com.sun.grizzly.http.SelectorThreadHandler@5be21d
   at com.sun.grizzly.TCPSelectorHandler.preSelect(TCPSelectorHandler.java:323)
   at com.sun.grizzly.Controller.doSelect(Controller.java:317)
   at com.sun.grizzly.SelectorHandlerRunner.run(SelectorHandlerRunner.java:68)
   at java.lang.Thread.run(Thread.java:613)
Mar 3, 2008 9:36:56 PM com.sun.grizzly.Controller doSelect
SEVERE: doSelect exception
java.net.BindException: Address already in use: 8080=com.sun.grizzly.http.SelectorThreadHandler@297ba3
   at com.sun.grizzly.TCPSelectorHandler.preSelect(TCPSelectorHandler.java:323)
   at com.sun.grizzly.Controller.doSelect(Controller.java:317)
   at com.sun.grizzly.SelectorHandlerRunner.run(SelectorHandlerRunner.java:68)
   at java.lang.Thread.run(Thread.java:613)
Mar 3, 2008 9:36:56 PM com.sun.grizzly.standalone.StaticResourcesAdapter <init>


is this on windows ?

jerome

On Mar 3, 2008, at 3:56 PM, Byron Nevins wrote:

1) bring up 3 console windows
2) In each window start the default domain (e.g. asadmin start-domain)

All 3 copies of the same domain successfully start.
netstat reveals that all 3 are listening on the same ports.

I believe this would be impossible in V2 because of port conflicts.
Is this a new grizzly feature?

--
Byron Nevins Work 408-276-4089, Home 650-359-1290, Cell 650-784-4123 - Sun Microsystems, Inc.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: dev-help@glassfish.dev.java.net



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: dev-help@glassfish.dev.java.net


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: dev-help@glassfish.dev.java.net



-- 
Byron Nevins Work 408-276-4089, Home 650-359-1290, Cell 650-784-4123 - Sun Microsystems, Inc.