Accessing EJB through a client
Hello I have created an EJB project and a client to access this EJB.
I am using Eclipse SDK 3.2.2 and Weblogic 9.2
In my client I have the code
Properties prop = new Properties();
prop.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
prop.put(Context.PROVIDER_URL,"t3://localhost:7001" );
InitialContext ctx = new InitialContext(prop);
Object obj = ctx.lookup("VIIC");
System.out.println("After getting EJB name"+obj);
VIICHome h = (VIICHome)PortableRemoteObject.narrow(obj,VIICHome.class);
When the last line is executed I get the following error-
java.lang.NoClassDefFoundError: sessionbean.VIICHome

