1 Reply Latest reply on May 14, 2003 1:26 AM by Sacha Labourey

    HA -JNDI bind address?

    Greg Newbie

      All,

      1.
      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?

      2.
      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.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
      prop.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");
      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
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1288)


      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