When attempting to connect to Gen 8.6 EJBs deployed on WebSphere Application Server (WAS) version 9.0.5 from a Gen GUI C client via the CFB Server Converter service the following format error is returned:
TIREJB10: Error finding 'TEST_SERVER'. java.lang.Exception: 'call' method not found on org.omg.stub.java.rmi._Remote_Stub:IOR:00bdbdbd00000033524d493a6d5f32303334353035382e544553545f5345525645525f52656d6f74653a3030303030303030303030303030303000bd000000010000000000000128000102bd000000157461796e6530322d67783238302e63612e636f6d00bd238c000000944a4d4249000000124773e3aa37643062633737336533616166633334000000240000007049454a5002000bfb401c077365727665723103454a4200000056adac00020001000000001d0000006d5f32303334353035382e544553545f5345525645525f52656d6f7465acac0002000111200000004346504d4f44454c23544553545352562e6a617223544553545f53455256455200000007000000010000001400bdbdbd0501000100000000000101000000000049424d0a0000000800bd00011600000100000026000000020002bdbd49424d04000000050005020102bdbdbd0000001f0000000400bd0003000000200000000400bd0001000000250000000400bd0003 TEST_SERVER TSRV
Gen Enterprise Java Beans
Gen Converter Service CFB Server
In WAS there is an additional step that should be performed in order for the connection from the CFB converter service to work.
Once the server EJB ear file has been deployed in WebSphere a batch file to create the stub files required for communication with it must be run (createEJBStubs.bat). To do this in a command window on the WAS system, navigate to where the EJB has been deployed e.g.
C:\Program Files\IBM\WebSphere\AppServer\profiles\AppSrv01\installedApps\server1Node01Cell\CFPMODEL.earRun the createEJBStubs.bat file against TESTSRV.jar as follows:
26/07/2024 03:25 PM 1,026,712 genrt.jar
26/07/2024 03:39 PM <DIR> META-INF
26/07/2024 03:37 PM 504,558 TESTSRV.jar
***
"C:\Program Files\IBM\WebSphere\AppServer\bin\createEJBStubs.bat" TESTSRV.jar -newfile
Processing the TESTSRV.jar input file.Command Successful***
This will create a new jar file: TESTSRV_withStubs.jar
This file needs to be placed on the CLASSPATH for the CFB server. So if the CFB server is running on a different system, it is necessary to copy the file to the CFB location and then set the CLASSPATH in the CFB bat file.
Following the steps here: Working With Enterprise JavaBeans > Converter Services > How to Configure the CFB Server
SET CP=.SET CP=%CP%;C:\WebSphere_CFBServer\com.ibm.ws.ejb.thinclient_9.0.jar;C:\WebSphere_CFBServer\com.ibm.ws.orb_9.0.jarSET CP=%CP%;C:\WebSphere_CFBServer\TESTSERV_dpy.jarSET CP=%CP%;C:\WebSphere_CFBServer\TESTSRV_withStubs.jarSET CP=%CP%;C:\WebSphere_CFBServer\genrt.jar;C:\WebSphere_CFBServer\jcfb.jarjava -cp "%CP%" -Djava.security.policy=CFBServer.policy com.ca.gen.jcfbserv.server.CFBServer
That will then allow connection to the EJB via the CFB Server.