Am getting this on JBoss 3.2.1 "-c all" (clustered) startup.
10:44:49,133 INFO [HANamingService] Listening on 0.0.0.0/0.0.0.0:1100
Question: should there be an IP address where the 0.0.0.0 is?
I also get an error when I try to subsequently bind to the HA-JNDI.
Question: Is 1. above a problem? If so, what do I need to configure to fix it. If 1. above is ok, is there anything you can think of that would cause the code below to fail?
Note that i've already been able to successfully get session clustering going with a simple example, and so have turned on JGStore, etc, and put in my web app, and am now just having trouble connecting to the HA-JNDI.
Properties prop = new Properties();
prop.put(Context.PROVIDER_URL, "w2k-dev01:1100"); //HA-JNDI port.
InitialContext ic = new InitialContext(prop);
NamingContext nc = (NamingContext) ic.lookup(""); <== fails
Error message received is:
0 [main] WARN org.jnp.interfaces.NamingContext - Failed to connect to w2k-dev01:1100
javax.naming.CommunicationException: Failed to retrieve stub from server w2k-dev01:1100. Root exception is
java.io.StreamCorruptedException: unexpected block data
I've also tried putting the following into run.bat to see if that helped (but it didn't).
set JAVA_OPTS=%JAVA_OPTS% -Djava.rmi.server.hostname=w2k-dev01
Can you make sure that you have the client JAR for the SAME exact version as the server version?