2 Replies Latest reply on Apr 30, 2003 10:05 AM by jonmartin

    3.0.6 -> 3.0.7 ClassCastException in PortableRemoteObjectNar

    jonmartin

      I recently upgraded from 3.0.6 to 3.0.7. Now I get ClassCastException when getting home interface of session beans. My code works if it's in another jvm than the jboss ejb container, or when no deployment has been performed after jboss start, it works in the same jvm as well (running jboss/jetty).

      Just to clarify, I have two kinds of clients, one jsp/taglib and one plain java program. The jsp accesses the ejbs. When jboss has just started it works. If I redeploy, it stops working, giving a class cast exception in the codeline:

      SesCMSHome home = (SesCMSHome)PortableRemoteObject.narrow(getInitialContext().lookup("SesCMS"), SesCMSHome.class);

      Both clients use the exact same util-class to do the InitialContext stuff and narrowing mumbojumbo.

      If I restart jboss, the jsp-client will work again. Since I'm using jboss/jetty bundle, everything runs in the same jvm.

      When I use a separate java program as client, everything works just fine, even after a deployment.

      When I redeploy, I deploy an EAR containing both war file with taglib and jsp, and the jar file with the ejbs.

      See also http://www.jboss.org/modules/bb/index.html?module=bb&op=viewtopic&t= anything changed between 3.0.6 and 3.0.7 that might cause this?

      --
      Jon Martin Solaas