Gen GUI client error TIREJB10 connecting via CFB server to WebSphere EJB
search cancel

Gen GUI client error TIREJB10 connecting via CFB server to WebSphere EJB

book

Article ID: 50524

calendar_today

Updated On:

Products

Gen Gen - Run Time Distributed

Issue/Introduction

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:00bdbdbd00000033524d493a6d5f323033343530
35382e544553545f5345525645525f52656d6f74653a3030303030303030303030303030303000bd
000000010000000000000128000102bd000000157461796e6530322d67783238302e63612e636f6d
00bd238c000000944a4d4249000000124773e3aa3764306263373733653361616663333400000024
0000007049454a5002000bfb401c077365727665723103454a4200000056adac0002000100000000
1d0000006d5f32303334353035382e544553545f5345525645525f52656d6f7465acac0002000111
200000004346504d4f44454c23544553545352562e6a617223544553545f53455256455200000007
000000010000001400bdbdbd0501000100000000000101000000000049424d0a0000000800bd0001
1600000100000026000000020002bdbd49424d04000000050005020102bdbdbd0000001f00000004
00bd0003000000200000000400bd0001000000250000000400bd0003
TEST_SERVER TSRV

Environment

Gen Enterprise Java Beans
Gen Converter Service CFB Server 

Resolution

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.ear
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

Run the createEJBStubs.bat file against TESTSRV.jar as follows:

***
"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.jar
SET CP=%CP%;C:\WebSphere_CFBServer\TESTSERV_dpy.jar
SET CP=%CP%;C:\WebSphere_CFBServer\TESTSRV_withStubs.jar
SET CP=%CP%;C:\WebSphere_CFBServer\genrt.jar;C:\WebSphere_CFBServer\jcfb.jar
java -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.

Additional Information