Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

Failed to lookup the EJB home interface

2 posts in EJB Client Last posting was on 2003-07-22 15:03:32.0Z
Ajaz Posted on 2003-07-22 11:12:20.0Z
Newsgroups: sybase.public.powerbuilder.ejbclient
From: Ajaz
Date: Tue, 22 Jul 2003 07:12:20 -0400
Subject: Failed to lookup the EJB home interface
Lines: 18
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Message-ID: <359_2447AAD72D0A6A75003D8DC285256D6B.003D8DD285256D6B@webforums>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!webforums.sybase.com!news
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:104
Article PK: 424301

I am getting an error while calling the below given code.

g_HelloHome=g_EJBConn.lookup("kpx_kastlesession", "Kastle",
"com.kastle.kastleSessionhome")

What can be the cause?, even i want to know how to get the "homeclass"
value form websphere. I might be passing wrong homeclass value. JNDIname is
right.

I am using PB9.0 Build 5500
WinXP SP1
Websphere 5.0
JDK 1.4

Do i need to have some Webspehere client installation on each desktop from
where we want to run/use this EJB located on diff app server.

Thanks
Ajaz


Jim O'Neil [Sybase] Posted on 2003-07-22 15:03:32.0Z
Newsgroups: sybase.public.powerbuilder.ejbclient
From: joneil@sybase.com (Jim O'Neil [Sybase])
Subject: Re: Failed to lookup the EJB home interface
Date: Tue, 22 Jul 2003 15:03:32 GMT
Organization: Sybase Technical Support
Reply-To: joneil_REMOVETHISPART@sybase.com
X-Newsreader: Forte Free Agent 1.21/32.243
NNTP-Posting-Host: joneilpc.sybase.com 204.167.42.165
Lines: 27
Message-ID: <359_3f1d51bd.10621803@forums.sybase.com>
References: <359_2447AAD72D0A6A75003D8DC285256D6B.003D8DD285256D6B@webforums>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums-2-dub.sybase.com
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:106
Article PK: 424303

You'll need websphere.jar on the client machine. The home class
should be the same as the remote class with 'Home' at the end, so
check your proxy project to see for what class you generated the
proxy.

I don't think it's getting that far though, because you would get a
ClassNotFound exception versus the failed to lookup EJB home interface
error.

On Tue, 22 Jul 2003 07:12:20 -0400, Ajaz wrote:

>
>I am getting an error while calling the below given code.
>
>g_HelloHome=g_EJBConn.lookup("kpx_kastlesession", "Kastle",
>"com.kastle.kastleSessionhome")
>
>What can be the cause?, even i want to know how to get the "homeclass"
>value form websphere. I might be passing wrong homeclass value. JNDIname is
>right.
>
>I am using PB9.0 Build 5500
>WinXP SP1
>Websphere 5.0
>JDK 1.4
>
>Do i need to have some Webspehere client installation on each desktop from
>where we want to run/use this EJB located on diff app server.
>
>Thanks
>Ajaz

Jim O'Neil
Principal Technical Support Engineer
Sybase, Inc.
Concord, MA