Hi,
I am running my
ejb client in WSAD 5.0.
Code for the client follows:-
-------------------------------------------------------------------
java.util.Hashtable props = new java.util.Hashtable();
props.put(InitialContext.PROVIDER_URL, "iiop://localhost:900/");
props.put(InitialContext.INITIAL_CONTEXT_FACTORY,"com.ibm.websphere.naming.WsnInitialContextFactory");
Context ctx = new InitialContext(props);
Object obj = ctx.lookup("ejb/com/ad/ejb/SimpleSessionHome");
SimpleSessionHome ptxhome = (SimpleSessionHome) PortableRemoteObject.narrow(obj,SimpleSessionHome.class);
-------------------------------------------------------------------
The ejb session bean also is running on the same WSAD 5.0 with WAS 4.0 runtime environment.
I am getting the following exception while executing my client application....................
Nested Exception is java.lang.NoClassDefFoundError: com.ad.ejb.SimpleSessionHome
I added the SimpleSession ejb-jar file to the
java build path while compiling the application itself.
Any help is greatly appreciated.
--
Sailu