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.

# Multiple Jars?

10 posts in EJB Client Last posting was on 2007-01-17 14:25:40.0Z
From: "Alex" <alexanderhlee@gmail.com>
Newsgroups: sybase.public.powerbuilder.ejbclient
Subject: Multiple Jars?
Date: 12 Jan 2007 07:48:19 -0800
Lines: 36
NNTP-Posting-Host: 71.251.90.231
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
X-Trace: posting.google.com 1168616905 31020 127.0.0.1 (12 Jan 2007 15:48:25 GMT)
NNTP-Posting-Date: Fri, 12 Jan 2007 15:48:25 +0000 (UTC)
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1,gzip(gfe),gzip(gfe)
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:712
Article PK: 424813

Hello all, using PB105 and trying to generate EJB proxies. First thing
is that this java component isn't actually an EJB, but, according to
Sybase documentation, in theory, any Java class can be called as an EJB
as long as you trick PB into thinking it's an EJB.

With that said. I have a jar file (ABC.jar) and in that jar there is a
class I want to call: ABC. I also have the home interface class as
well: ABCHome. Both are in the same package within the jar: abc\def.
So, my two classes are ABC and ABCHome and both are located in abc\def
in ABC.jar

Here's the problem: ABC has a dependancy on javax.xml.soapelement. This
is okay, since I have another jar file with all the related javax
classes in it. But, obviously these classes are in a different package
(and a different jar file, for that matter).

Now, when I set up my project, I have ABC as my EJB class, ABCHome as
my home interface class and C:\myJava\ABC.jar for my classpath.
Additionally, in System Options -> Java I have placed the jars that
ABC.jar depends on (including the jar that contains
javax.xml.soapelement). However, when I attempt to deploy, it says it
cannot find javax.xml.soapelement. Here's the error:

---------- Deploy: Deploy of abc
Retrieving PowerBuilder Proxies from EJB...
Generation Errors: ERROR:Could not find javax.xml.soap.SOAPElement

Deployment Error: No files returned for package/component
'abc.def.ABC'.
Error code: Unknown. Proxy was not created.
---------- Finished Deploy of abc.

Like I said, I think I have my classpaths (the one for the project and
the system-wide one) correct, but it still cannot locate the

Newsgroups: sybase.public.powerbuilder.ejbclient
Subject: Re: Multiple Jars?
Lines: 44
X-Priority: 3
X-MSMail-Priority: Normal
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028
NNTP-Posting-Host: c-69-248-38-201.hsd1.pa.comcast.net
X-Original-NNTP-Posting-Host: c-69-248-38-201.hsd1.pa.comcast.net
Message-ID: <45a82327@forums-1-dub>
Date: 12 Jan 2007 16:09:11 -0700
X-Trace: forums-1-dub 1168646951 69.248.38.201 (12 Jan 2007 16:09:11 -0700)
X-Original-Trace: 12 Jan 2007 16:09:11 -0700, c-69-248-38-201.hsd1.pa.comcast.net
X-Authenticated-User: pb110beta
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:714
Article PK: 424814

Exactly how do you have your home interface defined? Also - what is the
output from JAVAP from both classes ABC and ABCHome ?
Tim.

"Alex" <alexanderhlee@gmail.com> wrote in message
> Hello all, using PB105 and trying to generate EJB proxies. First thing
> is that this java component isn't actually an EJB, but, according to
> Sybase documentation, in theory, any Java class can be called as an EJB
> as long as you trick PB into thinking it's an EJB.
>
> With that said. I have a jar file (ABC.jar) and in that jar there is a
> class I want to call: ABC. I also have the home interface class as
> well: ABCHome. Both are in the same package within the jar: abc\def.
> So, my two classes are ABC and ABCHome and both are located in abc\def
> in ABC.jar
>
> Here's the problem: ABC has a dependancy on javax.xml.soapelement. This
> is okay, since I have another jar file with all the related javax
> classes in it. But, obviously these classes are in a different package
> (and a different jar file, for that matter).
>
> Now, when I set up my project, I have ABC as my EJB class, ABCHome as
> my home interface class and C:\myJava\ABC.jar for my classpath.
> Additionally, in System Options -> Java I have placed the jars that
> ABC.jar depends on (including the jar that contains
> javax.xml.soapelement). However, when I attempt to deploy, it says it
> cannot find javax.xml.soapelement. Here's the error:
>
> ---------- Deploy: Deploy of abc
> Retrieving PowerBuilder Proxies from EJB...
> Generation Errors: ERROR:Could not find javax.xml.soap.SOAPElement
>
> Deployment Error: No files returned for package/component
> 'abc.def.ABC'.
> Error code: Unknown. Proxy was not created.
> ---------- Finished Deploy of abc.
>
> Like I said, I think I have my classpaths (the one for the project and
> the system-wide one) correct, but it still cannot locate the
>

