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.

Deploying pbejbclient

3 posts in EJB Client Last posting was on 2003-11-11 01:34:50.0Z
Kelly Hart Posted on 2003-10-06 19:16:52.0Z
From: "Kelly Hart" <khart@ifmc.org>
Newsgroups: sybase.public.powerbuilder.ejbclient
Organization: 207.108.42.8
X-Newsreader: AspNNTP 1.50 (Tri Hoang)
Subject: Deploying pbejbclient
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: transinc-win02.netoptex.com
X-Original-NNTP-Posting-Host: transinc-win02.netoptex.com
Message-ID: <3f81bfa4$1@forums-1-dub>
Date: 6 Oct 2003 12:16:52 -0700
X-Trace: forums-1-dub 1065467812 206.169.167.22 (6 Oct 2003 12:16:52 -0700)
X-Original-Trace: 6 Oct 2003 12:16:52 -0700, transinc-win02.netoptex.com
Lines: 44
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:163
Article PK: 424356

I have created a small one window app (pbcrypto.exe). It uses the ejbclient to
call a java class that encrypts and decrypts a string. The window has 2 sle's
and 2 buttons (encrypt & decrypt).
In the open event for the window I have:

integer li_rc
i_jvm = create javavm
string classpath = 'bcprov-jdk14-118.jar;PBCrypto.jar;pbejbclient90.jar'
li_rc = i_jvm.createjavavm(classpath,true)
if li_rc < 0 then
Messagebox('rc',li_rc)
end if

It works fine in Powerbuilder and it works fine if I run the executable that was
created. However when I copy everything I thought was needed to deploy on
another machine to a single directory and remove the ...\shared\powerbuilder
directory from the path statement, it no longer works. I get a -1 from the
createjavavm().

I go to a dos prompt and type in:

set path=c:\sybase\shared\jdk1.4.1_01\bin\client;
pbcrypto.exe

Here are all the files in the directory:

bcprov-jdk14-118.jar
cart.bin
libjcc.dll
libjsybheap.dll
pbcrypto.exe
PBCrypto.jar
pbejbclient90.dll
pbejbclient90.jar
pbejbclient90.pbd
pbjvm90.dll
pbvm90.dll

What am I missing?

Thanks in advance
Kelly
---== Posted via the PFCGuide Web Newsreader ==---
http://www.pfcguide.com/_newsgroups/group_list.asp


Kelly Hart Posted on 2003-10-08 13:45:44.0Z
From: "Kelly Hart" <khart@ifmc.org>
Newsgroups: sybase.public.powerbuilder.ejbclient
Organization: 207.108.42.8
References: <3f81bfa4$1@forums-1-dub>
X-Newsreader: AspNNTP 1.50 (Tri Hoang)
Subject: Re: Deploying pbejbclient
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: transinc-win02.netoptex.com
X-Original-NNTP-Posting-Host: transinc-win02.netoptex.com
Message-ID: <3f841508$1@forums-1-dub>
Date: 8 Oct 2003 06:45:44 -0700
X-Trace: forums-1-dub 1065620744 206.169.167.22 (8 Oct 2003 06:45:44 -0700)
X-Original-Trace: 8 Oct 2003 06:45:44 -0700, transinc-win02.netoptex.com
Lines: 59
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:165
Article PK: 424358

I replaced

set path=c:\sybase\shared\jdk1.4.1_01\bin\client;

with

set path=c:\progra~1\java\jre1.4.2_01\bin\client;

And it works fine now.


On 6 Oct 2003 12:16:52 -0700,
in sybase.public.powerbuilder.ejbclient

