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 same without a hot deploy.
system runs ok and after 19 hrs on average i start getting ClassCastExceptions telling me that what was supposed to come back as a Home interface is really a java.lang.String!