0 Replies Latest reply on Apr 18, 2002 9:32 PM by Peter Moran

    ClassCastException with JBoss and Tomcat

    Peter Moran Newbie

      This issues has been posted before, but possibly in different contexts. No solution appears to have been posted.

      If I place the remote and home interfaces for a bean in jboss/lib/ext, a lookup of the bean from within Tomcat environment causes a ClassCastException. Removing the lib/ext classes lets the lookup work fine.

      Using JBoss 2.4.4 Tomcat 4.0.1. Beans are deployed as an ear, while interfaces (required by MBeans) are in a jar in lib/ext.

      Thanks,
      Peter

      java.lang.ClassCastException
      at com.sun.corba.se.internal.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:293)
      at javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:134)
      ...