GUI app will not connect via CFB server to Websphere 7 deployed EJBs
search cancel

GUI app will not connect via CFB server to Websphere 7 deployed EJBs

book

Article ID: 50524

calendar_today

Updated On:

Products

Gen Gen - Workstation Toolset Gen - Host Encyclopedia Gen - Run Time Distributed

Issue/Introduction

Description:

When attempting to connect to EJBs deployed on Websphere 7 from a GUI C client via the CFB 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

Solution:

In WAS 7 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 WAS you must then run a batch job which will create the stub files required for communication with it. 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
14/06/2011 10:04 516,900 genrt.80.jar
17/06/2011 13:44 <DIR> META-INF
17/06/2011 13:43 12,876 TESTSRV.jar
2 File(s) 529,776 bytes
3 Dir(s) 52,904,849,408 bytes free

You will see the EJB jar file TESTSRV.jar in the above directory listing.

We need to run the WAS bat job createEJBstubs against this file as follows:

..\..\..\bin\createejbstubs TESTSRV.jar -newfile

Processing the TESTSRV.jar input file.
Command Successful

This will create a new jar file

17/06/2011 13:54 14,425 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. E.g.

SET CP=.
SET CP=%CP%;Z:\WebSphere_CFBServer8\TESTSERV_dpy.jar
SET CP=%CP%;Z:\WebSphere_CFBServer8\TESTSRV_withStubs.jar
SET CP=%CP%;Z:\WebSphere_CFBServer8\genrt.80.jar;Z:\WebSphere_CFBServer8\jcfb80.jar
SET CP=%CP%;Z:\WebSphere_CFBServer8\com.ibm.ws.ejb.thinclient_7.0.0.jar;Z:\WebSphere_CFBServer8\com.ibm.ws.orb_7.0.0.jar
java -cp "%CP%" -Djava.security.policy=CFBServer.policy com.ca.gen80.jcfbserv.server.CFBServer

This will then allow connection to the EJB via the CFB converter service.

Environment

Release:
Component: CGEJB