From: "Alex" <alexanderhlee@gmail.com>
Newsgroups: sybase.public.powerbuilder.ejbclient
Subject: Re: Multiple Jars?
Date: 16 Jan 2007 06:10:17 -0800
Lines: 49
NNTP-Posting-Host: 72.77.158.2
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
X-Trace: posting.google.com 1168956623 3221 127.0.0.1 (16 Jan 2007 14:10:23 GMT)
NNTP-Posting-Date: Tue, 16 Jan 2007 14:10:23 +0000 (UTC)
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1,gzip(gfe),gzip(gfe)
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:716
Article PK: 424817

Well I suppose that might be part of the problem. Initially, I had the
home interface as just an empty/dummy class. I thought that would be
enough, since that's what the example on the Sybase website was like,
but now I don't know what it should contain. Any suggestions?

> Exactly how do you have your home interface defined? Also - what is the
> output from JAVAP from both classes ABC and ABCHome ?
> Tim.
>
> "Alex" <alexanderhlee@gmail.com> wrote in message
> > Hello all, using PB105 and trying to generate EJB proxies. First thing
> > is that this java component isn't actually an EJB, but, according to
> > Sybase documentation, in theory, any Java class can be called as an EJB
> > as long as you trick PB into thinking it's an EJB.
> >
> > With that said. I have a jar file (ABC.jar) and in that jar there is a
> > class I want to call: ABC. I also have the home interface class as
> > well: ABCHome. Both are in the same package within the jar: abc\def.
> > So, my two classes are ABC and ABCHome and both are located in abc\def
> > in ABC.jar
> >
> > Here's the problem: ABC has a dependancy on javax.xml.soapelement. This
> > is okay, since I have another jar file with all the related javax
> > classes in it. But, obviously these classes are in a different package
> > (and a different jar file, for that matter).
> >
> > Now, when I set up my project, I have ABC as my EJB class, ABCHome as
> > my home interface class and C:\myJava\ABC.jar for my classpath.
> > Additionally, in System Options -> Java I have placed the jars that
> > ABC.jar depends on (including the jar that contains
> > javax.xml.soapelement). However, when I attempt to deploy, it says it
> > cannot find javax.xml.soapelement. Here's the error:
> >
> > ---------- Deploy: Deploy of abc
> > Retrieving PowerBuilder Proxies from EJB...
> > Generation Errors: ERROR:Could not find javax.xml.soap.SOAPElement
> >
> > Deployment Error: No files returned for package/component
> > 'abc.def.ABC'.
> > Error code: Unknown. Proxy was not created.
> > ---------- Finished Deploy of abc.
> >
> > Like I said, I think I have my classpaths (the one for the project and
> > the system-wide one) correct, but it still cannot locate the
> >

From: Gokhan Demir <gokhan.demir@igonline.biz>
User-Agent: Thunderbird 1.5.0.9 (Windows/20061207)
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.ejbclient
Subject: Re: Multiple Jars?
Content-Type: text/plain; charset=ISO-8859-9; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 85.105.196.163
X-Original-NNTP-Posting-Host: 85.105.196.163
Date: 16 Jan 2007 14:20:05 -0700
X-Trace: forums-1-dub 1168986005 85.105.196.163 (16 Jan 2007 14:20:05 -0700)
X-Original-Trace: 16 Jan 2007 14:20:05 -0700, 85.105.196.163
Lines: 60
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:719
Article PK: 424820

