1 Reply Latest reply on Oct 19, 2004 3:22 AM by sal ingrilli

    URJENT-ClassCastException on home

    Shai Bentin Newbie

      I have a wierd situation. I have a class that when it initializes it finds a home object for some local bean. After first deployment it works fine without any problem, however if I hot deploy, it than throws a classCastException on the home object.

      The program flow is that a timer checks a flag, which if on, make it instanciate this class, on it's initialization I do this:

      ctx = new InitialContext();
      folderHome = (FolderLocalHome)(ctx.lookup(FolderLocalHome.JNDI_NAME));

      I get the exception on the second line.

      If I stop the server and restart everything works fine.

      Any ideas why this could happen?