0 Replies Latest reply on May 15, 2012 7:00 PM by Irina Gotman

    java.lang.ClassCastException: $Proxy10 cannot be cast to org.omg.CORBA.Object

    Irina Gotman Newbie

      I am migrating my application from JBoss 5 to JBoss 7 (jboss-as-7.1.1.Final). And using JNDI:

      ctx = new InitialContext (jndiProperties);

      obj = ctx.lookup(jndiName +"!"+ className);
      ...

      home = (EJBHome)PortableRemoteObject.narrow(obj, EJBHome.class);

      This line gives me ClassCastException (see attached).

      Please, help!