This content has been marked as final.
Show 1 reply
-
1. Re: ClassCastException after lookup
echon Apr 12, 2006 6:54 AM (in response to candychow)I would say one problem is the JNDI-Binding you do not specify.
By standard the JNDI-Binding names are
EAR-FILE-BASE-NAME/EJB-CLASS-NAME/local,
EAR-FILE-BASE-NAME/EJB-CLASS-NAME/remote,
EJB-CLASS-NAME/local, EJB-CLASS-NAME/remote
or you specify them@Remote( { HelloWorldServiceRemote.class }) @RemoteBinding(jndiBinding = HelloWorldServiceRemote.JNDI)
and in the interfacepublic interface HelloWorldServiceRemote { public final static String JNDI = "de.tum.sebis.dbis.service.HelloWorldServiceRemote"; public String getHelloWorld(); }
The other problem are missing jars in your classpath for your client.
Regards
Peter