1 Reply Latest reply on Dec 18, 2002 6:03 AM by pepek

    InvalidClassException -  please help

    pepek

      Hi,
      I just downloaded jboss 3.0.4 and when im trying to lookup jndi context by following lines (calling is from servlet)

      try {
      Object res = myJNDIContext.lookup(name);
      } catch (Exception e) {
      System.out.println("[ERROR] " + e.toString());
      }

      then I got this error message:
      ----------------------------------------------------
      [ERROR] javax.naming.CommunicationException [Root exception is java.io.InvalidClassException: org.jboss.invocation.jrmp.inter
      faces.JRMPInvokerProxy; Local class not compatible: stream classdesc serialVersionUID=-3713605626489646730 local class serialVersi
      onUID=4948756606502181321]
      ----------------------------------------------------

      I use TOMCAT 4.0 and JRE 1.3.1
      I suppose there will be a mismash with libraries..

      Thanks
      Petr



        • 1. Re: InvalidClassException -  please help
          pepek

          I forgot,

          for InitialContext is use this parameters

          hashtable_1_1_.put("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory");
          hashtable_1_1_.put("java.naming.provider.url", "localhost:1099");
          hashtable_1_1_.put("java.naming.factory.url.pkgs", "org.jboss.naming:org.jnp.interfaces");