Let me jump here too. It should contain at least one method with
serializable parameters that are the classes that you want to access
from Powerbuilder environment. I often add one dummy method to the
remote interface of a bean like I described above. Powerbuilder
recursively finds the other referenced classes and generates proxies for
them too.

Regards,
Gokhan Demir

Alex wrote:
> Well I suppose that might be part of the problem. Initially, I had the
> home interface as just an empty/dummy class. I thought that would be
> enough, since that's what the example on the Sybase website was like,
> but now I don't know what it should contain. Any suggestions?
>
>> Exactly how do you have your home interface defined? Also - what is the
>> output from JAVAP from both classes ABC and ABCHome ?
>> Tim.
>>
>> "Alex" <alexanderhlee@gmail.com> wrote in message
>>> Hello all, using PB105 and trying to generate EJB proxies. First thing
>>> is that this java component isn't actually an EJB, but, according to
>>> Sybase documentation, in theory, any Java class can be called as an EJB
>>> as long as you trick PB into thinking it's an EJB.
>>>
>>> With that said. I have a jar file (ABC.jar) and in that jar there is a
>>> class I want to call: ABC. I also have the home interface class as
>>> well: ABCHome. Both are in the same package within the jar: abc\def.
>>> So, my two classes are ABC and ABCHome and both are located in abc\def
>>> in ABC.jar
>>>
>>> Here's the problem: ABC has a dependancy on javax.xml.soapelement. This
>>> is okay, since I have another jar file with all the related javax
>>> classes in it. But, obviously these classes are in a different package
>>> (and a different jar file, for that matter).
>>>
>>> Now, when I set up my project, I have ABC as my EJB class, ABCHome as
>>> my home interface class and C:\myJava\ABC.jar for my classpath.
>>> Additionally, in System Options -> Java I have placed the jars that
>>> ABC.jar depends on (including the jar that contains
>>> javax.xml.soapelement). However, when I attempt to deploy, it says it
>>> cannot find javax.xml.soapelement. Here's the error:
>>>
>>> ---------- Deploy: Deploy of abc
>>> Retrieving PowerBuilder Proxies from EJB...
>>> Generation Errors: ERROR:Could not find javax.xml.soap.SOAPElement
>>>
>>> Deployment Error: No files returned for package/component
>>> 'abc.def.ABC'.
>>> Error code: Unknown. Proxy was not created.
>>> ---------- Finished Deploy of abc.
>>>
>>> Like I said, I think I have my classpaths (the one for the project and
>>> the system-wide one) correct, but it still cannot locate the
>>>
>

From: "Alex" <alexanderhlee@gmail.com>
Newsgroups: sybase.public.powerbuilder.ejbclient
Subject: Re: Multiple Jars?
Date: 17 Jan 2007 06:25:40 -0800
Lines: 70
NNTP-Posting-Host: 72.77.158.2
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
X-Trace: posting.google.com 1169043947 13253 127.0.0.1 (17 Jan 2007 14:25:47 GMT)
NNTP-Posting-Date: Wed, 17 Jan 2007 14:25:47 +0000 (UTC)
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1,gzip(gfe),gzip(gfe)
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:721
Article PK: 424822

Thanks everyone for your help. It turns out it was a problem with
incompatible JDKs. The developer that created ABC.jar was using JDK 1.5
and I was using what came installed with PB which is JDK 1.4. Once we
got that figured out, he recreated the jar in the lower version and I
was able to generate the proxies. HOWEVER, now I am having a new
problem which I will start a new topic for. Stay tuned.

