2 Replies Latest reply on Jul 30, 2002 1:08 AM by sgturner

    ejb-ref issues after Hot Deployment

    rboston

      I've got a session bean trying to do a lookup of another session bean, very straightforward stuff.
      The first time I start JBOSS things work well.

      After any hot deployment of my jar files, something is messed up. I continually receive a NullPointerException for what previously worked.
      You can't get much simpler than this:
      ctx = new InitialContext();
      Object obj = ctx.lookup("java:comp/env/ejb/NextBean");
      BeanHome mHome = (BeanHome) PortableRemoteObject.narrow(obj, BeanHome.class);

      It's actually happening within the narrow method call.

      HAS ANYONE SEEN THIS BEFORE OR KNOWS OF THE FIX?

      I'm using 3.0 Beta-2, JDK 1.4.

      Thanks

      Richard