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.

EJb Client proxy / WebSphere

11 posts in EJB Client Last posting was on 2003-06-27 15:29:29.0Z
Pierre Posted on 2003-06-13 12:54:37.0Z
Newsgroups: sybase.public.powerbuilder.ejbclient
From: Pierre
Date: Fri, 13 Jun 2003 08:54:37 -0400
Subject: EJb Client proxy / WebSphere
Lines: 30
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Message-ID: <359_8A35B17C59CD8EF00046EB4985256D44.0046EB6B85256D44@webforums>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!webforums.sybase.com!news
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:72
Article PK: 424270

Hi,

I would like to generate an EJB Client proxy with PB9 / Websphere.
I have created an EJB project with Wepshere (the famous HelloWorld's
project).
When I start this project with Websphere, I have any error. I can call the
methods with JSP, without error too.
But, when I want to generate an EJB Client proxy, I have this generation
error : "No binary file 'EJBHome'"

I work with the jdk 1.3.1.
My library list contains pbejbclient90.pbd, pbejbclient90.dll ( and
ejb2pbdll90.dll, why not ?).
The classPath contains :
- pbejbclient90.jar
- websphere.jar
- rt.jar
My proxy's properties are :
- fully qualified remote interface class name :
com.ibm.swosnick.HelloWorld
- classpath : E:\IBM\Application
Developer\workspace\HelloWordEJB\bin

And I can connect me to the Websphere Server (
- INITIAL_CONTEXT_FACTORY =
com.ibm.websphere.naming.WsnInitialContextFactory
- PROVIDER_URL=iiop://localhost:900
)

Who can help me ?

Pierre


bede Posted on 2003-06-13 12:32:59.0Z
Newsgroups: sybase.public.powerbuilder.ejbclient
From: "bede" <bede@nospam.sofico.be>
Subject: Re: EJb Client proxy / WebSphere
Date: Fri, 13 Jun 2003 14:32:59 +0200
Lines: 38
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: uu194-7-38-229.unknown.uunet.be 194.7.38.229
Message-ID: <359_#$qECjaMDHA.218@forums-2-dub>
References: <359_8A35B17C59CD8EF00046EB4985256D44.0046EB6B85256D44@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:73
Article PK: 424269

include the j2ee.jar in your classpath

<Pierre> wrote in message
news:8A35B17C59CD8EF00046EB4985256D44.0046EB6B85256D44@webforums...
> Hi,
>
> I would like to generate an EJB Client proxy with PB9 / Websphere.
> I have created an EJB project with Wepshere (the famous HelloWorld's
> project).
> When I start this project with Websphere, I have any error. I can call the
> methods with JSP, without error too.
> But, when I want to generate an EJB Client proxy, I have this generation
> error : "No binary file 'EJBHome'"
>
> I work with the jdk 1.3.1.
> My library list contains pbejbclient90.pbd, pbejbclient90.dll ( and
> ejb2pbdll90.dll, why not ?).
> The classPath contains :
> - pbejbclient90.jar
> - websphere.jar
> - rt.jar
> My proxy's properties are :
> - fully qualified remote interface class name :
> com.ibm.swosnick.HelloWorld
> - classpath : E:\IBM\Application
> Developer\workspace\HelloWordEJB\bin
>
> And I can connect me to the Websphere Server (
> - INITIAL_CONTEXT_FACTORY =
> com.ibm.websphere.naming.WsnInitialContextFactory
> - PROVIDER_URL=iiop://localhost:900
> )
>
> Who can help me ?
>
> Pierre


Pierre Posted on 2003-06-13 13:20:47.0Z
Newsgroups: sybase.public.powerbuilder.ejbclient
From: pierre
Date: Fri, 13 Jun 2003 09:20:47 -0400
Subject: Re: EJb Client proxy / WebSphere
Lines: 8
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Message-ID: <359_6C783B53D6388E0E0049507285256D44.00491EC985256D44@webforums>
References: <359_8A35B17C59CD8EF00046EB4985256D44.0046EB6B85256D44@webforums> <359_#$qECjaMDHA.218@forums-2-dub>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!webforums.sybase.com!news
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:75
Article PK: 424272