Gokhan Demir wrote:
> Let me jump here too. It should contain at least one method with
> serializable parameters that are the classes that you want to access
> from Powerbuilder environment. I often add one dummy method to the
> remote interface of a bean like I described above. Powerbuilder
> recursively finds the other referenced classes and generates proxies for
> them too.
>
> Regards,
> Gokhan Demir
>
> Alex wrote:
> > Well I suppose that might be part of the problem. Initially, I had the
> > home interface as just an empty/dummy class. I thought that would be
> > enough, since that's what the example on the Sybase website was like,
> > but now I don't know what it should contain. Any suggestions?
> >
> >> Exactly how do you have your home interface defined? Also - what is the
> >> output from JAVAP from both classes ABC and ABCHome ?
> >> Tim.
> >>
> >> "Alex" <alexanderhlee@gmail.com> wrote in message
> >>> Hello all, using PB105 and trying to generate EJB proxies. First thing
> >>> is that this java component isn't actually an EJB, but, according to
> >>> Sybase documentation, in theory, any Java class can be called as an EJB
> >>> as long as you trick PB into thinking it's an EJB.
> >>>
> >>> With that said. I have a jar file (ABC.jar) and in that jar there is a
> >>> class I want to call: ABC. I also have the home interface class as
> >>> well: ABCHome. Both are in the same package within the jar: abc\def.
> >>> So, my two classes are ABC and ABCHome and both are located in abc\def
> >>> in ABC.jar
> >>>
> >>> Here's the problem: ABC has a dependancy on javax.xml.soapelement. This
> >>> is okay, since I have another jar file with all the related javax
> >>> classes in it. But, obviously these classes are in a different package
> >>> (and a different jar file, for that matter).
> >>>
> >>> Now, when I set up my project, I have ABC as my EJB class, ABCHome as
> >>> my home interface class and C:\myJava\ABC.jar for my classpath.
> >>> Additionally, in System Options -> Java I have placed the jars that
> >>> ABC.jar depends on (including the jar that contains
> >>> javax.xml.soapelement). However, when I attempt to deploy, it says it
> >>> cannot find javax.xml.soapelement. Here's the error:
> >>>
> >>> ---------- Deploy: Deploy of abc
> >>> Retrieving PowerBuilder Proxies from EJB...
> >>> Generation Errors: ERROR:Could not find javax.xml.soap.SOAPElement
> >>>
> >>> Deployment Error: No files returned for package/component
> >>> 'abc.def.ABC'.
> >>> Error code: Unknown. Proxy was not created.
> >>> ---------- Finished Deploy of abc.
> >>>
> >>> Like I said, I think I have my classpaths (the one for the project and
> >>> the system-wide one) correct, but it still cannot locate the
> >>>
> >

From: Gokhan Demir <gokhan.demir@igonline.biz>
User-Agent: Thunderbird 1.5.0.9 (Windows/20061207)
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.ejbclient
Subject: Re: Multiple Jars?
Content-Type: text/plain; charset=ISO-8859-9; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 85.105.196.163
X-Original-NNTP-Posting-Host: 85.105.196.163
Message-ID: <45a811a1@forums-1-dub>
Date: 12 Jan 2007 14:54:25 -0700
X-Trace: forums-1-dub 1168642465 85.105.196.163 (12 Jan 2007 14:54:25 -0700)
X-Original-Trace: 12 Jan 2007 14:54:25 -0700, 85.105.196.163
Lines: 47
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:713
Article PK: 424815

Hello,

I think you have to place the secondary jar in the proxy generation
project classpath (separate with ;), rather than in system options. That
way it should work.

HTH,
Gokhan Demir

Alex wrote:
> Hello all, using PB105 and trying to generate EJB proxies. First thing
> is that this java component isn't actually an EJB, but, according to
> Sybase documentation, in theory, any Java class can be called as an EJB
> as long as you trick PB into thinking it's an EJB.
>
> With that said. I have a jar file (ABC.jar) and in that jar there is a
> class I want to call: ABC. I also have the home interface class as
> well: ABCHome. Both are in the same package within the jar: abc\def.
> So, my two classes are ABC and ABCHome and both are located in abc\def
> in ABC.jar
>
> Here's the problem: ABC has a dependancy on javax.xml.soapelement. This
> is okay, since I have another jar file with all the related javax
> classes in it. But, obviously these classes are in a different package
> (and a different jar file, for that matter).
>
> Now, when I set up my project, I have ABC as my EJB class, ABCHome as
> my home interface class and C:\myJava\ABC.jar for my classpath.
> Additionally, in System Options -> Java I have placed the jars that
> ABC.jar depends on (including the jar that contains
> javax.xml.soapelement). However, when I attempt to deploy, it says it
> cannot find javax.xml.soapelement. Here's the error:
>
> ---------- Deploy: Deploy of abc
> Retrieving PowerBuilder Proxies from EJB...
> Generation Errors: ERROR:Could not find javax.xml.soap.SOAPElement
>
> Deployment Error: No files returned for package/component
> 'abc.def.ABC'.
> Error code: Unknown. Proxy was not created.
> ---------- Finished Deploy of abc.
>
> Like I said, I think I have my classpaths (the one for the project and
> the system-wide one) correct, but it still cannot locate the
>

