Need help understanding JNDI and a particular ClassCastException in J2EE
问题 I have an enterprise application A and B deployed (in WLS 10.0). A is the "framework", B is a client app. The client issues the following calls: Object o = ctx.lookup(jndiName); // line 1 cf = (ConnectionFactory) o; // line 2 ConnectionFactory is an interface, defined as: public interface ConnectionFactory extends java.io.Serializable, javax.resource.Referenceable { ... } What happens is: If the jar containing the interface class is on the system classpath, line 2 is executed fine If the