Re: [JBoss-user] ClassCastException getting home interface from Client

2001-07-02 Thread David Ward
Replace this: UpdateHome updateHome = (UpdateHome)ref; With this: UpdateHome updateHome = (UpdateHome)javax.rmi.PortableRemoteObject.narrow(ref, UpdateHome.class); Not sure if this is your problem, but you should do it to be more correct. Also, *IF* you're going to hardcode thos

[JBoss-user] ClassCastException getting home interface from Client

2001-07-02 Thread Nordahl, David C
I have two client classes using the same classpath, but one gets an error trying to get the home interface. Here is the code: System.setProperty("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory"); System.setProperty("java.naming.provider.url", "localhost:10