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.

ejb2pb90 (9.0.0.6111)

11 posts in EJB Client Last posting was on 2004-03-09 07:31:39.0Z
bede Posted on 2003-07-17 14:30:47.0Z
Newsgroups: sybase.public.powerbuilder.ejbclient
From: "bede" <bede@nospam.sofico.be>
Subject: ejb2pb90 (9.0.0.6111)
Date: Thu, 17 Jul 2003 16:30:47 +0200
Lines: 67
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-230.unknown.uunet.be 194.7.38.230
Message-ID: <359_uvsMWDHTDHA.298@forums-2-dub>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums-2-dub.sybase.com
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:96
Article PK: 424292

Using PB 9.0 (5507 and now 6111) and trying to run EJBs with JBoss.

I'm having problems with Generating Proxies a few months ago..
one of the issues was that ejb2pb90.exe did not recognize the public
variables defined in a java-class.

anyway, today i got a fix for this (build 6111), installed it and when
trying it i stumble upon another old problem (probably
configuration-related) so i'm posting this one again hoping to get some more
info from you guys (& Jims)

* When generating the EJB Proxies from within the PB9 painter i get this
error/output:
<error>
EJB Proxy Generator Project Status
Deployment PBL: P:\HelloWorld\milesproxies.pbl
Prefix:
Clear PBL on build: Yes
Confirm overwrites: No
Components selected : be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession
Classpath : P:\HelloWorld\BaseCamp.jar
Generation Errors:
Deployment Error:
No files returned for package/component:
'be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession'.
Error code: Unknown.
Proxy was not created.
</error>

* When i try it on the command prompt it fails as well, however, javap does
show the correct info...and as you can see, the jar is included in the
system's ClassPath so definitely reachable.

<CommandPrompt>
P:\HelloWorld>
P:\HelloWorld>echo %CLASSPATH%
P:\HelloWorld\BaseCamp.jar;C:\j2sdkee1.3.1\lib\j2ee.jar;C:\Program
Files\Altova\xmlspy\XMLSpyInterface.jar;;C:\Program F
iles\Sybase\Shared\PowerBuilder\jdk14

P:\HelloWorld>ejb2pb90.exe
be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession

P:\HelloWorld>cat ejbproxies.err
Can't get information of
be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSessionHome
P:\HelloWorld>javap be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession
Compiled from SessionMgmtSession.java
public interface be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession
extends javax.ejb.EJBObject, be.sofico.basecamp.
sess.sessionmgmt.ISessionMgmtSession {
}

P:\HelloWorld>
</CommandPrompt>

I had this problem before also, but now and then (for no identifyable reason
it sometimes did generate the proxies/stubs)

Anyway, i was hoping someone could point me out to what system settings
could affect ejb2pb90 so i can get my configuration corrected.

Greetings,

Ben