Kelly Hart <khart@ifmc.org> wrote:
>I have created a small one window app (pbcrypto.exe). It uses the ejbclient to
>call a java class that encrypts and decrypts a string. The window has 2 sle's
>and 2 buttons (encrypt & decrypt).
>In the open event for the window I have:
>
>integer li_rc
>i_jvm = create javavm
>string classpath = 'bcprov-jdk14-118.jar;PBCrypto.jar;pbejbclient90.jar'
>li_rc = i_jvm.createjavavm(classpath,true)
>if li_rc < 0 then
> Messagebox('rc',li_rc)
>end if
>
>It works fine in Powerbuilder and it works fine if I run the executable that
was
>created. However when I copy everything I thought was needed to deploy on
>another machine to a single directory and remove the ...\shared\powerbuilder
>directory from the path statement, it no longer works. I get a -1 from the
>createjavavm().
>
>I go to a dos prompt and type in:
>
>set path=c:\sybase\shared\jdk1.4.1_01\bin\client;
>pbcrypto.exe
>
>Here are all the files in the directory:
>
>bcprov-jdk14-118.jar
>cart.bin
>libjcc.dll
>libjsybheap.dll
>pbcrypto.exe
>PBCrypto.jar
>pbejbclient90.dll
>pbejbclient90.jar
>pbejbclient90.pbd
>pbjvm90.dll
>pbvm90.dll
>
>What am I missing?
>
>Thanks in advance
>Kelly
>---== Posted via the PFCGuide Web Newsreader ==---
>http://www.pfcguide.com/_newsgroups/group_list.asp


Mohammed Khan Posted on 2003-11-11 01:34:50.0Z
Sender: 77a0.3fb03c6f.1804289383@sybase.com
From: Mohammed Khan
Newsgroups: sybase.public.powerbuilder.ejbclient
Subject: Re: Deploying pbejbclient
X-Mailer: WebNews to Mail Gateway v1.1s
Message-ID: <3fb03cba.77a3.846930886@sybase.com>
References: <3f81bfa4$1@forums-1-dub><3f841508$1@forums-1-dub>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 10 Nov 2003 17:34:50 -0800
X-Trace: forums-1-dub 1068514490 10.22.241.41 (10 Nov 2003 17:34:50 -0800)
X-Original-Trace: 10 Nov 2003 17:34:50 -0800, 10.22.241.41
Lines: 80
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:189
Article PK: 424379

I am also getting the same -1 error from the createjavavm()
when deploy the application on the user's machines. I set
the path as given "c:\progra~1\java\jre1.4.1_05\bin\client",
after installing java runtime (ver 1.4.1_05) from Sun. But
still getting the same error.

The environment on the user machince is:
PowerBuilder Application Exe
PB deployment kit
JBoss open source client for Tandem System
Java Runtime
with Oracle Backend

Is there any problem with JBoss or
Is there any conflict between jre and jboss
What will be the solution to it
What am I missing in the environment for the client.

Thanks for the help

> I replaced
>
> set path=c:\sybase\shared\jdk1.4.1_01\bin\client;
>
> with
>
> set path=c:\progra~1\java\jre1.4.2_01\bin\client;
>
> And it works fine now.
>
>
> On 6 Oct 2003 12:16:52 -0700,
> in sybase.public.powerbuilder.ejbclient
> Kelly Hart <khart@ifmc.org> wrote:
> >I have created a small one window app (pbcrypto.exe). It
> uses the ejbclient to >call a java class that encrypts and
> decrypts a string. The window has 2 sle's >and 2 buttons
> (encrypt & decrypt). >In the open event for the window I
> have: >
> >integer li_rc
> >i_jvm = create javavm
> >string classpath = 'bcprov-jdk14-118.jar;PBCrypto.jar
> ;pbejbclient90.jar' >li_rc = i_jvm.createjavavm(classpath
> ,true) >if li_rc < 0 then
> > Messagebox('rc',li_rc)
> >end if
> >
> >It works fine in Powerbuilder and it works fine if I run
> the executable that was
> >created. However when I copy everything I thought was
> needed to deploy on >another machine to a single directory
> and remove the ...\shared\powerbuilder >directory from the
> path statement, it no longer works. I get a -1 from the
> >createjavavm(). >
> >I go to a dos prompt and type in:
> >
> >set path=c:\sybase\shared\jdk1.4.1_01\bin\client;
> >pbcrypto.exe
> >
> >Here are all the files in the directory:
> >
> >bcprov-jdk14-118.jar
> >cart.bin
> >libjcc.dll
> >libjsybheap.dll
> >pbcrypto.exe
> >PBCrypto.jar
> >pbejbclient90.dll
> >pbejbclient90.jar
> >pbejbclient90.pbd
> >pbjvm90.dll
> >pbvm90.dll
> >
> >What am I missing?
> >
> >Thanks in advance
> >Kelly
> >---== Posted via the PFCGuide Web Newsreader ==---
> >http://www.pfcguide.com/_newsgroups/group_list.asp