From: "Alex" <alexanderhlee@gmail.com>
Newsgroups: sybase.public.powerbuilder.ejbclient
Subject: Re: Multiple Jars?
Date: 16 Jan 2007 06:12:04 -0800
Lines: 52
NNTP-Posting-Host: 72.77.158.2
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
X-Trace: posting.google.com 1168956730 3413 127.0.0.1 (16 Jan 2007 14:12:10 GMT)
NNTP-Posting-Date: Tue, 16 Jan 2007 14:12:10 +0000 (UTC)
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1,gzip(gfe),gzip(gfe)
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:717
Article PK: 424818

Do they each have to absolute paths? Are you sure it's with a (;)? I've
seen others say it's with a comma.

Gokhan Demir wrote:
> Hello,
>
> I think you have to place the secondary jar in the proxy generation
> project classpath (separate with ;), rather than in system options. That
> way it should work.
>
> HTH,
> Gokhan Demir
>
>
> Alex wrote:
> > Hello all, using PB105 and trying to generate EJB proxies. First thing
> > is that this java component isn't actually an EJB, but, according to
> > Sybase documentation, in theory, any Java class can be called as an EJB
> > as long as you trick PB into thinking it's an EJB.
> >
> > With that said. I have a jar file (ABC.jar) and in that jar there is a
> > class I want to call: ABC. I also have the home interface class as
> > well: ABCHome. Both are in the same package within the jar: abc\def.
> > So, my two classes are ABC and ABCHome and both are located in abc\def
> > in ABC.jar
> >
> > Here's the problem: ABC has a dependancy on javax.xml.soapelement. This
> > is okay, since I have another jar file with all the related javax
> > classes in it. But, obviously these classes are in a different package
> > (and a different jar file, for that matter).
> >
> > Now, when I set up my project, I have ABC as my EJB class, ABCHome as
> > my home interface class and C:\myJava\ABC.jar for my classpath.
> > Additionally, in System Options -> Java I have placed the jars that
> > ABC.jar depends on (including the jar that contains
> > javax.xml.soapelement). However, when I attempt to deploy, it says it
> > cannot find javax.xml.soapelement. Here's the error:
> >
> > ---------- Deploy: Deploy of abc
> > Retrieving PowerBuilder Proxies from EJB...
> > Generation Errors: ERROR:Could not find javax.xml.soap.SOAPElement
> >
> > Deployment Error: No files returned for package/component
> > 'abc.def.ABC'.
> > Error code: Unknown. Proxy was not created.
> > ---------- Finished Deploy of abc.
> >
> > Like I said, I think I have my classpaths (the one for the project and
> > the system-wide one) correct, but it still cannot locate the
> >

