Description:
When Installing Generated Java proxy in IBM Websphere , have problem to find JNDI lookup of EJB
An exception occurred calling Myserver.execute method
Exception: com.ca.gen76.csu.exception.CSUException
Description: [Function: EJBRMIDynamicCoopFlow.getHomeInterface]lookup("MYSERVER") threw: "javax.naming.NameNotFoundException: Context: basmu01cNode01Cell/nodes/basmu01cNode01/servers/server1, name: MYSERVER: First component in name MYSERVER not found. [Root exception is org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0]" root cause: "org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0"
Solution:
The problem is that when an EJB ear file is deployed, IBM WebSphere is building it's own EJB stub files. The Gen Proxy will need to use these WebSphere stub files instead of the Gen-generated _dpy files.
To get the Application to work, just add the location of the WebSphere-deployed EJB jar files to the Proxy's CLASSPATH. To get the JSP
sample to work, Add a Shared Library definition in WebSphere which also pointed to this location. Then in the Proxy application on WebSphere, you need to tell it to use this Shared Library and restart WebSphere to get this change to be picked up.
So the steps to get the Proxy JSP sample working are following:
<Please see attached file for image>
<Please see attached file for image>
<Please see attached file for image>
<Please see attached file for image>
<Please see attached file for image>