After including the j2ee.jar in the classpath, I have the same error :

" ---------- Deploy: Deploy of p_ejb_proxy1
Retrieving Powerbuilder Proxies from EJB...
Generation Errors: Error: No binary file 'EJBHome'
Deployment Error: No files returned for package/component:
'com.ibm.swosnick.HelloWorld'. Error code: Unknown. Proxy was not
created.
---------- Finished Deploy of p_ejb_proxy1"


Jim O'Neil [Sybase] Posted on 2003-06-13 12:42:37.0Z
Newsgroups: sybase.public.powerbuilder.ejbclient
From: joneil@sybase.com (Jim O'Neil [Sybase])
Subject: Re: EJb Client proxy / WebSphere
Date: Fri, 13 Jun 2003 12:42:37 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 199.93.179.216
Lines: 36
Message-ID: <359_3ee9c5a2.668891@forums.sybase.com>
References: <359_8A35B17C59CD8EF00046EB4985256D44.0046EB6B85256D44@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:74
Article PK: 424271

You are missing the javax.ejb.* classes in your classpath. Websphere
requires quite a bit more than websphere.jar in the classpath. Take a
look at http://www.sybase.com/detail?id=1024977 for a similar Hello
World example.

On Fri, 13 Jun 2003 08:54:37 -0400, Pierre wrote:

>Hi,
>
>I would like to generate an EJB Client proxy with PB9 / Websphere.
>I have created an EJB project with Wepshere (the famous HelloWorld's
>project).
>When I start this project with Websphere, I have any error. I can call the
>methods with JSP, without error too.
>But, when I want to generate an EJB Client proxy, I have this generation
>error : "No binary file 'EJBHome'"
>
>I work with the jdk 1.3.1.
>My library list contains pbejbclient90.pbd, pbejbclient90.dll ( and
>ejb2pbdll90.dll, why not ?).
>The classPath contains :
> - pbejbclient90.jar
> - websphere.jar
> - rt.jar
>My proxy's properties are :
> - fully qualified remote interface class name :
>com.ibm.swosnick.HelloWorld
> - classpath : E:\IBM\Application
>Developer\workspace\HelloWordEJB\bin
>
>And I can connect me to the Websphere Server (
> - INITIAL_CONTEXT_FACTORY =
>com.ibm.websphere.naming.WsnInitialContextFactory
> - PROVIDER_URL=iiop://localhost:900
>)
>
>Who can help me ?
>
>Pierre

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


Pierre Posted on 2003-06-13 14:19:23.0Z
Newsgroups: sybase.public.powerbuilder.ejbclient
From: Pierre
Date: Fri, 13 Jun 2003 10:19:23 -0400
Subject: Re: EJb Client proxy / WebSphere
Lines: 1
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Message-ID: <359_B67DF14291234FCB004EAE1785256D44.004D218D85256D44@webforums>
References: <359_8A35B17C59CD8EF00046EB4985256D44.0046EB6B85256D44@webforums> <359_3ee9c5a2.668891@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!webforums.sybase.com!news
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:76
Article PK: 424273

Thank's for your response !! It works now !!


Pierre Posted on 2003-06-19 15:42:20.0Z
Newsgroups: sybase.public.powerbuilder.ejbclient
From: Pierre
Date: Thu, 19 Jun 2003 11:42:20 -0400
Subject: Re: EJb Client proxy / WebSphere
Lines: 19
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Message-ID: <359_4B7897F85DE3186D005645E585256D4A.004D218D85256D44@webforums>
References: <359_8A35B17C59CD8EF00046EB4985256D44.0046EB6B85256D44@webforums> <359_3ee9c5a2.668891@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!webforums.sybase.com!news
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:79
Article PK: 424275

Hello,

I've a new problem : the lookup instruction doesn't work ...
The code is : g_EJBConn.lookup("HelloWorldHome",
"HelloWorld/sayHelloWorld1","com.ibm.swosnick.HelloWorldHome")

with :

HelloWorldHome : Home interface (Websphere)
HelloWorld/sayHelloWorld1 : JNDI name
com.ibm.swosnick.HelloWorldHome : home interface name

The result is :
NamingException raised: Failed to lookup the EJB home interface:
com.ibm.swosnick.HelloWorldHome - Error during resolve

Could anyone help me ?

Pierre


Jim O'Neil [Sybase] Posted on 2003-06-19 22:25:57.0Z
Newsgroups: sybase.public.powerbuilder.ejbclient
From: joneil@sybase.com (Jim O'Neil [Sybase])
Subject: Re: EJb Client proxy / WebSphere
Date: Thu, 19 Jun 2003 22:25:57 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 10.18.61.121
Lines: 20
Message-ID: <359_3ef2385a.33035142@forums.sybase.com>
References: <359_8A35B17C59CD8EF00046EB4985256D44.0046EB6B85256D44@webforums> <359_3ee9c5a2.668891@forums.sybase.com> <359_4B7897F85DE3186D005645E585256D4A.004D218D85256D44@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:81
Article PK: 424277

Have you confimed the JNDI name is correct via the WebSphere admin
console.

On Thu, 19 Jun 2003 11:42:20 -0400, Pierre wrote:

>Hello,
>
> I've a new problem : the lookup instruction doesn't work ...
> The code is : g_EJBConn.lookup("HelloWorldHome",
>"HelloWorld/sayHelloWorld1","com.ibm.swosnick.HelloWorldHome")
>
>with :
>
> HelloWorldHome : Home interface (Websphere)
> HelloWorld/sayHelloWorld1 : JNDI name
> com.ibm.swosnick.HelloWorldHome : home interface name
>
> The result is :
> NamingException raised: Failed to lookup the EJB home interface:
>com.ibm.swosnick.HelloWorldHome - Error during resolve
>
> Could anyone help me ?
>
> Pierre

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


Pierre Posted on 2003-06-27 06:56:51.0Z
Newsgroups: sybase.public.powerbuilder.ejbclient
From: pierre
Date: Fri, 27 Jun 2003 02:56:51 -0400
Subject: Re: EJb Client proxy / WebSphere
Lines: 1
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Message-ID: <359_E3A643E2827748C300262A1685256D52.00833D6985256D4A@webforums>
References: <359_8A35B17C59CD8EF00046EB4985256D44.0046EB6B85256D44@webforums> <359_3ee9c5a2.668891@forums.sybase.com> <359_4B7897F85DE3186D005645E585256D4A.004D218D85256D44@webforums> <359_3ef2385a.33035142@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!webforums.sybase.com!news
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:86
Article PK: 424284

The JNDI name is 'HelloWorldHome'. I work with Websphere 5.0.1.


Jim O'Neil [Sybase] Posted on 2003-06-27 15:17:32.0Z
Newsgroups: sybase.public.powerbuilder.ejbclient
From: joneil@sybase.com (Jim O'Neil [Sybase])
Subject: Re: EJb Client proxy / WebSphere
Date: Fri, 27 Jun 2003 15:17: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 10.18.61.121
Lines: 9
Message-ID: <359_3efc5ff1.3880549@forums.sybase.com>
References: <359_8A35B17C59CD8EF00046EB4985256D44.0046EB6B85256D44@webforums> <359_3ee9c5a2.668891@forums.sybase.com> <359_4B7897F85DE3186D005645E585256D4A.004D218D85256D44@webforums> <359_3ef2385a.33035142@forums.sybase.com> <359_E3A643E2827748C300262A1685256D52.00833D6985256D4A@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:87
Article PK: 424283

Sorry Pierre, I've lost the previous posting, so am not sure of the
context of your question here. Can you clarify?

Thanks

On Fri, 27 Jun 2003 02:56:51 -0400, pierre wrote:

>The JNDI name is 'HelloWorldHome'. I work with Websphere 5.0.1.

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


Matthew Chestnut Posted on 2003-06-27 15:29:29.0Z
Newsgroups: sybase.public.powerbuilder.ejbclient
From: Matthew Chestnut <NOSPAM_matthew_chestnut@hotmail.com>
Subject: Re: EJb Client proxy / WebSphere
Date: Fri, 27 Jun 2003 11:29:29 -0400
X-Newsreader: Forte Free Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 65.212.74.40
Lines: 32
Message-ID: <359_nloofv4pld8reua9lopb7nuracqv57qlhm@4ax.com>
References: <359_8A35B17C59CD8EF00046EB4985256D44.0046EB6B85256D44@webforums> <359_3ee9c5a2.668891@forums.sybase.com> <359_4B7897F85DE3186D005645E585256D4A.004D218D85256D44@webforums> <359_3ef2385a.33035142@forums.sybase.com> <359_E3A643E2827748C300262A1685256D52.00833D6985256D4A@webforums> <359_3efc5ff1.3880549@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums-2-dub.sybase.com
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:88
Article PK: 424287

Jim, Is this what you're missing?

Have you confimed the JNDI name is correct via the WebSphere admin
console.

On Thu, 19 Jun 2003 11:42:20 -0400, Pierre wrote:

>Hello,
>
> I've a new problem : the lookup instruction doesn't work ...
> The code is : g_EJBConn.lookup("HelloWorldHome",
>"HelloWorld/sayHelloWorld1","com.ibm.swosnick.HelloWorldHome")
>
>with :
>
> HelloWorldHome : Home interface (Websphere)
> HelloWorld/sayHelloWorld1 : JNDI name
> com.ibm.swosnick.HelloWorldHome : home interface name
>
> The result is :
> NamingException raised: Failed to lookup the EJB home interface:
>com.ibm.swosnick.HelloWorldHome - Error during resolve
>
> Could anyone help me ?
>
> Pierre

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



On Fri, 27 Jun 2003 15:17:32 GMT, joneil@sybase.com (Jim O'Neil
[Sybase]) wrote:

>Sorry Pierre, I've lost the previous posting, so am not sure of the
>context of your question here. Can you clarify?
>
>Thanks
>
>On Fri, 27 Jun 2003 02:56:51 -0400, pierre wrote:
>
>>The JNDI name is 'HelloWorldHome'. I work with Websphere 5.0.1.
>
>Jim O'Neil
>Principal Technical Support Engineer
>Sybase, Inc.
>Concord, MA


Pierre Posted on 2003-06-19 16:14:35.0Z
Newsgroups: sybase.public.powerbuilder.ejbclient
From: Pierre
Date: Thu, 19 Jun 2003 12:14:35 -0400
Subject: Re: EJb Client proxy / WebSphere
Lines: 26
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Message-ID: <359_E7F2EBF3F4B3DA2A005939DB85256D4A.0057B52185256D4A@webforums>
References: <359_8A35B17C59CD8EF00046EB4985256D44.0046EB6B85256D44@webforums> <359_3ee9c5a2.668891@forums.sybase.com> <359_4B7897F85DE3186D005645E585256D4A.004D218D85256D44@webforums>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!webforums.sybase.com!news
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:80
Article PK: 424278

Hello,
I've a new problem : the lookup instruction doesn't work ...
The code is : g_EJBConn.lookup("HelloWorldHome",
"HelloWorld/sayHelloWorld1","com.ibm.swosnick.HelloWorldHome")

with :

HelloWorldHome : Home interface (Websphere)
HelloWorld/sayHelloWorld1 : JNDI name
com.ibm.swosnick.HelloWorldHome : home interface name

The result is :
NamingException raised: Failed to lookup the EJB home interface:
com.ibm.swosnick.HelloWorldHome - Error during resolve

Could anyone help me ?

Pierre

PS : When I close and open PB, I've a new error : Exception raised: Failed
to lookup the EJB home interface: com.ibm.swosnick.HelloWorld
sayHelloWorld1


Pierre