From: Gokhan Demir <gokhan.demir@igonline.biz>
User-Agent: Thunderbird 1.5.0.9 (Windows/20061207)
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.ejbclient
Subject: Re: Multiple Jars?
Content-Type: text/plain; charset=ISO-8859-9; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 85.105.196.163
X-Original-NNTP-Posting-Host: 85.105.196.163
Message-ID: <45ad4eaf$1@forums-1-dub> Date: 16 Jan 2007 14:16:15 -0700 X-Trace: forums-1-dub 1168985775 85.105.196.163 (16 Jan 2007 14:16:15 -0700) X-Original-Trace: 16 Jan 2007 14:16:15 -0700, 85.105.196.163 Lines: 62 Path: forums-1-dub!not-for-mail Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:718 Article PK: 424819 Yes, absolute paths are necessary. Yes, I am sure about ;. One addition: don't forget that you have to execute (i.e. deploy) the EJB client proxy before the JavaVM is created by Powerbuilder development environment. Regards, Gokhan Demir Alex wrote: > Do they each have to absolute paths? Are you sure it's with a (;)? I've > seen others say it's with a comma. > > Gokhan Demir wrote: >> Hello, >> >> I think you have to place the secondary jar in the proxy generation >> project classpath (separate with ;), rather than in system options. That >> way it should work. >> >> HTH, >> Gokhan Demir >> >> >> Alex wrote: >>> Hello all, using PB105 and trying to generate EJB proxies. First thing >>> is that this java component isn't actually an EJB, but, according to >>> Sybase documentation, in theory, any Java class can be called as an EJB >>> as long as you trick PB into thinking it's an EJB. >>> >>> With that said. I have a jar file (ABC.jar) and in that jar there is a >>> class I want to call: ABC. I also have the home interface class as >>> well: ABCHome. Both are in the same package within the jar: abc\def. >>> So, my two classes are ABC and ABCHome and both are located in abc\def >>> in ABC.jar >>> >>> Here's the problem: ABC has a dependancy on javax.xml.soapelement. This >>> is okay, since I have another jar file with all the related javax >>> classes in it. But, obviously these classes are in a different package >>> (and a different jar file, for that matter). >>> >>> Now, when I set up my project, I have ABC as my EJB class, ABCHome as >>> my home interface class and C:\myJava\ABC.jar for my classpath. >>> Additionally, in System Options -> Java I have placed the jars that >>> ABC.jar depends on (including the jar that contains >>> javax.xml.soapelement). However, when I attempt to deploy, it says it >>> cannot find javax.xml.soapelement. Here's the error: >>> >>> ---------- Deploy: Deploy of abc >>> Retrieving PowerBuilder Proxies from EJB... >>> Generation Errors: ERROR:Could not find javax.xml.soap.SOAPElement >>> >>> Deployment Error: No files returned for package/component >>> 'abc.def.ABC'. >>> Error code: Unknown. Proxy was not created. >>> ---------- Finished Deploy of abc. >>> >>> Like I said, I think I have my classpaths (the one for the project and >>> the system-wide one) correct, but it still cannot locate the >>> soapelement class. If anyone can please help with this. Thanks! >>> > From: bede <bedenosp@msofico.be> Newsgroups: sybase.public.powerbuilder.ejbclient Subject: Re: Multiple Jars? Message-ID: <MPG.201822ccafbf6f0198985d@forums.sybase.com> References: <1168616899.068073.120600@s34g2000cwa.googlegroups.com> <45a811a1@forums-1-dub> <1168956724.668666.18600@m58g2000cwm.googlegroups.com> <45ad4eaf$1@forums-1-dub>
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-15"
Content-Transfer-Encoding: 7bit
User-Agent: MicroPlanet-Gravity/2.70.2067
NNTP-Posting-Host: uu194-7-38-226.unknown.uunet.be
X-Original-NNTP-Posting-Host: uu194-7-38-226.unknown.uunet.be
Date: 17 Jan 2007 03:23:57 -0700
X-Trace: forums-1-dub 1169033037 194.7.38.226 (17 Jan 2007 03:23:57 -0700)
X-Original-Trace: 17 Jan 2007 03:23:57 -0700, uu194-7-38-226.unknown.uunet.be
Lines: 60
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:720
Article PK: 424821

like i said, better to use ejb2pbXXX.exe instead of PB (and it's scc ini settings that can
cause another JDK to get loaded) or make sure the following is applied (pb.ini)

[JavaVM]
CreateJavaVM=0