Jim O'Neil [Sybase] Posted on 2003-07-17 17:19:13.0Z
Newsgroups: sybase.public.powerbuilder.ejbclient
From: joneil@sybase.com (Jim O'Neil [Sybase])
Subject: Re: ejb2pb90 (9.0.0.6111)
Date: Thu, 17 Jul 2003 17:19:13 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: 68
Message-ID: <359_3f16da1d.14592362@forums.sybase.com>
References: <359_uvsMWDHTDHA.298@forums-2-dub>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums-2-dub.sybase.com
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:97
Article PK: 424294

Ben,

The class it's complaining about is SessionMgmtSessionHome not
SessionMgmtSession (at least in the ejb2pb90.exe example).
Doublecheck javap on that class.


On Thu, 17 Jul 2003 16:30:47 +0200, "bede" <bede@nospam.sofico.be>

wrote:

>Using PB 9.0 (5507 and now 6111) and trying to run EJBs with JBoss.
>
>I'm having problems with Generating Proxies a few months ago..
>one of the issues was that ejb2pb90.exe did not recognize the public
>variables defined in a java-class.
>
>anyway, today i got a fix for this (build 6111), installed it and when
>trying it i stumble upon another old problem (probably
>configuration-related) so i'm posting this one again hoping to get some more
>info from you guys (& Jims)
>
>* When generating the EJB Proxies from within the PB9 painter i get this
>error/output:
><error>
>EJB Proxy Generator Project Status
>Deployment PBL: P:\HelloWorld\milesproxies.pbl
>Prefix:
>Clear PBL on build: Yes
>Confirm overwrites: No
>Components selected : be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession
>Classpath : P:\HelloWorld\BaseCamp.jar
>Generation Errors:
> Deployment Error:
> No files returned for package/component:
>'be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession'.
> Error code: Unknown.
> Proxy was not created.
></error>
>
>* When i try it on the command prompt it fails as well, however, javap does
>show the correct info...and as you can see, the jar is included in the
>system's ClassPath so definitely reachable.
>
><CommandPrompt>
>P:\HelloWorld>
>P:\HelloWorld>echo %CLASSPATH%
>P:\HelloWorld\BaseCamp.jar;C:\j2sdkee1.3.1\lib\j2ee.jar;C:\Program
>Files\Altova\xmlspy\XMLSpyInterface.jar;;C:\Program F
>iles\Sybase\Shared\PowerBuilder\jdk14
>
>P:\HelloWorld>ejb2pb90.exe
>be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession
>
>P:\HelloWorld>cat ejbproxies.err
>Can't get information of
>be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSessionHome
>P:\HelloWorld>javap be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession
>Compiled from SessionMgmtSession.java
>public interface be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession
>extends javax.ejb.EJBObject, be.sofico.basecamp.
>sess.sessionmgmt.ISessionMgmtSession {
>}
>
>P:\HelloWorld>
></CommandPrompt>
>
>I had this problem before also, but now and then (for no identifyable reason
>it sometimes did generate the proxies/stubs)
>
>Anyway, i was hoping someone could point me out to what system settings
>could affect ejb2pb90 so i can get my configuration corrected.
>
>Greetings,
>
>Ben
>
>

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


bede Posted on 2003-07-18 07:25:38.0Z
Newsgroups: sybase.public.powerbuilder.ejbclient
From: "bede" <bede@nospam.sofico.be>
Subject: Re: ejb2pb90 (9.0.0.6111)
Date: Fri, 18 Jul 2003 09:25:38 +0200
Lines: 122
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-228.unknown.uunet.be 194.7.38.228
Message-ID: <359_#u5Vc6PTDHA.342@forums-2-dub>
References: <359_uvsMWDHTDHA.298@forums-2-dub> <359_3f16da1d.14592362@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:98
Article PK: 424295

yes.. but that seems to work fine with javap (see output below).
I was wondering, the fact that we are using interfaces, could this be the
cause of this problem too?
If this is so, then maybe it would be more appropriate to generate the
proxies ourselves. If we were to know what proxies to expect for what
classes (and especially that mapping-structure) then we could make them
without using ejb2pb90.. Any ideas?

Ben


P:\HelloWorld>javap
be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSessionHome
Compiled from SessionMgmtSessionHome.java
public interface be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSessionHome
extends javax.ejb.EJBHome {
public abstract be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession
create() throws java.rmi.RemoteException, jav
ax.ejb.CreateException;
}


P:\HelloWorld>javap be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession
Compiled from SessionMgmtSession.java
public interface be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession
extends javax.ejb.EJBObject, be.sofico.basecamp.
sess.sessionmgmt.ISessionMgmtSession {
}

P:\HelloWorld>

"Jim O'Neil [Sybase]" <joneil@sybase.com> wrote in message
news:3f16da1d.14592362@forums.sybase.com...
> Ben,
>
> The class it's complaining about is SessionMgmtSessionHome not
> SessionMgmtSession (at least in the ejb2pb90.exe example).
> Doublecheck javap on that class.
>
>
> On Thu, 17 Jul 2003 16:30:47 +0200, "bede" <bede@nospam.sofico.be>
> wrote:
>
> >Using PB 9.0 (5507 and now 6111) and trying to run EJBs with JBoss.
> >
> >I'm having problems with Generating Proxies a few months ago..
> >one of the issues was that ejb2pb90.exe did not recognize the public
> >variables defined in a java-class.
> >
> >anyway, today i got a fix for this (build 6111), installed it and when
> >trying it i stumble upon another old problem (probably
> >configuration-related) so i'm posting this one again hoping to get some
more
> >info from you guys (& Jims)
> >
> >* When generating the EJB Proxies from within the PB9 painter i get this
> >error/output:
> ><error>
> >EJB Proxy Generator Project Status
> >Deployment PBL: P:\HelloWorld\milesproxies.pbl
> >Prefix:
> >Clear PBL on build: Yes
> >Confirm overwrites: No
> >Components selected :
be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession
> >Classpath : P:\HelloWorld\BaseCamp.jar
> >Generation Errors:
> > Deployment Error:
> > No files returned for package/component:
> >'be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession'.
> > Error code: Unknown.
> > Proxy was not created.
> ></error>
> >
> >* When i try it on the command prompt it fails as well, however, javap
does
> >show the correct info...and as you can see, the jar is included in the
> >system's ClassPath so definitely reachable.
> >
> ><CommandPrompt>
> >P:\HelloWorld>
> >P:\HelloWorld>echo %CLASSPATH%
> >P:\HelloWorld\BaseCamp.jar;C:\j2sdkee1.3.1\lib\j2ee.jar;C:\Program
> >Files\Altova\xmlspy\XMLSpyInterface.jar;;C:\Program F
> >iles\Sybase\Shared\PowerBuilder\jdk14
> >
> >P:\HelloWorld>ejb2pb90.exe
> >be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession
> >
> >P:\HelloWorld>cat ejbproxies.err
> >Can't get information of
> >be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSessionHome
> >P:\HelloWorld>javap
be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession
> >Compiled from SessionMgmtSession.java
> >public interface be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession
> >extends javax.ejb.EJBObject, be.sofico.basecamp.
> >sess.sessionmgmt.ISessionMgmtSession {
> >}
> >
> >P:\HelloWorld>
> ></CommandPrompt>
> >
> >I had this problem before also, but now and then (for no identifyable
reason
> >it sometimes did generate the proxies/stubs)
> >
> >Anyway, i was hoping someone could point me out to what system settings
> >could affect ejb2pb90 so i can get my configuration corrected.
> >
> >Greetings,
> >
> >Ben
> >
> >
>
> Jim O'Neil
> Principal Technical Support Engineer
> Sybase, Inc.
> Concord, MA


bede Posted on 2003-07-18 08:24:07.0Z
Newsgroups: sybase.public.powerbuilder.ejbclient
From: "bede" <bede@nospam.sofico.be>
Subject: Re: ejb2pb90 (9.0.0.6111)
Date: Fri, 18 Jul 2003 10:24:07 +0200
Lines: 185
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-230.unknown.uunet.be 194.7.38.230
Message-ID: <359_uTWmHbQTDHA.145@forums-2-dub>
References: <359_uvsMWDHTDHA.298@forums-2-dub> <359_3f16da1d.14592362@forums.sybase.com> <359_#u5Vc6PTDHA.342@forums-2-dub>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums-2-dub.sybase.com
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:99
Article PK: 424297

I've tried it with an EJB that does not implement interfacing and it's still
the same problem...
javap shows everything nicely while ejb2pb90 has a problem with it.

P:\HelloWorld>javap be.sofico.basecamp.test.bytearray.TestByteArray
Compiled from TestByteArray.java
public interface be.sofico.basecamp.test.bytearray.TestByteArray extends
javax.ejb.EJBObject {
public abstract java.lang.String getString();
public abstract be.sofico.basecamp.sess.sessionmgmt.SessionSessPar
getSessionSessPar() throws java.rmi.RemoteExcepti
on;
public abstract byte getFileContent(java.lang.String)[] throws
java.rmi.RemoteException;
}

P:\HelloWorld>javap be.sofico.basecamp.test.bytearray.TestByteArrayHome
Compiled from TestByteArrayHome.java
public interface be.sofico.basecamp.test.bytearray.TestByteArrayHome extends
javax.ejb.EJBHome {
public abstract be.sofico.basecamp.test.bytearray.TestByteArray create()
throws java.rmi.RemoteException, javax.ejb.
CreateException;
}

P:\HelloWorld>javap be.sofico.basecamp.test.bytearray.TestByteArrayBean
Compiled from TestByteArrayBean.java
public class be.sofico.basecamp.test.bytearray.TestByteArrayBean extends
java.lang.Object implements javax.ejb.SessionBe
an {
protected boolean create() throws java.lang.Exception;
public be.sofico.basecamp.test.bytearray.TestByteArrayBean();
public void ejbActivate() throws javax.ejb.EJBException,
java.rmi.RemoteException;
public void ejbPassivate() throws javax.ejb.EJBException,
java.rmi.RemoteException;
public void ejbRemove() throws javax.ejb.EJBException,
java.rmi.RemoteException;
public void setSessionContext(javax.ejb.SessionContext) throws
javax.ejb.EJBException, java.rmi.RemoteException;
public void ejbCreate() throws javax.ejb.EJBException,
javax.ejb.CreateException;
public byte getFileContent(java.lang.String)[] throws
java.rmi.RemoteException;
public java.lang.String getString();
public be.sofico.basecamp.sess.sessionmgmt.SessionSessPar
getSessionSessPar() throws java.rmi.RemoteException;
}

P:\HelloWorld>ejb2pb90 be.sofico.basecamp.test.bytearray.TestByteArray

P:\HelloWorld>cat ejbproxies.err
Can't get information of be.sofico.basecamp.test.bytearray.TestByteArrayHome
P:\HelloWorld>

"bede" <bede@nospam.sofico.be> wrote in message
news:%23u5Vc6PTDHA.342@forums-2-dub...
> yes.. but that seems to work fine with javap (see output below).
> I was wondering, the fact that we are using interfaces, could this be the
> cause of this problem too?
> If this is so, then maybe it would be more appropriate to generate the
> proxies ourselves. If we were to know what proxies to expect for what
> classes (and especially that mapping-structure) then we could make them
> without using ejb2pb90.. Any ideas?
>
> Ben
>
>
> P:\HelloWorld>javap
> be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSessionHome
> Compiled from SessionMgmtSessionHome.java
> public interface
be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSessionHome
> extends javax.ejb.EJBHome {
> public abstract be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession
> create() throws java.rmi.RemoteException, jav
> ax.ejb.CreateException;
> }
>
>
> P:\HelloWorld>javap be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession
> Compiled from SessionMgmtSession.java
> public interface be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession
> extends javax.ejb.EJBObject, be.sofico.basecamp.
> sess.sessionmgmt.ISessionMgmtSession {
> }
>
> P:\HelloWorld>
>
> "Jim O'Neil [Sybase]" <joneil@sybase.com> wrote in message
> news:3f16da1d.14592362@forums.sybase.com...
> > Ben,
> >
> > The class it's complaining about is SessionMgmtSessionHome not
> > SessionMgmtSession (at least in the ejb2pb90.exe example).
> > Doublecheck javap on that class.
> >
> >
> > On Thu, 17 Jul 2003 16:30:47 +0200, "bede" <bede@nospam.sofico.be>
> > wrote:
> >
> > >Using PB 9.0 (5507 and now 6111) and trying to run EJBs with JBoss.
> > >
> > >I'm having problems with Generating Proxies a few months ago..
> > >one of the issues was that ejb2pb90.exe did not recognize the public
> > >variables defined in a java-class.
> > >
> > >anyway, today i got a fix for this (build 6111), installed it and when
> > >trying it i stumble upon another old problem (probably
> > >configuration-related) so i'm posting this one again hoping to get some
> more
> > >info from you guys (& Jims)
> > >
> > >* When generating the EJB Proxies from within the PB9 painter i get
this
> > >error/output:
> > ><error>
> > >EJB Proxy Generator Project Status
> > >Deployment PBL: P:\HelloWorld\milesproxies.pbl
> > >Prefix:
> > >Clear PBL on build: Yes
> > >Confirm overwrites: No
> > >Components selected :
> be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession
> > >Classpath : P:\HelloWorld\BaseCamp.jar
> > >Generation Errors:
> > > Deployment Error:
> > > No files returned for package/component:
> > >'be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession'.
> > > Error code: Unknown.
> > > Proxy was not created.
> > ></error>
> > >
> > >* When i try it on the command prompt it fails as well, however, javap
> does
> > >show the correct info...and as you can see, the jar is included in the
> > >system's ClassPath so definitely reachable.
> > >
> > ><CommandPrompt>
> > >P:\HelloWorld>
> > >P:\HelloWorld>echo %CLASSPATH%
> > >P:\HelloWorld\BaseCamp.jar;C:\j2sdkee1.3.1\lib\j2ee.jar;C:\Program
> > >Files\Altova\xmlspy\XMLSpyInterface.jar;;C:\Program F
> > >iles\Sybase\Shared\PowerBuilder\jdk14
> > >
> > >P:\HelloWorld>ejb2pb90.exe
> > >be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession
> > >
> > >P:\HelloWorld>cat ejbproxies.err
> > >Can't get information of
> > >be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSessionHome
> > >P:\HelloWorld>javap
> be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession
> > >Compiled from SessionMgmtSession.java
> > >public interface be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession
> > >extends javax.ejb.EJBObject, be.sofico.basecamp.
> > >sess.sessionmgmt.ISessionMgmtSession {
> > >}
> > >
> > >P:\HelloWorld>
> > ></CommandPrompt>
> > >
> > >I had this problem before also, but now and then (for no identifyable
> reason
> > >it sometimes did generate the proxies/stubs)
> > >
> > >Anyway, i was hoping someone could point me out to what system settings
> > >could affect ejb2pb90 so i can get my configuration corrected.
> > >
> > >Greetings,
> > >
> > >Ben
> > >
> > >
> >
> > Jim O'Neil
> > Principal Technical Support Engineer
> > Sybase, Inc.
> > Concord, MA
>
>


Jim O'Neil [Sybase] Posted on 2003-07-18 14:13:56.0Z
Newsgroups: sybase.public.powerbuilder.ejbclient
From: joneil@sybase.com (Jim O'Neil [Sybase])
Subject: Re: ejb2pb90 (9.0.0.6111)
Date: Fri, 18 Jul 2003 14:13:56 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: 179
Message-ID: <359_3f180049.2793386@forums.sybase.com>
References: <359_uvsMWDHTDHA.298@forums-2-dub> <359_3f16da1d.14592362@forums.sybase.com> <359_#u5Vc6PTDHA.342@forums-2-dub> <359_uTWmHbQTDHA.145@forums-2-dub>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums-2-dub.sybase.com
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:100
Article PK: 424296

Can you e-mail me the two .java files? let me see if I can figure out
what's going on here.

On Fri, 18 Jul 2003 10:24:07 +0200, "bede" <bede@nospam.sofico.be>

wrote:

>I've tried it with an EJB that does not implement interfacing and it's still
>the same problem...
>javap shows everything nicely while ejb2pb90 has a problem with it.
>
>P:\HelloWorld>javap be.sofico.basecamp.test.bytearray.TestByteArray
>Compiled from TestByteArray.java
>public interface be.sofico.basecamp.test.bytearray.TestByteArray extends
>javax.ejb.EJBObject {
> public abstract java.lang.String getString();
> public abstract be.sofico.basecamp.sess.sessionmgmt.SessionSessPar
>getSessionSessPar() throws java.rmi.RemoteExcepti
>on;
> public abstract byte getFileContent(java.lang.String)[] throws
>java.rmi.RemoteException;
>}
>
>P:\HelloWorld>javap be.sofico.basecamp.test.bytearray.TestByteArrayHome
>Compiled from TestByteArrayHome.java
>public interface be.sofico.basecamp.test.bytearray.TestByteArrayHome extends
>javax.ejb.EJBHome {
> public abstract be.sofico.basecamp.test.bytearray.TestByteArray create()
>throws java.rmi.RemoteException, javax.ejb.
>CreateException;
>}
>
>P:\HelloWorld>javap be.sofico.basecamp.test.bytearray.TestByteArrayBean
>Compiled from TestByteArrayBean.java
>public class be.sofico.basecamp.test.bytearray.TestByteArrayBean extends
>java.lang.Object implements javax.ejb.SessionBe
>an {
> protected boolean create() throws java.lang.Exception;
> public be.sofico.basecamp.test.bytearray.TestByteArrayBean();
> public void ejbActivate() throws javax.ejb.EJBException,
>java.rmi.RemoteException;
> public void ejbPassivate() throws javax.ejb.EJBException,
>java.rmi.RemoteException;
> public void ejbRemove() throws javax.ejb.EJBException,
>java.rmi.RemoteException;
> public void setSessionContext(javax.ejb.SessionContext) throws
>javax.ejb.EJBException, java.rmi.RemoteException;
> public void ejbCreate() throws javax.ejb.EJBException,
>javax.ejb.CreateException;
> public byte getFileContent(java.lang.String)[] throws
>java.rmi.RemoteException;
> public java.lang.String getString();
> public be.sofico.basecamp.sess.sessionmgmt.SessionSessPar
>getSessionSessPar() throws java.rmi.RemoteException;
>}
>
>P:\HelloWorld>ejb2pb90 be.sofico.basecamp.test.bytearray.TestByteArray
>
>P:\HelloWorld>cat ejbproxies.err
>Can't get information of be.sofico.basecamp.test.bytearray.TestByteArrayHome
>P:\HelloWorld>
>
>
>
>"bede" <bede@nospam.sofico.be> wrote in message
>news:%23u5Vc6PTDHA.342@forums-2-dub...
>> yes.. but that seems to work fine with javap (see output below).
>> I was wondering, the fact that we are using interfaces, could this be the
>> cause of this problem too?
>> If this is so, then maybe it would be more appropriate to generate the
>> proxies ourselves. If we were to know what proxies to expect for what
>> classes (and especially that mapping-structure) then we could make them
>> without using ejb2pb90.. Any ideas?
>>
>> Ben
>>
>>
>> P:\HelloWorld>javap
>> be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSessionHome
>> Compiled from SessionMgmtSessionHome.java
>> public interface
>be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSessionHome
>> extends javax.ejb.EJBHome {
>> public abstract be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession
>> create() throws java.rmi.RemoteException, jav
>> ax.ejb.CreateException;
>> }
>>
>>
>> P:\HelloWorld>javap be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession
>> Compiled from SessionMgmtSession.java
>> public interface be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession
>> extends javax.ejb.EJBObject, be.sofico.basecamp.
>> sess.sessionmgmt.ISessionMgmtSession {
>> }
>>
>> P:\HelloWorld>
>>
>> "Jim O'Neil [Sybase]" <joneil@sybase.com> wrote in message
>> news:3f16da1d.14592362@forums.sybase.com...
>> > Ben,
>> >
>> > The class it's complaining about is SessionMgmtSessionHome not
>> > SessionMgmtSession (at least in the ejb2pb90.exe example).
>> > Doublecheck javap on that class.
>> >
>> >
>> > On Thu, 17 Jul 2003 16:30:47 +0200, "bede" <bede@nospam.sofico.be>
>> > wrote:
>> >
>> > >Using PB 9.0 (5507 and now 6111) and trying to run EJBs with JBoss.
>> > >
>> > >I'm having problems with Generating Proxies a few months ago..
>> > >one of the issues was that ejb2pb90.exe did not recognize the public
>> > >variables defined in a java-class.
>> > >
>> > >anyway, today i got a fix for this (build 6111), installed it and when
>> > >trying it i stumble upon another old problem (probably
>> > >configuration-related) so i'm posting this one again hoping to get some
>> more
>> > >info from you guys (& Jims)
>> > >
>> > >* When generating the EJB Proxies from within the PB9 painter i get
>this
>> > >error/output:
>> > ><error>
>> > >EJB Proxy Generator Project Status
>> > >Deployment PBL: P:\HelloWorld\milesproxies.pbl
>> > >Prefix:
>> > >Clear PBL on build: Yes
>> > >Confirm overwrites: No
>> > >Components selected :
>> be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession
>> > >Classpath : P:\HelloWorld\BaseCamp.jar
>> > >Generation Errors:
>> > > Deployment Error:
>> > > No files returned for package/component:
>> > >'be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession'.
>> > > Error code: Unknown.
>> > > Proxy was not created.
>> > ></error>
>> > >
>> > >* When i try it on the command prompt it fails as well, however, javap
>> does
>> > >show the correct info...and as you can see, the jar is included in the
>> > >system's ClassPath so definitely reachable.
>> > >
>> > ><CommandPrompt>
>> > >P:\HelloWorld>
>> > >P:\HelloWorld>echo %CLASSPATH%
>> > >P:\HelloWorld\BaseCamp.jar;C:\j2sdkee1.3.1\lib\j2ee.jar;C:\Program
>> > >Files\Altova\xmlspy\XMLSpyInterface.jar;;C:\Program F
>> > >iles\Sybase\Shared\PowerBuilder\jdk14
>> > >
>> > >P:\HelloWorld>ejb2pb90.exe
>> > >be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession
>> > >
>> > >P:\HelloWorld>cat ejbproxies.err
>> > >Can't get information of
>> > >be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSessionHome
>> > >P:\HelloWorld>javap
>> be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession
>> > >Compiled from SessionMgmtSession.java
>> > >public interface be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession
>> > >extends javax.ejb.EJBObject, be.sofico.basecamp.
>> > >sess.sessionmgmt.ISessionMgmtSession {
>> > >}
>> > >
>> > >P:\HelloWorld>
>> > ></CommandPrompt>
>> > >
>> > >I had this problem before also, but now and then (for no identifyable
>> reason
>> > >it sometimes did generate the proxies/stubs)
>> > >
>> > >Anyway, i was hoping someone could point me out to what system settings
>> > >could affect ejb2pb90 so i can get my configuration corrected.
>> > >
>> > >Greetings,
>> > >
>> > >Ben
>> > >
>> > >
>> >
>> > Jim O'Neil
>> > Principal Technical Support Engineer
>> > Sybase, Inc.
>> > Concord, MA
>>
>>
>
>

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


bede Posted on 2003-07-18 14:35:18.0Z
Newsgroups: sybase.public.powerbuilder.ejbclient
From: "bede" <bede@nospam.sofico.be>
Subject: Re: ejb2pb90 (9.0.0.6111)
Date: Fri, 18 Jul 2003 16:35:18 +0200
Lines: 216
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-228.unknown.uunet.be 194.7.38.228
Message-ID: <359_eMkriqTTDHA.344@forums-2-dub>
References: <359_uvsMWDHTDHA.298@forums-2-dub> <359_3f16da1d.14592362@forums.sybase.com> <359_#u5Vc6PTDHA.342@forums-2-dub> <359_uTWmHbQTDHA.145@forums-2-dub> <359_3f180049.2793386@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:101
Article PK: 424298

thx.. they're on the way

"Jim O'Neil [Sybase]" <joneil@sybase.com> wrote in message
news:3f180049.2793386@forums.sybase.com...
> Can you e-mail me the two .java files? let me see if I can figure out
> what's going on here.
>
> On Fri, 18 Jul 2003 10:24:07 +0200, "bede" <bede@nospam.sofico.be>
> wrote:
>
> >I've tried it with an EJB that does not implement interfacing and it's
still
> >the same problem...
> >javap shows everything nicely while ejb2pb90 has a problem with it.
> >
> >P:\HelloWorld>javap be.sofico.basecamp.test.bytearray.TestByteArray
> >Compiled from TestByteArray.java
> >public interface be.sofico.basecamp.test.bytearray.TestByteArray extends
> >javax.ejb.EJBObject {
> > public abstract java.lang.String getString();
> > public abstract be.sofico.basecamp.sess.sessionmgmt.SessionSessPar
> >getSessionSessPar() throws java.rmi.RemoteExcepti
> >on;
> > public abstract byte getFileContent(java.lang.String)[] throws
> >java.rmi.RemoteException;
> >}
> >
> >P:\HelloWorld>javap be.sofico.basecamp.test.bytearray.TestByteArrayHome
> >Compiled from TestByteArrayHome.java
> >public interface be.sofico.basecamp.test.bytearray.TestByteArrayHome
extends
> >javax.ejb.EJBHome {
> > public abstract be.sofico.basecamp.test.bytearray.TestByteArray
create()
> >throws java.rmi.RemoteException, javax.ejb.
> >CreateException;
> >}
> >
> >P:\HelloWorld>javap be.sofico.basecamp.test.bytearray.TestByteArrayBean
> >Compiled from TestByteArrayBean.java
> >public class be.sofico.basecamp.test.bytearray.TestByteArrayBean extends
> >java.lang.Object implements javax.ejb.SessionBe
> >an {
> > protected boolean create() throws java.lang.Exception;
> > public be.sofico.basecamp.test.bytearray.TestByteArrayBean();
> > public void ejbActivate() throws javax.ejb.EJBException,
> >java.rmi.RemoteException;
> > public void ejbPassivate() throws javax.ejb.EJBException,
> >java.rmi.RemoteException;
> > public void ejbRemove() throws javax.ejb.EJBException,
> >java.rmi.RemoteException;
> > public void setSessionContext(javax.ejb.SessionContext) throws
> >javax.ejb.EJBException, java.rmi.RemoteException;
> > public void ejbCreate() throws javax.ejb.EJBException,
> >javax.ejb.CreateException;
> > public byte getFileContent(java.lang.String)[] throws
> >java.rmi.RemoteException;
> > public java.lang.String getString();
> > public be.sofico.basecamp.sess.sessionmgmt.SessionSessPar
> >getSessionSessPar() throws java.rmi.RemoteException;
> >}
> >
> >P:\HelloWorld>ejb2pb90 be.sofico.basecamp.test.bytearray.TestByteArray
> >
> >P:\HelloWorld>cat ejbproxies.err
> >Can't get information of
be.sofico.basecamp.test.bytearray.TestByteArrayHome
> >P:\HelloWorld>
> >
> >
> >
> >"bede" <bede@nospam.sofico.be> wrote in message
> >news:%23u5Vc6PTDHA.342@forums-2-dub...
> >> yes.. but that seems to work fine with javap (see output below).
> >> I was wondering, the fact that we are using interfaces, could this be
the
> >> cause of this problem too?
> >> If this is so, then maybe it would be more appropriate to generate the
> >> proxies ourselves. If we were to know what proxies to expect for what
> >> classes (and especially that mapping-structure) then we could make them
> >> without using ejb2pb90.. Any ideas?
> >>
> >> Ben
> >>
> >>
> >> P:\HelloWorld>javap
> >> be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSessionHome
> >> Compiled from SessionMgmtSessionHome.java
> >> public interface
> >be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSessionHome
> >> extends javax.ejb.EJBHome {
> >> public abstract
be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession
> >> create() throws java.rmi.RemoteException, jav
> >> ax.ejb.CreateException;
> >> }
> >>
> >>
> >> P:\HelloWorld>javap
be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession
> >> Compiled from SessionMgmtSession.java
> >> public interface be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession
> >> extends javax.ejb.EJBObject, be.sofico.basecamp.
> >> sess.sessionmgmt.ISessionMgmtSession {
> >> }
> >>
> >> P:\HelloWorld>
> >>
> >> "Jim O'Neil [Sybase]" <joneil@sybase.com> wrote in message
> >> news:3f16da1d.14592362@forums.sybase.com...
> >> > Ben,
> >> >
> >> > The class it's complaining about is SessionMgmtSessionHome not
> >> > SessionMgmtSession (at least in the ejb2pb90.exe example).
> >> > Doublecheck javap on that class.
> >> >
> >> >
> >> > On Thu, 17 Jul 2003 16:30:47 +0200, "bede" <bede@nospam.sofico.be>
> >> > wrote:
> >> >
> >> > >Using PB 9.0 (5507 and now 6111) and trying to run EJBs with JBoss.
> >> > >
> >> > >I'm having problems with Generating Proxies a few months ago..
> >> > >one of the issues was that ejb2pb90.exe did not recognize the public
> >> > >variables defined in a java-class.
> >> > >
> >> > >anyway, today i got a fix for this (build 6111), installed it and
when
> >> > >trying it i stumble upon another old problem (probably
> >> > >configuration-related) so i'm posting this one again hoping to get
some
> >> more
> >> > >info from you guys (& Jims)
> >> > >
> >> > >* When generating the EJB Proxies from within the PB9 painter i get
> >this
> >> > >error/output:
> >> > ><error>
> >> > >EJB Proxy Generator Project Status
> >> > >Deployment PBL: P:\HelloWorld\milesproxies.pbl
> >> > >Prefix:
> >> > >Clear PBL on build: Yes
> >> > >Confirm overwrites: No
> >> > >Components selected :
> >> be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession
> >> > >Classpath : P:\HelloWorld\BaseCamp.jar
> >> > >Generation Errors:
> >> > > Deployment Error:
> >> > > No files returned for package/component:
> >> > >'be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession'.
> >> > > Error code: Unknown.
> >> > > Proxy was not created.
> >> > ></error>
> >> > >
> >> > >* When i try it on the command prompt it fails as well, however,
javap
> >> does
> >> > >show the correct info...and as you can see, the jar is included in
the
> >> > >system's ClassPath so definitely reachable.
> >> > >
> >> > ><CommandPrompt>
> >> > >P:\HelloWorld>
> >> > >P:\HelloWorld>echo %CLASSPATH%
> >> > >P:\HelloWorld\BaseCamp.jar;C:\j2sdkee1.3.1\lib\j2ee.jar;C:\Program
> >> > >Files\Altova\xmlspy\XMLSpyInterface.jar;;C:\Program F
> >> > >iles\Sybase\Shared\PowerBuilder\jdk14
> >> > >
> >> > >P:\HelloWorld>ejb2pb90.exe
> >> > >be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession
> >> > >
> >> > >P:\HelloWorld>cat ejbproxies.err
> >> > >Can't get information of
> >> > >be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSessionHome
> >> > >P:\HelloWorld>javap
> >> be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession
> >> > >Compiled from SessionMgmtSession.java
> >> > >public interface
be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession
> >> > >extends javax.ejb.EJBObject, be.sofico.basecamp.
> >> > >sess.sessionmgmt.ISessionMgmtSession {
> >> > >}
> >> > >
> >> > >P:\HelloWorld>
> >> > ></CommandPrompt>
> >> > >
> >> > >I had this problem before also, but now and then (for no
identifyable
> >> reason
> >> > >it sometimes did generate the proxies/stubs)
> >> > >
> >> > >Anyway, i was hoping someone could point me out to what system
settings
> >> > >could affect ejb2pb90 so i can get my configuration corrected.
> >> > >
> >> > >Greetings,
> >> > >
> >> > >Ben
> >> > >
> >> > >
> >> >
> >> > Jim O'Neil
> >> > Principal Technical Support Engineer
> >> > Sybase, Inc.
> >> > Concord, MA
> >>
> >>
> >
> >
>
> Jim O'Neil
> Principal Technical Support Engineer
> Sybase, Inc.
> Concord, MA


bede Posted on 2003-08-18 09:06:37.0Z
From: "bede" <bede@nospam.sofico.be>
Newsgroups: sybase.public.powerbuilder.ejbclient
References: <359_uvsMWDHTDHA.298@forums-2-dub> <359_3f16da1d.14592362@forums.sybase.com> <359_#u5Vc6PTDHA.342@forums-2-dub> <359_uTWmHbQTDHA.145@forums-2-dub> <359_3f180049.2793386@forums.sybase.com> <359_eMkriqTTDHA.344@forums-2-dub>
Subject: Re: ejb2pb90 (9.0.0.6111)
Lines: 231
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
X-Original-NNTP-Posting-Host: uu194-7-38-235.unknown.uunet.be
Message-ID: <3f40972c$1@forums-2-dub>
X-Original-Trace: 18 Aug 2003 02:06:52 -0700, uu194-7-38-235.unknown.uunet.be
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 18 Aug 2003 02:06:01 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 18 Aug 2003 02:06:37 -0700
X-Trace: forums-1-dub 1061197597 10.22.108.75 (18 Aug 2003 02:06:37 -0700)
X-Original-Trace: 18 Aug 2003 02:06:37 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:113
Article PK: 424308

Got the ejb2pb90 working now.. a matter of classpaths and system settings.

"bede" <bede@nospam.sofico.be> wrote in message
news:359_eMkriqTTDHA.344@forums-2-dub...
> thx.. they're on the way
>
> "Jim O'Neil [Sybase]" <joneil@sybase.com> wrote in message
> news:3f180049.2793386@forums.sybase.com...
> > Can you e-mail me the two .java files? let me see if I can figure out
> > what's going on here.
> >
> > On Fri, 18 Jul 2003 10:24:07 +0200, "bede" <bede@nospam.sofico.be>
> > wrote:
> >
> > >I've tried it with an EJB that does not implement interfacing and it's
> still
> > >the same problem...
> > >javap shows everything nicely while ejb2pb90 has a problem with it.
> > >
> > >P:\HelloWorld>javap be.sofico.basecamp.test.bytearray.TestByteArray
> > >Compiled from TestByteArray.java
> > >public interface be.sofico.basecamp.test.bytearray.TestByteArray
extends
> > >javax.ejb.EJBObject {
> > > public abstract java.lang.String getString();
> > > public abstract be.sofico.basecamp.sess.sessionmgmt.SessionSessPar
> > >getSessionSessPar() throws java.rmi.RemoteExcepti
> > >on;
> > > public abstract byte getFileContent(java.lang.String)[] throws
> > >java.rmi.RemoteException;
> > >}
> > >
> > >P:\HelloWorld>javap be.sofico.basecamp.test.bytearray.TestByteArrayHome
> > >Compiled from TestByteArrayHome.java
> > >public interface be.sofico.basecamp.test.bytearray.TestByteArrayHome
> extends
> > >javax.ejb.EJBHome {
> > > public abstract be.sofico.basecamp.test.bytearray.TestByteArray
> create()
> > >throws java.rmi.RemoteException, javax.ejb.
> > >CreateException;
> > >}
> > >
> > >P:\HelloWorld>javap be.sofico.basecamp.test.bytearray.TestByteArrayBean
> > >Compiled from TestByteArrayBean.java
> > >public class be.sofico.basecamp.test.bytearray.TestByteArrayBean
extends
> > >java.lang.Object implements javax.ejb.SessionBe
> > >an {
> > > protected boolean create() throws java.lang.Exception;
> > > public be.sofico.basecamp.test.bytearray.TestByteArrayBean();
> > > public void ejbActivate() throws javax.ejb.EJBException,
> > >java.rmi.RemoteException;
> > > public void ejbPassivate() throws javax.ejb.EJBException,
> > >java.rmi.RemoteException;
> > > public void ejbRemove() throws javax.ejb.EJBException,
> > >java.rmi.RemoteException;
> > > public void setSessionContext(javax.ejb.SessionContext) throws
> > >javax.ejb.EJBException, java.rmi.RemoteException;
> > > public void ejbCreate() throws javax.ejb.EJBException,
> > >javax.ejb.CreateException;
> > > public byte getFileContent(java.lang.String)[] throws
> > >java.rmi.RemoteException;
> > > public java.lang.String getString();
> > > public be.sofico.basecamp.sess.sessionmgmt.SessionSessPar
> > >getSessionSessPar() throws java.rmi.RemoteException;
> > >}
> > >
> > >P:\HelloWorld>ejb2pb90 be.sofico.basecamp.test.bytearray.TestByteArray
> > >
> > >P:\HelloWorld>cat ejbproxies.err
> > >Can't get information of
> be.sofico.basecamp.test.bytearray.TestByteArrayHome
> > >P:\HelloWorld>
> > >
> > >
> > >
> > >"bede" <bede@nospam.sofico.be> wrote in message
> > >news:%23u5Vc6PTDHA.342@forums-2-dub...
> > >> yes.. but that seems to work fine with javap (see output below).
> > >> I was wondering, the fact that we are using interfaces, could this be
> the
> > >> cause of this problem too?
> > >> If this is so, then maybe it would be more appropriate to generate
the
> > >> proxies ourselves. If we were to know what proxies to expect for what
> > >> classes (and especially that mapping-structure) then we could make
them
> > >> without using ejb2pb90.. Any ideas?
> > >>
> > >> Ben
> > >>
> > >>
> > >> P:\HelloWorld>javap
> > >> be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSessionHome
> > >> Compiled from SessionMgmtSessionHome.java
> > >> public interface
> > >be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSessionHome
> > >> extends javax.ejb.EJBHome {
> > >> public abstract
> be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession
> > >> create() throws java.rmi.RemoteException, jav
> > >> ax.ejb.CreateException;
> > >> }
> > >>
> > >>
> > >> P:\HelloWorld>javap
> be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession
> > >> Compiled from SessionMgmtSession.java
> > >> public interface
be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession
> > >> extends javax.ejb.EJBObject, be.sofico.basecamp.
> > >> sess.sessionmgmt.ISessionMgmtSession {
> > >> }
> > >>
> > >> P:\HelloWorld>
> > >>
> > >> "Jim O'Neil [Sybase]" <joneil@sybase.com> wrote in message
> > >> news:3f16da1d.14592362@forums.sybase.com...
> > >> > Ben,
> > >> >
> > >> > The class it's complaining about is SessionMgmtSessionHome not
> > >> > SessionMgmtSession (at least in the ejb2pb90.exe example).
> > >> > Doublecheck javap on that class.
> > >> >
> > >> >
> > >> > On Thu, 17 Jul 2003 16:30:47 +0200, "bede" <bede@nospam.sofico.be>
> > >> > wrote:
> > >> >
> > >> > >Using PB 9.0 (5507 and now 6111) and trying to run EJBs with
JBoss.
> > >> > >
> > >> > >I'm having problems with Generating Proxies a few months ago..
> > >> > >one of the issues was that ejb2pb90.exe did not recognize the
public
> > >> > >variables defined in a java-class.
> > >> > >
> > >> > >anyway, today i got a fix for this (build 6111), installed it and
> when
> > >> > >trying it i stumble upon another old problem (probably
> > >> > >configuration-related) so i'm posting this one again hoping to get
> some
> > >> more
> > >> > >info from you guys (& Jims)
> > >> > >
> > >> > >* When generating the EJB Proxies from within the PB9 painter i
get
> > >this
> > >> > >error/output:
> > >> > ><error>
> > >> > >EJB Proxy Generator Project Status
> > >> > >Deployment PBL: P:\HelloWorld\milesproxies.pbl
> > >> > >Prefix:
> > >> > >Clear PBL on build: Yes
> > >> > >Confirm overwrites: No
> > >> > >Components selected :
> > >> be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession
> > >> > >Classpath : P:\HelloWorld\BaseCamp.jar
> > >> > >Generation Errors:
> > >> > > Deployment Error:
> > >> > > No files returned for package/component:
> > >> > >'be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession'.
> > >> > > Error code: Unknown.
> > >> > > Proxy was not created.
> > >> > ></error>
> > >> > >
> > >> > >* When i try it on the command prompt it fails as well, however,
> javap
> > >> does
> > >> > >show the correct info...and as you can see, the jar is included in
> the
> > >> > >system's ClassPath so definitely reachable.
> > >> > >
> > >> > ><CommandPrompt>
> > >> > >P:\HelloWorld>
> > >> > >P:\HelloWorld>echo %CLASSPATH%
> > >> > >P:\HelloWorld\BaseCamp.jar;C:\j2sdkee1.3.1\lib\j2ee.jar;C:\Program
> > >> > >Files\Altova\xmlspy\XMLSpyInterface.jar;;C:\Program F
> > >> > >iles\Sybase\Shared\PowerBuilder\jdk14
> > >> > >
> > >> > >P:\HelloWorld>ejb2pb90.exe
> > >> > >be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession
> > >> > >
> > >> > >P:\HelloWorld>cat ejbproxies.err
> > >> > >Can't get information of
> > >> > >be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSessionHome
> > >> > >P:\HelloWorld>javap
> > >> be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession
> > >> > >Compiled from SessionMgmtSession.java
> > >> > >public interface
> be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession
> > >> > >extends javax.ejb.EJBObject, be.sofico.basecamp.
> > >> > >sess.sessionmgmt.ISessionMgmtSession {
> > >> > >}
> > >> > >
> > >> > >P:\HelloWorld>
> > >> > ></CommandPrompt>
> > >> > >
> > >> > >I had this problem before also, but now and then (for no
> identifyable
> > >> reason
> > >> > >it sometimes did generate the proxies/stubs)
> > >> > >
> > >> > >Anyway, i was hoping someone could point me out to what system
> settings
> > >> > >could affect ejb2pb90 so i can get my configuration corrected.
> > >> > >
> > >> > >Greetings,
> > >> > >
> > >> > >Ben
> > >> > >
> > >> > >
> > >> >
> > >> > Jim O'Neil
> > >> > Principal Technical Support Engineer
> > >> > Sybase, Inc.
> > >> > Concord, MA
> > >>
> > >>
> > >
> > >
> >
> > Jim O'Neil
> > Principal Technical Support Engineer
> > Sybase, Inc.
> > Concord, MA
>
>


Vlad Zlotskiy Posted on 2004-02-24 18:11:47.0Z
From: "Vlad Zlotskiy" <vladz@imsi.com>
Newsgroups: sybase.public.powerbuilder.ejbclient
References: <359_uvsMWDHTDHA.298@forums-2-dub> <359_3f16da1d.14592362@forums.sybase.com> <359_#u5Vc6PTDHA.342@forums-2-dub> <359_uTWmHbQTDHA.145@forums-2-dub> <359_3f180049.2793386@forums.sybase.com> <359_eMkriqTTDHA.344@forums-2-dub> <3f40972c$1@forums-2-dub>
Subject: Re: ejb2pb90 (9.0.0.6111)
Lines: 253
Organization: IMS
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: exit.imsi.com
X-Original-NNTP-Posting-Host: exit.imsi.com
Message-ID: <403b93e3$1@forums-1-dub>
Date: 24 Feb 2004 10:11:47 -0800
X-Trace: forums-1-dub 1077646307 199.253.174.9 (24 Feb 2004 10:11:47 -0800)
X-Original-Trace: 24 Feb 2004 10:11:47 -0800, exit.imsi.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:247
Article PK: 424430

Hi, I am having exact same problem with proxy generator trying to locate
..Home class. Can you tell what was exactly wrong with your classpath/system
setting that caused this problem

Thank you very much
Vlad

"bede" <bede@nospam.sofico.be> wrote in message
news:3f40972c$1@forums-2-dub...
> Got the ejb2pb90 working now.. a matter of classpaths and system settings.
>
>
> "bede" <bede@nospam.sofico.be> wrote in message
> news:359_eMkriqTTDHA.344@forums-2-dub...
> > thx.. they're on the way
> >
> > "Jim O'Neil [Sybase]" <joneil@sybase.com> wrote in message
> > news:3f180049.2793386@forums.sybase.com...
> > > Can you e-mail me the two .java files? let me see if I can figure out
> > > what's going on here.
> > >
> > > On Fri, 18 Jul 2003 10:24:07 +0200, "bede" <bede@nospam.sofico.be>
> > > wrote:
> > >
> > > >I've tried it with an EJB that does not implement interfacing and
it's
> > still
> > > >the same problem...
> > > >javap shows everything nicely while ejb2pb90 has a problem with it.
> > > >
> > > >P:\HelloWorld>javap be.sofico.basecamp.test.bytearray.TestByteArray
> > > >Compiled from TestByteArray.java
> > > >public interface be.sofico.basecamp.test.bytearray.TestByteArray
> extends
> > > >javax.ejb.EJBObject {
> > > > public abstract java.lang.String getString();
> > > > public abstract
be.sofico.basecamp.sess.sessionmgmt.SessionSessPar
> > > >getSessionSessPar() throws java.rmi.RemoteExcepti
> > > >on;
> > > > public abstract byte getFileContent(java.lang.String)[] throws
> > > >java.rmi.RemoteException;
> > > >}
> > > >
> > > >P:\HelloWorld>javap
be.sofico.basecamp.test.bytearray.TestByteArrayHome
> > > >Compiled from TestByteArrayHome.java
> > > >public interface be.sofico.basecamp.test.bytearray.TestByteArrayHome
> > extends
> > > >javax.ejb.EJBHome {
> > > > public abstract be.sofico.basecamp.test.bytearray.TestByteArray
> > create()
> > > >throws java.rmi.RemoteException, javax.ejb.
> > > >CreateException;
> > > >}
> > > >
> > > >P:\HelloWorld>javap
be.sofico.basecamp.test.bytearray.TestByteArrayBean
> > > >Compiled from TestByteArrayBean.java
> > > >public class be.sofico.basecamp.test.bytearray.TestByteArrayBean
> extends
> > > >java.lang.Object implements javax.ejb.SessionBe
> > > >an {
> > > > protected boolean create() throws java.lang.Exception;
> > > > public be.sofico.basecamp.test.bytearray.TestByteArrayBean();
> > > > public void ejbActivate() throws javax.ejb.EJBException,
> > > >java.rmi.RemoteException;
> > > > public void ejbPassivate() throws javax.ejb.EJBException,
> > > >java.rmi.RemoteException;
> > > > public void ejbRemove() throws javax.ejb.EJBException,
> > > >java.rmi.RemoteException;
> > > > public void setSessionContext(javax.ejb.SessionContext) throws
> > > >javax.ejb.EJBException, java.rmi.RemoteException;
> > > > public void ejbCreate() throws javax.ejb.EJBException,
> > > >javax.ejb.CreateException;
> > > > public byte getFileContent(java.lang.String)[] throws
> > > >java.rmi.RemoteException;
> > > > public java.lang.String getString();
> > > > public be.sofico.basecamp.sess.sessionmgmt.SessionSessPar
> > > >getSessionSessPar() throws java.rmi.RemoteException;
> > > >}
> > > >
> > > >P:\HelloWorld>ejb2pb90
be.sofico.basecamp.test.bytearray.TestByteArray
> > > >
> > > >P:\HelloWorld>cat ejbproxies.err
> > > >Can't get information of
> > be.sofico.basecamp.test.bytearray.TestByteArrayHome
> > > >P:\HelloWorld>
> > > >
> > > >
> > > >
> > > >"bede" <bede@nospam.sofico.be> wrote in message
> > > >news:%23u5Vc6PTDHA.342@forums-2-dub...
> > > >> yes.. but that seems to work fine with javap (see output below).
> > > >> I was wondering, the fact that we are using interfaces, could this
be
> > the
> > > >> cause of this problem too?
> > > >> If this is so, then maybe it would be more appropriate to generate
> the
> > > >> proxies ourselves. If we were to know what proxies to expect for
what
> > > >> classes (and especially that mapping-structure) then we could make
> them
> > > >> without using ejb2pb90.. Any ideas?
> > > >>
> > > >> Ben
> > > >>
> > > >>
> > > >> P:\HelloWorld>javap
> > > >> be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSessionHome
> > > >> Compiled from SessionMgmtSessionHome.java
> > > >> public interface
> > > >be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSessionHome
> > > >> extends javax.ejb.EJBHome {
> > > >> public abstract
> > be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession
> > > >> create() throws java.rmi.RemoteException, jav
> > > >> ax.ejb.CreateException;
> > > >> }
> > > >>
> > > >>
> > > >> P:\HelloWorld>javap
> > be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession
> > > >> Compiled from SessionMgmtSession.java
> > > >> public interface
> be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession
> > > >> extends javax.ejb.EJBObject, be.sofico.basecamp.
> > > >> sess.sessionmgmt.ISessionMgmtSession {
> > > >> }
> > > >>
> > > >> P:\HelloWorld>
> > > >>
> > > >> "Jim O'Neil [Sybase]" <joneil@sybase.com> wrote in message
> > > >> news:3f16da1d.14592362@forums.sybase.com...
> > > >> > Ben,
> > > >> >
> > > >> > The class it's complaining about is SessionMgmtSessionHome not
> > > >> > SessionMgmtSession (at least in the ejb2pb90.exe example).
> > > >> > Doublecheck javap on that class.
> > > >> >
> > > >> >
> > > >> > On Thu, 17 Jul 2003 16:30:47 +0200, "bede"
<bede@nospam.sofico.be>
> > > >> > wrote:
> > > >> >
> > > >> > >Using PB 9.0 (5507 and now 6111) and trying to run EJBs with
> JBoss.
> > > >> > >
> > > >> > >I'm having problems with Generating Proxies a few months ago..
> > > >> > >one of the issues was that ejb2pb90.exe did not recognize the
> public
> > > >> > >variables defined in a java-class.
> > > >> > >
> > > >> > >anyway, today i got a fix for this (build 6111), installed it
and
> > when
> > > >> > >trying it i stumble upon another old problem (probably
> > > >> > >configuration-related) so i'm posting this one again hoping to
get
> > some
> > > >> more
> > > >> > >info from you guys (& Jims)
> > > >> > >
> > > >> > >* When generating the EJB Proxies from within the PB9 painter i
> get
> > > >this
> > > >> > >error/output:
> > > >> > ><error>
> > > >> > >EJB Proxy Generator Project Status
> > > >> > >Deployment PBL: P:\HelloWorld\milesproxies.pbl
> > > >> > >Prefix:
> > > >> > >Clear PBL on build: Yes
> > > >> > >Confirm overwrites: No
> > > >> > >Components selected :
> > > >> be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession
> > > >> > >Classpath : P:\HelloWorld\BaseCamp.jar
> > > >> > >Generation Errors:
> > > >> > > Deployment Error:
> > > >> > > No files returned for package/component:
> > > >> > >'be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession'.
> > > >> > > Error code: Unknown.
> > > >> > > Proxy was not created.
> > > >> > ></error>
> > > >> > >
> > > >> > >* When i try it on the command prompt it fails as well, however,
> > javap
> > > >> does
> > > >> > >show the correct info...and as you can see, the jar is included
in
> > the
> > > >> > >system's ClassPath so definitely reachable.
> > > >> > >
> > > >> > ><CommandPrompt>
> > > >> > >P:\HelloWorld>
> > > >> > >P:\HelloWorld>echo %CLASSPATH%
> > > >> >
>P:\HelloWorld\BaseCamp.jar;C:\j2sdkee1.3.1\lib\j2ee.jar;C:\Program
> > > >> > >Files\Altova\xmlspy\XMLSpyInterface.jar;;C:\Program F
> > > >> > >iles\Sybase\Shared\PowerBuilder\jdk14
> > > >> > >
> > > >> > >P:\HelloWorld>ejb2pb90.exe
> > > >> > >be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession
> > > >> > >
> > > >> > >P:\HelloWorld>cat ejbproxies.err
> > > >> > >Can't get information of
> > > >> > >be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSessionHome
> > > >> > >P:\HelloWorld>javap
> > > >> be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession
> > > >> > >Compiled from SessionMgmtSession.java
> > > >> > >public interface
> > be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession
> > > >> > >extends javax.ejb.EJBObject, be.sofico.basecamp.
> > > >> > >sess.sessionmgmt.ISessionMgmtSession {
> > > >> > >}
> > > >> > >
> > > >> > >P:\HelloWorld>
> > > >> > ></CommandPrompt>
> > > >> > >
> > > >> > >I had this problem before also, but now and then (for no
> > identifyable
> > > >> reason
> > > >> > >it sometimes did generate the proxies/stubs)
> > > >> > >
> > > >> > >Anyway, i was hoping someone could point me out to what system
> > settings
> > > >> > >could affect ejb2pb90 so i can get my configuration corrected.
> > > >> > >
> > > >> > >Greetings,
> > > >> > >
> > > >> > >Ben
> > > >> > >
> > > >> > >
> > > >> >
> > > >> > Jim O'Neil
> > > >> > Principal Technical Support Engineer
> > > >> > Sybase, Inc.
> > > >> > Concord, MA
> > > >>
> > > >>
> > > >
> > > >
> > >
> > > Jim O'Neil
> > > Principal Technical Support Engineer
> > > Sybase, Inc.
> > > Concord, MA
> >
> >
>
>


bede Posted on 2004-02-25 08:25:57.0Z
From: "bede" <bede@nospam.sofico.be>
Newsgroups: sybase.public.powerbuilder.ejbclient
References: <359_uvsMWDHTDHA.298@forums-2-dub> <359_3f16da1d.14592362@forums.sybase.com> <359_#u5Vc6PTDHA.342@forums-2-dub> <359_uTWmHbQTDHA.145@forums-2-dub> <359_3f180049.2793386@forums.sybase.com> <359_eMkriqTTDHA.344@forums-2-dub> <3f40972c$1@forums-2-dub> <403b93e3$1@forums-1-dub>
Subject: Re: ejb2pb90 (9.0.0.6111)
Lines: 319
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-226.unknown.uunet.be
X-Original-NNTP-Posting-Host: uu194-7-38-226.unknown.uunet.be
Message-ID: <403c5c15@forums-1-dub>
Date: 25 Feb 2004 00:25:57 -0800
X-Trace: forums-1-dub 1077697557 194.7.38.226 (25 Feb 2004 00:25:57 -0800)
X-Original-Trace: 25 Feb 2004 00:25:57 -0800, uu194-7-38-226.unknown.uunet.be
X-Authenticated-User: pbtenbeta
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:248
Article PK: 424431

you're lucky.. aftre a break (too busy with other things) I've just picked
up last week:
Currently I'm using PB 9.0.1 version 6533 and 7096. version 6111 had a bug
(public variables were not seen by ejb2pb90)
so you'd better upgrade as well.

The following is a script (generate.cmd) which we use to generate the
proxies.

<START SCRIPT>
@echo off
REM ****************************
REM * Generate Proxy Objects *
REM ****************************

set GenClassPath="C:\Program
Files\Sybase\EAServer4.2.1\java\lib\easclient.jar;C:\Program
Files\Sybase\EAServer4.2.1\java\lib\easj2ee.jar;L:\html\classes;L:\java\clas
ses;C:\Program
Files\Sybase\Shared\Sun\jdk\jdk1.3\jre\lib\rt.jar;L:\java\classes\app.jar;."

set GenClassName=be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession

cls
REM @Echo JAVAP SessionMgmtSession:
REM javap -classpath %GenClassPath% %GenClassName%

@del ejbproxies.err > nul 2>&1
@del ejbproxies.txt > nul 2>&1

ejb2pb90.exe -classpath %GenClassPath% %GenClassName%

REM Log error or generated proxy list
type ejbproxies.err
type ejbproxies.txt

@ECHO Done

<END SCRIPT>

Some remarks:
- The L-drive is mapped to the EAServer directory.
- The correct EJB stubs need to be generated at serverlevel (in order for
the lookup to succeed). Correct being the EJB stubs, not the CORBA-EJB
stubs. After generating these, some stuff is being generated in java\classes
(as we expected) and some in \html\classes (which we didn't expect) so
that's why this directory is in the classpath.

Hope this gets you going,

Ben

"Vlad Zlotskiy" <vladz@imsi.com> wrote in message
news:403b93e3$1@forums-1-dub...
> Hi, I am having exact same problem with proxy generator trying to locate
> ..Home class. Can you tell what was exactly wrong with your
classpath/system
> setting that caused this problem
>
> Thank you very much
> Vlad
> "bede" <bede@nospam.sofico.be> wrote in message
> news:3f40972c$1@forums-2-dub...
> > Got the ejb2pb90 working now.. a matter of classpaths and system setting
s.
> >
> >
> > "bede" <bede@nospam.sofico.be> wrote in message
> > news:359_eMkriqTTDHA.344@forums-2-dub...
> > > thx.. they're on the way
> > >
> > > "Jim O'Neil [Sybase]" <joneil@sybase.com> wrote in message
> > > news:3f180049.2793386@forums.sybase.com...
> > > > Can you e-mail me the two .java files? let me see if I can figure
out
> > > > what's going on here.
> > > >
> > > > On Fri, 18 Jul 2003 10:24:07 +0200, "bede" <bede@nospam.sofico.be>
> > > > wrote:
> > > >
> > > > >I've tried it with an EJB that does not implement interfacing and
> it's
> > > still
> > > > >the same problem...
> > > > >javap shows everything nicely while ejb2pb90 has a problem with it.
> > > > >
> > > > >P:\HelloWorld>javap be.sofico.basecamp.test.bytearray.TestByteArray
> > > > >Compiled from TestByteArray.java
> > > > >public interface be.sofico.basecamp.test.bytearray.TestByteArray
> > extends
> > > > >javax.ejb.EJBObject {
> > > > > public abstract java.lang.String getString();
> > > > > public abstract
> be.sofico.basecamp.sess.sessionmgmt.SessionSessPar
> > > > >getSessionSessPar() throws java.rmi.RemoteExcepti
> > > > >on;
> > > > > public abstract byte getFileContent(java.lang.String)[] throws
> > > > >java.rmi.RemoteException;
> > > > >}
> > > > >
> > > > >P:\HelloWorld>javap
> be.sofico.basecamp.test.bytearray.TestByteArrayHome
> > > > >Compiled from TestByteArrayHome.java
> > > > >public interface
be.sofico.basecamp.test.bytearray.TestByteArrayHome
> > > extends
> > > > >javax.ejb.EJBHome {
> > > > > public abstract be.sofico.basecamp.test.bytearray.TestByteArray
> > > create()
> > > > >throws java.rmi.RemoteException, javax.ejb.
> > > > >CreateException;
> > > > >}
> > > > >
> > > > >P:\HelloWorld>javap
> be.sofico.basecamp.test.bytearray.TestByteArrayBean
> > > > >Compiled from TestByteArrayBean.java
> > > > >public class be.sofico.basecamp.test.bytearray.TestByteArrayBean
> > extends
> > > > >java.lang.Object implements javax.ejb.SessionBe
> > > > >an {
> > > > > protected boolean create() throws java.lang.Exception;
> > > > > public be.sofico.basecamp.test.bytearray.TestByteArrayBean();
> > > > > public void ejbActivate() throws javax.ejb.EJBException,
> > > > >java.rmi.RemoteException;
> > > > > public void ejbPassivate() throws javax.ejb.EJBException,
> > > > >java.rmi.RemoteException;
> > > > > public void ejbRemove() throws javax.ejb.EJBException,
> > > > >java.rmi.RemoteException;
> > > > > public void setSessionContext(javax.ejb.SessionContext) throws
> > > > >javax.ejb.EJBException, java.rmi.RemoteException;
> > > > > public void ejbCreate() throws javax.ejb.EJBException,
> > > > >javax.ejb.CreateException;
> > > > > public byte getFileContent(java.lang.String)[] throws
> > > > >java.rmi.RemoteException;
> > > > > public java.lang.String getString();
> > > > > public be.sofico.basecamp.sess.sessionmgmt.SessionSessPar
> > > > >getSessionSessPar() throws java.rmi.RemoteException;
> > > > >}
> > > > >
> > > > >P:\HelloWorld>ejb2pb90
> be.sofico.basecamp.test.bytearray.TestByteArray
> > > > >
> > > > >P:\HelloWorld>cat ejbproxies.err
> > > > >Can't get information of
> > > be.sofico.basecamp.test.bytearray.TestByteArrayHome
> > > > >P:\HelloWorld>
> > > > >
> > > > >
> > > > >
> > > > >"bede" <bede@nospam.sofico.be> wrote in message
> > > > >news:%23u5Vc6PTDHA.342@forums-2-dub...
> > > > >> yes.. but that seems to work fine with javap (see output below).
> > > > >> I was wondering, the fact that we are using interfaces, could
this
> be
> > > the
> > > > >> cause of this problem too?
> > > > >> If this is so, then maybe it would be more appropriate to
generate
> > the
> > > > >> proxies ourselves. If we were to know what proxies to expect for
> what
> > > > >> classes (and especially that mapping-structure) then we could
make
> > them
> > > > >> without using ejb2pb90.. Any ideas?
> > > > >>
> > > > >> Ben
> > > > >>
> > > > >>
> > > > >> P:\HelloWorld>javap
> > > > >> be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSessionHome
> > > > >> Compiled from SessionMgmtSessionHome.java
> > > > >> public interface
> > > > >be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSessionHome
> > > > >> extends javax.ejb.EJBHome {
> > > > >> public abstract
> > > be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession
> > > > >> create() throws java.rmi.RemoteException, jav
> > > > >> ax.ejb.CreateException;
> > > > >> }
> > > > >>
> > > > >>
> > > > >> P:\HelloWorld>javap
> > > be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession
> > > > >> Compiled from SessionMgmtSession.java
> > > > >> public interface
> > be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession
> > > > >> extends javax.ejb.EJBObject, be.sofico.basecamp.
> > > > >> sess.sessionmgmt.ISessionMgmtSession {
> > > > >> }
> > > > >>
> > > > >> P:\HelloWorld>
> > > > >>
> > > > >> "Jim O'Neil [Sybase]" <joneil@sybase.com> wrote in message
> > > > >> news:3f16da1d.14592362@forums.sybase.com...
> > > > >> > Ben,
> > > > >> >
> > > > >> > The class it's complaining about is SessionMgmtSessionHome not
> > > > >> > SessionMgmtSession (at least in the ejb2pb90.exe example).
> > > > >> > Doublecheck javap on that class.
> > > > >> >
> > > > >> >
> > > > >> > On Thu, 17 Jul 2003 16:30:47 +0200, "bede"
> <bede@nospam.sofico.be>
> > > > >> > wrote:
> > > > >> >
> > > > >> > >Using PB 9.0 (5507 and now 6111) and trying to run EJBs with
> > JBoss.
> > > > >> > >
> > > > >> > >I'm having problems with Generating Proxies a few months ago..
> > > > >> > >one of the issues was that ejb2pb90.exe did not recognize the
> > public
> > > > >> > >variables defined in a java-class.
> > > > >> > >
> > > > >> > >anyway, today i got a fix for this (build 6111), installed it
> and
> > > when
> > > > >> > >trying it i stumble upon another old problem (probably
> > > > >> > >configuration-related) so i'm posting this one again hoping to
> get
> > > some
> > > > >> more
> > > > >> > >info from you guys (& Jims)
> > > > >> > >
> > > > >> > >* When generating the EJB Proxies from within the PB9 painter
i
> > get
> > > > >this
> > > > >> > >error/output:
> > > > >> > ><error>
> > > > >> > >EJB Proxy Generator Project Status
> > > > >> > >Deployment PBL: P:\HelloWorld\milesproxies.pbl
> > > > >> > >Prefix:
> > > > >> > >Clear PBL on build: Yes
> > > > >> > >Confirm overwrites: No
> > > > >> > >Components selected :
> > > > >> be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession
> > > > >> > >Classpath : P:\HelloWorld\BaseCamp.jar
> > > > >> > >Generation Errors:
> > > > >> > > Deployment Error:
> > > > >> > > No files returned for package/component:
> > > > >> > >'be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession'.
> > > > >> > > Error code: Unknown.
> > > > >> > > Proxy was not created.
> > > > >> > ></error>
> > > > >> > >
> > > > >> > >* When i try it on the command prompt it fails as well,
however,
> > > javap
> > > > >> does
> > > > >> > >show the correct info...and as you can see, the jar is
included
> in
> > > the
> > > > >> > >system's ClassPath so definitely reachable.
> > > > >> > >
> > > > >> > ><CommandPrompt>
> > > > >> > >P:\HelloWorld>
> > > > >> > >P:\HelloWorld>echo %CLASSPATH%
> > > > >> >
> >P:\HelloWorld\BaseCamp.jar;C:\j2sdkee1.3.1\lib\j2ee.jar;C:\Program
> > > > >> > >Files\Altova\xmlspy\XMLSpyInterface.jar;;C:\Program F
> > > > >> > >iles\Sybase\Shared\PowerBuilder\jdk14
> > > > >> > >
> > > > >> > >P:\HelloWorld>ejb2pb90.exe
> > > > >> > >be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession
> > > > >> > >
> > > > >> > >P:\HelloWorld>cat ejbproxies.err
> > > > >> > >Can't get information of
> > > > >> > >be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSessionHome
> > > > >> > >P:\HelloWorld>javap
> > > > >> be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession
> > > > >> > >Compiled from SessionMgmtSession.java
> > > > >> > >public interface
> > > be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession
> > > > >> > >extends javax.ejb.EJBObject, be.sofico.basecamp.
> > > > >> > >sess.sessionmgmt.ISessionMgmtSession {
> > > > >> > >}
> > > > >> > >
> > > > >> > >P:\HelloWorld>
> > > > >> > ></CommandPrompt>
> > > > >> > >
> > > > >> > >I had this problem before also, but now and then (for no
> > > identifyable
> > > > >> reason
> > > > >> > >it sometimes did generate the proxies/stubs)
> > > > >> > >
> > > > >> > >Anyway, i was hoping someone could point me out to what system
> > > settings
> > > > >> > >could affect ejb2pb90 so i can get my configuration corrected.
> > > > >> > >
> > > > >> > >Greetings,
> > > > >> > >
> > > > >> > >Ben
> > > > >> > >
> > > > >> > >
> > > > >> >
> > > > >> > Jim O'Neil
> > > > >> > Principal Technical Support Engineer
> > > > >> > Sybase, Inc.
> > > > >> > Concord, MA
> > > > >>
> > > > >>
> > > > >
> > > > >
> > > >
> > > > Jim O'Neil
> > > > Principal Technical Support Engineer
> > > > Sybase, Inc.
> > > > Concord, MA
> > >
> > >
> >
> >
>
>


Vlad Zlotskiy Posted on 2004-03-08 18:13:40.0Z
From: "Vlad Zlotskiy" <vladz@imsi.com>
Newsgroups: sybase.public.powerbuilder.ejbclient
References: <359_uvsMWDHTDHA.298@forums-2-dub> <359_3f16da1d.14592362@forums.sybase.com> <359_#u5Vc6PTDHA.342@forums-2-dub> <359_uTWmHbQTDHA.145@forums-2-dub> <359_3f180049.2793386@forums.sybase.com> <359_eMkriqTTDHA.344@forums-2-dub> <3f40972c$1@forums-2-dub> <403b93e3$1@forums-1-dub> <403c5c15@forums-1-dub>
Subject: Re: ejb2pb90 (9.0.0.6111)
Lines: 374
Organization: IMS
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
X-Original-NNTP-Posting-Host: exit.imsi.com
Message-ID: <404cb80e$1@forums-2-dub>
X-Original-Trace: 8 Mar 2004 10:14:38 -0800, exit.imsi.com
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 8 Mar 2004 10:11:51 -0800, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 8 Mar 2004 10:13:40 -0800
X-Trace: forums-1-dub 1078769620 10.22.108.75 (8 Mar 2004 10:13:40 -0800)
X-Original-Trace: 8 Mar 2004 10:13:40 -0800, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:259
Article PK: 424442

Ben,
I used your bat file as a template , but I still can not make it run. The
javap in the .BAT file finds both Convereter.class and its
ConverterHome.class and the ejb2pb90.exe keeps complaining with the message
Can't get information of ConverterHome The system cannot find the file
specified.
I am not sure which file is missing , may be some jar. Also I was not sure
about EAServer environment. I really do not need it in this case, but I
faithfully installed it and supplied all the necessary jars in the
CLASSPATH. What about PATH variable is there anything special that should be
included, besides java binaries and Shared/Powerbuilder files

Compiled from Converter.java
public class Converter extends java.lang.Object {
double yenRate;
double euroRate;
public Converter();
public double dollarToYen(double);
public double yenToEuro(double);
}
Compiled from ConverterHome.java
public interface ConverterHome
/* ACC_SUPER bit NOT set */
{
}
Can't get information of ConverterHomeThe system cannot find the file
specified.
Done
I appreciate your help

Vlad

"bede" <bede@nospam.sofico.be> wrote in message
news:403c5c15@forums-1-dub...
> you're lucky.. aftre a break (too busy with other things) I've just picked
> up last week:
> Currently I'm using PB 9.0.1 version 6533 and 7096. version 6111 had a bug
> (public variables were not seen by ejb2pb90)
> so you'd better upgrade as well.
>
> The following is a script (generate.cmd) which we use to generate the
> proxies.
>
> <START SCRIPT>
> @echo off
> REM ****************************
> REM * Generate Proxy Objects *
> REM ****************************
>
> set GenClassPath="C:\Program
> Files\Sybase\EAServer4.2.1\java\lib\easclient.jar;C:\Program
>
Files\Sybase\EAServer4.2.1\java\lib\easj2ee.jar;L:\html\classes;L:\java\clas
> ses;C:\Program
>
Files\Sybase\Shared\Sun\jdk\jdk1.3\jre\lib\rt.jar;L:\java\classes\app.jar;."
>
> set GenClassName=be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession
>
> cls
> REM @Echo JAVAP SessionMgmtSession:
> REM javap -classpath %GenClassPath% %GenClassName%
>
> @del ejbproxies.err > nul 2>&1
> @del ejbproxies.txt > nul 2>&1
>
> ejb2pb90.exe -classpath %GenClassPath% %GenClassName%
>
> REM Log error or generated proxy list
> type ejbproxies.err
> type ejbproxies.txt
>
> @ECHO Done
>
> <END SCRIPT>
>
> Some remarks:
> - The L-drive is mapped to the EAServer directory.
> - The correct EJB stubs need to be generated at serverlevel (in order for
> the lookup to succeed). Correct being the EJB stubs, not the CORBA-EJB
> stubs. After generating these, some stuff is being generated in
java\classes
> (as we expected) and some in \html\classes (which we didn't expect) so
> that's why this directory is in the classpath.
>
> Hope this gets you going,
>
> Ben
>
> "Vlad Zlotskiy" <vladz@imsi.com> wrote in message
> news:403b93e3$1@forums-1-dub...
> > Hi, I am having exact same problem with proxy generator trying to locate
> > ..Home class. Can you tell what was exactly wrong with your
> classpath/system
> > setting that caused this problem
> >
> > Thank you very much
> > Vlad
> > "bede" <bede@nospam.sofico.be> wrote in message
> > news:3f40972c$1@forums-2-dub...
> > > Got the ejb2pb90 working now.. a matter of classpaths and system
setting
> s.
> > >
> > >
> > > "bede" <bede@nospam.sofico.be> wrote in message
> > > news:359_eMkriqTTDHA.344@forums-2-dub...
> > > > thx.. they're on the way
> > > >
> > > > "Jim O'Neil [Sybase]" <joneil@sybase.com> wrote in message
> > > > news:3f180049.2793386@forums.sybase.com...
> > > > > Can you e-mail me the two .java files? let me see if I can figure
> out
> > > > > what's going on here.
> > > > >
> > > > > On Fri, 18 Jul 2003 10:24:07 +0200, "bede" <bede@nospam.sofico.be>
> > > > > wrote:
> > > > >
> > > > > >I've tried it with an EJB that does not implement interfacing and
> > it's
> > > > still
> > > > > >the same problem...
> > > > > >javap shows everything nicely while ejb2pb90 has a problem with
it.
> > > > > >
> > > > > >P:\HelloWorld>javap
be.sofico.basecamp.test.bytearray.TestByteArray
> > > > > >Compiled from TestByteArray.java
> > > > > >public interface be.sofico.basecamp.test.bytearray.TestByteArray
> > > extends
> > > > > >javax.ejb.EJBObject {
> > > > > > public abstract java.lang.String getString();
> > > > > > public abstract
> > be.sofico.basecamp.sess.sessionmgmt.SessionSessPar
> > > > > >getSessionSessPar() throws java.rmi.RemoteExcepti
> > > > > >on;
> > > > > > public abstract byte getFileContent(java.lang.String)[]
throws
> > > > > >java.rmi.RemoteException;
> > > > > >}
> > > > > >
> > > > > >P:\HelloWorld>javap
> > be.sofico.basecamp.test.bytearray.TestByteArrayHome
> > > > > >Compiled from TestByteArrayHome.java
> > > > > >public interface
> be.sofico.basecamp.test.bytearray.TestByteArrayHome
> > > > extends
> > > > > >javax.ejb.EJBHome {
> > > > > > public abstract
be.sofico.basecamp.test.bytearray.TestByteArray
> > > > create()
> > > > > >throws java.rmi.RemoteException, javax.ejb.
> > > > > >CreateException;
> > > > > >}
> > > > > >
> > > > > >P:\HelloWorld>javap
> > be.sofico.basecamp.test.bytearray.TestByteArrayBean
> > > > > >Compiled from TestByteArrayBean.java
> > > > > >public class be.sofico.basecamp.test.bytearray.TestByteArrayBean
> > > extends
> > > > > >java.lang.Object implements javax.ejb.SessionBe
> > > > > >an {
> > > > > > protected boolean create() throws java.lang.Exception;
> > > > > > public be.sofico.basecamp.test.bytearray.TestByteArrayBean();
> > > > > > public void ejbActivate() throws javax.ejb.EJBException,
> > > > > >java.rmi.RemoteException;
> > > > > > public void ejbPassivate() throws javax.ejb.EJBException,
> > > > > >java.rmi.RemoteException;
> > > > > > public void ejbRemove() throws javax.ejb.EJBException,
> > > > > >java.rmi.RemoteException;
> > > > > > public void setSessionContext(javax.ejb.SessionContext)
throws
> > > > > >javax.ejb.EJBException, java.rmi.RemoteException;
> > > > > > public void ejbCreate() throws javax.ejb.EJBException,
> > > > > >javax.ejb.CreateException;
> > > > > > public byte getFileContent(java.lang.String)[] throws
> > > > > >java.rmi.RemoteException;
> > > > > > public java.lang.String getString();
> > > > > > public be.sofico.basecamp.sess.sessionmgmt.SessionSessPar
> > > > > >getSessionSessPar() throws java.rmi.RemoteException;
> > > > > >}
> > > > > >
> > > > > >P:\HelloWorld>ejb2pb90
> > be.sofico.basecamp.test.bytearray.TestByteArray
> > > > > >
> > > > > >P:\HelloWorld>cat ejbproxies.err
> > > > > >Can't get information of
> > > > be.sofico.basecamp.test.bytearray.TestByteArrayHome
> > > > > >P:\HelloWorld>
> > > > > >
> > > > > >
> > > > > >
> > > > > >"bede" <bede@nospam.sofico.be> wrote in message
> > > > > >news:%23u5Vc6PTDHA.342@forums-2-dub...
> > > > > >> yes.. but that seems to work fine with javap (see output
below).
> > > > > >> I was wondering, the fact that we are using interfaces, could
> this
> > be
> > > > the
> > > > > >> cause of this problem too?
> > > > > >> If this is so, then maybe it would be more appropriate to
> generate
> > > the
> > > > > >> proxies ourselves. If we were to know what proxies to expect
for
> > what
> > > > > >> classes (and especially that mapping-structure) then we could
> make
> > > them
> > > > > >> without using ejb2pb90.. Any ideas?
> > > > > >>
> > > > > >> Ben
> > > > > >>
> > > > > >>
> > > > > >> P:\HelloWorld>javap
> > > > > >> be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSessionHome
> > > > > >> Compiled from SessionMgmtSessionHome.java
> > > > > >> public interface
> > > > > >be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSessionHome
> > > > > >> extends javax.ejb.EJBHome {
> > > > > >> public abstract
> > > > be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession
> > > > > >> create() throws java.rmi.RemoteException, jav
> > > > > >> ax.ejb.CreateException;
> > > > > >> }
> > > > > >>
> > > > > >>
> > > > > >> P:\HelloWorld>javap
> > > > be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession
> > > > > >> Compiled from SessionMgmtSession.java
> > > > > >> public interface
> > > be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession
> > > > > >> extends javax.ejb.EJBObject, be.sofico.basecamp.
> > > > > >> sess.sessionmgmt.ISessionMgmtSession {
> > > > > >> }
> > > > > >>
> > > > > >> P:\HelloWorld>
> > > > > >>
> > > > > >> "Jim O'Neil [Sybase]" <joneil@sybase.com> wrote in message
> > > > > >> news:3f16da1d.14592362@forums.sybase.com...
> > > > > >> > Ben,
> > > > > >> >
> > > > > >> > The class it's complaining about is SessionMgmtSessionHome
not
> > > > > >> > SessionMgmtSession (at least in the ejb2pb90.exe example).
> > > > > >> > Doublecheck javap on that class.
> > > > > >> >
> > > > > >> >
> > > > > >> > On Thu, 17 Jul 2003 16:30:47 +0200, "bede"
> > <bede@nospam.sofico.be>
> > > > > >> > wrote:
> > > > > >> >
> > > > > >> > >Using PB 9.0 (5507 and now 6111) and trying to run EJBs with
> > > JBoss.
> > > > > >> > >
> > > > > >> > >I'm having problems with Generating Proxies a few months
ago..
> > > > > >> > >one of the issues was that ejb2pb90.exe did not recognize
the
> > > public
> > > > > >> > >variables defined in a java-class.
> > > > > >> > >
> > > > > >> > >anyway, today i got a fix for this (build 6111), installed
it
> > and
> > > > when
> > > > > >> > >trying it i stumble upon another old problem (probably
> > > > > >> > >configuration-related) so i'm posting this one again hoping
to
> > get
> > > > some
> > > > > >> more
> > > > > >> > >info from you guys (& Jims)
> > > > > >> > >
> > > > > >> > >* When generating the EJB Proxies from within the PB9
painter
> i
> > > get
> > > > > >this
> > > > > >> > >error/output:
> > > > > >> > ><error>
> > > > > >> > >EJB Proxy Generator Project Status
> > > > > >> > >Deployment PBL: P:\HelloWorld\milesproxies.pbl
> > > > > >> > >Prefix:
> > > > > >> > >Clear PBL on build: Yes
> > > > > >> > >Confirm overwrites: No
> > > > > >> > >Components selected :
> > > > > >> be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession
> > > > > >> > >Classpath : P:\HelloWorld\BaseCamp.jar
> > > > > >> > >Generation Errors:
> > > > > >> > > Deployment Error:
> > > > > >> > > No files returned for package/component:
> > > > > >> > >'be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession'.
> > > > > >> > > Error code: Unknown.
> > > > > >> > > Proxy was not created.
> > > > > >> > ></error>
> > > > > >> > >
> > > > > >> > >* When i try it on the command prompt it fails as well,
> however,
> > > > javap
> > > > > >> does
> > > > > >> > >show the correct info...and as you can see, the jar is
> included
> > in
> > > > the
> > > > > >> > >system's ClassPath so definitely reachable.
> > > > > >> > >
> > > > > >> > ><CommandPrompt>
> > > > > >> > >P:\HelloWorld>
> > > > > >> > >P:\HelloWorld>echo %CLASSPATH%
> > > > > >> >
> > >P:\HelloWorld\BaseCamp.jar;C:\j2sdkee1.3.1\lib\j2ee.jar;C:\Program
> > > > > >> > >Files\Altova\xmlspy\XMLSpyInterface.jar;;C:\Program F
> > > > > >> > >iles\Sybase\Shared\PowerBuilder\jdk14
> > > > > >> > >
> > > > > >> > >P:\HelloWorld>ejb2pb90.exe
> > > > > >> > >be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession
> > > > > >> > >
> > > > > >> > >P:\HelloWorld>cat ejbproxies.err
> > > > > >> > >Can't get information of
> > > > > >> > >be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSessionHome
> > > > > >> > >P:\HelloWorld>javap
> > > > > >> be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession
> > > > > >> > >Compiled from SessionMgmtSession.java
> > > > > >> > >public interface
> > > > be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession
> > > > > >> > >extends javax.ejb.EJBObject, be.sofico.basecamp.
> > > > > >> > >sess.sessionmgmt.ISessionMgmtSession {
> > > > > >> > >}
> > > > > >> > >
> > > > > >> > >P:\HelloWorld>
> > > > > >> > ></CommandPrompt>
> > > > > >> > >
> > > > > >> > >I had this problem before also, but now and then (for no
> > > > identifyable
> > > > > >> reason
> > > > > >> > >it sometimes did generate the proxies/stubs)
> > > > > >> > >
> > > > > >> > >Anyway, i was hoping someone could point me out to what
system
> > > > settings
> > > > > >> > >could affect ejb2pb90 so i can get my configuration
corrected.
> > > > > >> > >
> > > > > >> > >Greetings,
> > > > > >> > >
> > > > > >> > >Ben
> > > > > >> > >
> > > > > >> > >
> > > > > >> >
> > > > > >> > Jim O'Neil
> > > > > >> > Principal Technical Support Engineer
> > > > > >> > Sybase, Inc.
> > > > > >> > Concord, MA
> > > > > >>
> > > > > >>
> > > > > >
> > > > > >
> > > > >
> > > > > Jim O'Neil
> > > > > Principal Technical Support Engineer
> > > > > Sybase, Inc.
> > > > > Concord, MA
> > > >
> > > >
> > >
> > >
> >
> >
>
>


bede Posted on 2004-03-09 07:31:39.0Z
From: "bede" <bedenosp@m.sofico.be>
Newsgroups: sybase.public.powerbuilder.ejbclient
References: <359_uvsMWDHTDHA.298@forums-2-dub> <359_3f16da1d.14592362@forums.sybase.com> <359_#u5Vc6PTDHA.342@forums-2-dub> <359_uTWmHbQTDHA.145@forums-2-dub> <359_3f180049.2793386@forums.sybase.com> <359_eMkriqTTDHA.344@forums-2-dub> <3f40972c$1@forums-2-dub> <403b93e3$1@forums-1-dub> <403c5c15@forums-1-dub> <404cb80e$1@forums-2-dub>
Subject: Re: ejb2pb90 (9.0.0.6111)
Lines: 407
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
X-Original-NNTP-Posting-Host: uu194-7-38-226.unknown.uunet.be
Message-ID: <404d7313@forums-2-dub>
X-Original-Trace: 8 Mar 2004 23:32:35 -0800, uu194-7-38-226.unknown.uunet.be
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 8 Mar 2004 23:29:42 -0800, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 8 Mar 2004 23:31:39 -0800
X-Trace: forums-1-dub 1078817499 10.22.108.75 (8 Mar 2004 23:31:39 -0800)
X-Original-Trace: 8 Mar 2004 23:31:39 -0800, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:260
Article PK: 424443

Hi Vlad,

i think your Converter class is not an EJB

it needs to have: public class Converter implements javax.ejb.SessionBean

instead of: public class Converter extends java.lang.Object

Hope this helps,

Ben

"Vlad Zlotskiy" <vladz@imsi.com> wrote in message
news:404cb80e$1@forums-2-dub...
> Ben,
> I used your bat file as a template , but I still can not make it run. The
> javap in the .BAT file finds both Convereter.class and its
> ConverterHome.class and the ejb2pb90.exe keeps complaining with the
message
> Can't get information of ConverterHome The system cannot find the file
> specified.
> I am not sure which file is missing , may be some jar. Also I was not sure
> about EAServer environment. I really do not need it in this case, but I
> faithfully installed it and supplied all the necessary jars in the
> CLASSPATH. What about PATH variable is there anything special that should
be
> included, besides java binaries and Shared/Powerbuilder files
>
> Compiled from Converter.java
> public class Converter extends java.lang.Object {
> double yenRate;
> double euroRate;
> public Converter();
> public double dollarToYen(double);
> public double yenToEuro(double);
> }
> Compiled from ConverterHome.java
> public interface ConverterHome
> /* ACC_SUPER bit NOT set */
> {
> }
> Can't get information of ConverterHomeThe system cannot find the file
> specified.
> Done
> I appreciate your help
>
> Vlad
>
> "bede" <bede@nospam.sofico.be> wrote in message
> news:403c5c15@forums-1-dub...
> > you're lucky.. aftre a break (too busy with other things) I've just
picked
> > up last week:
> > Currently I'm using PB 9.0.1 version 6533 and 7096. version 6111 had a
bug
> > (public variables were not seen by ejb2pb90)
> > so you'd better upgrade as well.
> >
> > The following is a script (generate.cmd) which we use to generate the
> > proxies.
> >
> > <START SCRIPT>
> > @echo off
> > REM ****************************
> > REM * Generate Proxy Objects *
> > REM ****************************
> >
> > set GenClassPath="C:\Program
> > Files\Sybase\EAServer4.2.1\java\lib\easclient.jar;C:\Program
> >
>
Files\Sybase\EAServer4.2.1\java\lib\easj2ee.jar;L:\html\classes;L:\java\clas
> > ses;C:\Program
> >
>
Files\Sybase\Shared\Sun\jdk\jdk1.3\jre\lib\rt.jar;L:\java\classes\app.jar;."
> >
> > set GenClassName=be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession
> >
> > cls
> > REM @Echo JAVAP SessionMgmtSession:
> > REM javap -classpath %GenClassPath% %GenClassName%
> >
> > @del ejbproxies.err > nul 2>&1
> > @del ejbproxies.txt > nul 2>&1
> >
> > ejb2pb90.exe -classpath %GenClassPath% %GenClassName%
> >
> > REM Log error or generated proxy list
> > type ejbproxies.err
> > type ejbproxies.txt
> >
> > @ECHO Done
> >
> > <END SCRIPT>
> >
> > Some remarks:
> > - The L-drive is mapped to the EAServer directory.
> > - The correct EJB stubs need to be generated at serverlevel (in order
for
> > the lookup to succeed). Correct being the EJB stubs, not the CORBA-EJB
> > stubs. After generating these, some stuff is being generated in
> java\classes
> > (as we expected) and some in \html\classes (which we didn't expect) so
> > that's why this directory is in the classpath.
> >
> > Hope this gets you going,
> >
> > Ben
> >
> > "Vlad Zlotskiy" <vladz@imsi.com> wrote in message
> > news:403b93e3$1@forums-1-dub...
> > > Hi, I am having exact same problem with proxy generator trying to
locate
> > > ..Home class. Can you tell what was exactly wrong with your
> > classpath/system
> > > setting that caused this problem
> > >
> > > Thank you very much
> > > Vlad
> > > "bede" <bede@nospam.sofico.be> wrote in message
> > > news:3f40972c$1@forums-2-dub...
> > > > Got the ejb2pb90 working now.. a matter of classpaths and system
> setting
> > s.
> > > >
> > > >
> > > > "bede" <bede@nospam.sofico.be> wrote in message
> > > > news:359_eMkriqTTDHA.344@forums-2-dub...
> > > > > thx.. they're on the way
> > > > >
> > > > > "Jim O'Neil [Sybase]" <joneil@sybase.com> wrote in message
> > > > > news:3f180049.2793386@forums.sybase.com...
> > > > > > Can you e-mail me the two .java files? let me see if I can
figure
> > out
> > > > > > what's going on here.
> > > > > >
> > > > > > On Fri, 18 Jul 2003 10:24:07 +0200, "bede"
<bede@nospam.sofico.be>
> > > > > > wrote:
> > > > > >
> > > > > > >I've tried it with an EJB that does not implement interfacing
and
> > > it's
> > > > > still
> > > > > > >the same problem...
> > > > > > >javap shows everything nicely while ejb2pb90 has a problem with
> it.
> > > > > > >
> > > > > > >P:\HelloWorld>javap
> be.sofico.basecamp.test.bytearray.TestByteArray
> > > > > > >Compiled from TestByteArray.java
> > > > > > >public interface
be.sofico.basecamp.test.bytearray.TestByteArray
> > > > extends
> > > > > > >javax.ejb.EJBObject {
> > > > > > > public abstract java.lang.String getString();
> > > > > > > public abstract
> > > be.sofico.basecamp.sess.sessionmgmt.SessionSessPar
> > > > > > >getSessionSessPar() throws java.rmi.RemoteExcepti
> > > > > > >on;
> > > > > > > public abstract byte getFileContent(java.lang.String)[]
> throws
> > > > > > >java.rmi.RemoteException;
> > > > > > >}
> > > > > > >
> > > > > > >P:\HelloWorld>javap
> > > be.sofico.basecamp.test.bytearray.TestByteArrayHome
> > > > > > >Compiled from TestByteArrayHome.java
> > > > > > >public interface
> > be.sofico.basecamp.test.bytearray.TestByteArrayHome
> > > > > extends
> > > > > > >javax.ejb.EJBHome {
> > > > > > > public abstract
> be.sofico.basecamp.test.bytearray.TestByteArray
> > > > > create()
> > > > > > >throws java.rmi.RemoteException, javax.ejb.
> > > > > > >CreateException;
> > > > > > >}
> > > > > > >
> > > > > > >P:\HelloWorld>javap
> > > be.sofico.basecamp.test.bytearray.TestByteArrayBean
> > > > > > >Compiled from TestByteArrayBean.java
> > > > > > >public class
be.sofico.basecamp.test.bytearray.TestByteArrayBean
> > > > extends
> > > > > > >java.lang.Object implements javax.ejb.SessionBe
> > > > > > >an {
> > > > > > > protected boolean create() throws java.lang.Exception;
> > > > > > > public
be.sofico.basecamp.test.bytearray.TestByteArrayBean();
> > > > > > > public void ejbActivate() throws javax.ejb.EJBException,
> > > > > > >java.rmi.RemoteException;
> > > > > > > public void ejbPassivate() throws javax.ejb.EJBException,
> > > > > > >java.rmi.RemoteException;
> > > > > > > public void ejbRemove() throws javax.ejb.EJBException,
> > > > > > >java.rmi.RemoteException;
> > > > > > > public void setSessionContext(javax.ejb.SessionContext)
> throws
> > > > > > >javax.ejb.EJBException, java.rmi.RemoteException;
> > > > > > > public void ejbCreate() throws javax.ejb.EJBException,
> > > > > > >javax.ejb.CreateException;
> > > > > > > public byte getFileContent(java.lang.String)[] throws
> > > > > > >java.rmi.RemoteException;
> > > > > > > public java.lang.String getString();
> > > > > > > public be.sofico.basecamp.sess.sessionmgmt.SessionSessPar
> > > > > > >getSessionSessPar() throws java.rmi.RemoteException;
> > > > > > >}
> > > > > > >
> > > > > > >P:\HelloWorld>ejb2pb90
> > > be.sofico.basecamp.test.bytearray.TestByteArray
> > > > > > >
> > > > > > >P:\HelloWorld>cat ejbproxies.err
> > > > > > >Can't get information of
> > > > > be.sofico.basecamp.test.bytearray.TestByteArrayHome
> > > > > > >P:\HelloWorld>
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >"bede" <bede@nospam.sofico.be> wrote in message
> > > > > > >news:%23u5Vc6PTDHA.342@forums-2-dub...
> > > > > > >> yes.. but that seems to work fine with javap (see output
> below).
> > > > > > >> I was wondering, the fact that we are using interfaces, could
> > this
> > > be
> > > > > the
> > > > > > >> cause of this problem too?
> > > > > > >> If this is so, then maybe it would be more appropriate to
> > generate
> > > > the
> > > > > > >> proxies ourselves. If we were to know what proxies to expect
> for
> > > what
> > > > > > >> classes (and especially that mapping-structure) then we could
> > make
> > > > them
> > > > > > >> without using ejb2pb90.. Any ideas?
> > > > > > >>
> > > > > > >> Ben
> > > > > > >>
> > > > > > >>
> > > > > > >> P:\HelloWorld>javap
> > > > > > >> be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSessionHome
> > > > > > >> Compiled from SessionMgmtSessionHome.java
> > > > > > >> public interface
> > > > > > >be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSessionHome
> > > > > > >> extends javax.ejb.EJBHome {
> > > > > > >> public abstract
> > > > > be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession
> > > > > > >> create() throws java.rmi.RemoteException, jav
> > > > > > >> ax.ejb.CreateException;
> > > > > > >> }
> > > > > > >>
> > > > > > >>
> > > > > > >> P:\HelloWorld>javap
> > > > > be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession
> > > > > > >> Compiled from SessionMgmtSession.java
> > > > > > >> public interface
> > > > be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession
> > > > > > >> extends javax.ejb.EJBObject, be.sofico.basecamp.
> > > > > > >> sess.sessionmgmt.ISessionMgmtSession {
> > > > > > >> }
> > > > > > >>
> > > > > > >> P:\HelloWorld>
> > > > > > >>
> > > > > > >> "Jim O'Neil [Sybase]" <joneil@sybase.com> wrote in message
> > > > > > >> news:3f16da1d.14592362@forums.sybase.com...
> > > > > > >> > Ben,
> > > > > > >> >
> > > > > > >> > The class it's complaining about is SessionMgmtSessionHome
> not
> > > > > > >> > SessionMgmtSession (at least in the ejb2pb90.exe example).
> > > > > > >> > Doublecheck javap on that class.
> > > > > > >> >
> > > > > > >> >
> > > > > > >> > On Thu, 17 Jul 2003 16:30:47 +0200, "bede"
> > > <bede@nospam.sofico.be>
> > > > > > >> > wrote:
> > > > > > >> >
> > > > > > >> > >Using PB 9.0 (5507 and now 6111) and trying to run EJBs
with
> > > > JBoss.
> > > > > > >> > >
> > > > > > >> > >I'm having problems with Generating Proxies a few months
> ago..
> > > > > > >> > >one of the issues was that ejb2pb90.exe did not recognize
> the
> > > > public
> > > > > > >> > >variables defined in a java-class.
> > > > > > >> > >
> > > > > > >> > >anyway, today i got a fix for this (build 6111), installed
> it
> > > and
> > > > > when
> > > > > > >> > >trying it i stumble upon another old problem (probably
> > > > > > >> > >configuration-related) so i'm posting this one again
hoping
> to
> > > get
> > > > > some
> > > > > > >> more
> > > > > > >> > >info from you guys (& Jims)
> > > > > > >> > >
> > > > > > >> > >* When generating the EJB Proxies from within the PB9
> painter
> > i
> > > > get
> > > > > > >this
> > > > > > >> > >error/output:
> > > > > > >> > ><error>
> > > > > > >> > >EJB Proxy Generator Project Status
> > > > > > >> > >Deployment PBL: P:\HelloWorld\milesproxies.pbl
> > > > > > >> > >Prefix:
> > > > > > >> > >Clear PBL on build: Yes
> > > > > > >> > >Confirm overwrites: No
> > > > > > >> > >Components selected :
> > > > > > >> be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession
> > > > > > >> > >Classpath : P:\HelloWorld\BaseCamp.jar
> > > > > > >> > >Generation Errors:
> > > > > > >> > > Deployment Error:
> > > > > > >> > > No files returned for package/component:
> > > > > > >> > >'be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession'.
> > > > > > >> > > Error code: Unknown.
> > > > > > >> > > Proxy was not created.
> > > > > > >> > ></error>
> > > > > > >> > >
> > > > > > >> > >* When i try it on the command prompt it fails as well,
> > however,
> > > > > javap
> > > > > > >> does
> > > > > > >> > >show the correct info...and as you can see, the jar is
> > included
> > > in
> > > > > the
> > > > > > >> > >system's ClassPath so definitely reachable.
> > > > > > >> > >
> > > > > > >> > ><CommandPrompt>
> > > > > > >> > >P:\HelloWorld>
> > > > > > >> > >P:\HelloWorld>echo %CLASSPATH%
> > > > > > >> >
> > > >P:\HelloWorld\BaseCamp.jar;C:\j2sdkee1.3.1\lib\j2ee.jar;C:\Program
> > > > > > >> > >Files\Altova\xmlspy\XMLSpyInterface.jar;;C:\Program F
> > > > > > >> > >iles\Sybase\Shared\PowerBuilder\jdk14
> > > > > > >> > >
> > > > > > >> > >P:\HelloWorld>ejb2pb90.exe
> > > > > > >> > >be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession
> > > > > > >> > >
> > > > > > >> > >P:\HelloWorld>cat ejbproxies.err
> > > > > > >> > >Can't get information of
> > > > > > >> > >be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSessionHome
> > > > > > >> > >P:\HelloWorld>javap
> > > > > > >> be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession
> > > > > > >> > >Compiled from SessionMgmtSession.java
> > > > > > >> > >public interface
> > > > > be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSession
> > > > > > >> > >extends javax.ejb.EJBObject, be.sofico.basecamp.
> > > > > > >> > >sess.sessionmgmt.ISessionMgmtSession {
> > > > > > >> > >}
> > > > > > >> > >
> > > > > > >> > >P:\HelloWorld>
> > > > > > >> > ></CommandPrompt>
> > > > > > >> > >
> > > > > > >> > >I had this problem before also, but now and then (for no
> > > > > identifyable
> > > > > > >> reason
> > > > > > >> > >it sometimes did generate the proxies/stubs)
> > > > > > >> > >
> > > > > > >> > >Anyway, i was hoping someone could point me out to what
> system
> > > > > settings
> > > > > > >> > >could affect ejb2pb90 so i can get my configuration
> corrected.
> > > > > > >> > >
> > > > > > >> > >Greetings,
> > > > > > >> > >
> > > > > > >> > >Ben
> > > > > > >> > >
> > > > > > >> > >
> > > > > > >> >
> > > > > > >> > Jim O'Neil
> > > > > > >> > Principal Technical Support Engineer
> > > > > > >> > Sybase, Inc.
> > > > > > >> > Concord, MA
> > > > > > >>
> > > > > > >>
> > > > > > >
> > > > > > >
> > > > > >
> > > > > > Jim O'Neil
> > > > > > Principal Technical Support Engineer
> > > > > > Sybase, Inc.
> > > > > > Concord, MA
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>