> Yes, absolute paths are necessary.
> Yes, I am sure about ;.
> One addition: don't forget that you have to execute (i.e. deploy) the
> EJB client proxy before the JavaVM is created by Powerbuilder
> development environment.
>
> Regards,
> Gokhan Demir
>
> Alex wrote:
> > Do they each have to absolute paths? Are you sure it's with a (;)? I've
> > seen others say it's with a comma.
> >
> > Gokhan Demir wrote:
> >> Hello,
> >>
> >> I think you have to place the secondary jar in the proxy generation
> >> project classpath (separate with ;), rather than in system options. That
> >> way it should work.
> >>
> >> HTH,
> >> Gokhan Demir
> >>
> >>
> >> Alex wrote:
> >>> Hello all, using PB105 and trying to generate EJB proxies. First thing
> >>> is that this java component isn't actually an EJB, but, according to
> >>> Sybase documentation, in theory, any Java class can be called as an EJB
> >>> as long as you trick PB into thinking it's an EJB.
> >>>
> >>> With that said. I have a jar file (ABC.jar) and in that jar there is a
> >>> class I want to call: ABC. I also have the home interface class as
> >>> well: ABCHome. Both are in the same package within the jar: abc\def.
> >>> So, my two classes are ABC and ABCHome and both are located in abc\def
> >>> in ABC.jar
> >>>
> >>> Here's the problem: ABC has a dependancy on javax.xml.soapelement. This
> >>> is okay, since I have another jar file with all the related javax
> >>> classes in it. But, obviously these classes are in a different package
> >>> (and a different jar file, for that matter).
> >>>
> >>> Now, when I set up my project, I have ABC as my EJB class, ABCHome as
> >>> my home interface class and C:\myJava\ABC.jar for my classpath.
> >>> Additionally, in System Options -> Java I have placed the jars that
> >>> ABC.jar depends on (including the jar that contains
> >>> javax.xml.soapelement). However, when I attempt to deploy, it says it
> >>> cannot find javax.xml.soapelement. Here's the error:
> >>>
> >>> ---------- Deploy: Deploy of abc
> >>> Retrieving PowerBuilder Proxies from EJB...

From: bede <bedenosp@msofico.be>
Newsgroups: sybase.public.powerbuilder.ejbclient
Subject: Re: Multiple Jars?
Message-ID: <MPG.2015a083c8bc028b98985b@forums.sybase.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-15"
Content-Transfer-Encoding: 7bit
User-Agent: MicroPlanet-Gravity/2.70.2067
NNTP-Posting-Host: uu194-7-38-226.unknown.uunet.be
X-Original-NNTP-Posting-Host: uu194-7-38-226.unknown.uunet.be
Date: 15 Jan 2007 05:43:30 -0700
X-Trace: forums-1-dub 1168868610 194.7.38.226 (15 Jan 2007 05:43:30 -0700)
X-Original-Trace: 15 Jan 2007 05:43:30 -0700, uu194-7-38-226.unknown.uunet.be
Lines: 46
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:715
Article PK: 424816

include all referenced jars in the classpath

i find it easier to use the ejb2pb105.exe (command line) instead of from within IDE.

says...

> Hello all, using PB105 and trying to generate EJB proxies. First thing
> is that this java component isn't actually an EJB, but, according to
> Sybase documentation, in theory, any Java class can be called as an EJB
> as long as you trick PB into thinking it's an EJB.
>
> With that said. I have a jar file (ABC.jar) and in that jar there is a
> class I want to call: ABC. I also have the home interface class as
> well: ABCHome. Both are in the same package within the jar: abc\def.
> So, my two classes are ABC and ABCHome and both are located in abc\def
> in ABC.jar
>
> Here's the problem: ABC has a dependancy on javax.xml.soapelement. This
> is okay, since I have another jar file with all the related javax
> classes in it. But, obviously these classes are in a different package
> (and a different jar file, for that matter).
>
> Now, when I set up my project, I have ABC as my EJB class, ABCHome as
> my home interface class and C:\myJava\ABC.jar for my classpath.
> Additionally, in System Options -> Java I have placed the jars that
> ABC.jar depends on (including the jar that contains
> javax.xml.soapelement). However, when I attempt to deploy, it says it
> cannot find javax.xml.soapelement. Here's the error:
>
> ---------- Deploy: Deploy of abc
> Retrieving PowerBuilder Proxies from EJB...
> Generation Errors: ERROR:Could not find javax.xml.soap.SOAPElement
>
> Deployment Error: No files returned for package/component
> 'abc.def.ABC'.
> Error code: Unknown. Proxy was not created.
> ---------- Finished Deploy of abc.
>
> Like I said, I think I have my classpaths (the one for the project and
> the system-wide one) correct, but it still cannot locate the