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.

Problem with lookup

13 posts in EJB Client Last posting was on 2003-08-21 13:44:00.0Z
Paulo Eduardo Ostermann Filho Posted on 2003-08-19 18:59:46.0Z
From: "Paulo Eduardo Ostermann Filho" <peoft@terra.com.br>
Newsgroups: sybase.public.powerbuilder.ejbclient
Subject: Problem with lookup
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
X-Original-NNTP-Posting-Host: 200-102-085-013.nhoce7002.dsl.brasiltelecom.net.br
Message-ID: <3f427082@forums-2-dub>
X-Original-Trace: 19 Aug 2003 11:46:26 -0700, 200-102-085-013.nhoce7002.dsl.brasiltelecom.net.br
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 19 Aug 2003 11:46:01 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 19 Aug 2003 11:59:46 -0700
X-Trace: forums-1-dub 1061319586 10.22.108.75 (19 Aug 2003 11:59:46 -0700)
X-Original-Trace: 19 Aug 2003 11:59:46 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:118
Article PK: 424313

Hi, all.

We are developing a PB client that instantiate one EJB entity component in
Easerver 4.2. When I call "lookup", this return the following error:
"Distributed Service error: E13 Could not create object of class
'City/CityEJB'. (7E0)". The source code is this:

/////////////////////////////

long ll_return
blob lb_argument
CityLocal MyCity
CityLocalHome MyCityHome

eas_connect = create n_apt_ejbclient_connect

if (eas_connect.connecttoserver( ) <> 0) then
MessageBox("Erro","")
return
end if

ll_return =
eas_connect.lookup(MyCityHome,"City/CityEJB","com/sybase/City/CityLocalHome"
)

IF ll_return <> 0 THEN
MessageBox("Lookup failed", eas_connect.errtext)
ELSE

try
MyCity = MyCityHome.findbyprimarykey(lb_argument)
catch (ctscomponents_finderexception fe)
MessageBox("Findprimary exception", fe.getmessage())
// handle exception
end try

MyCity.getprimarykey( )

lb_argument = blob("Taquara")

try
MyCity.setvalue(lb_argument)
catch (invalidobjectexception io)
MessageBox("Set value exception",io.getmessage())
end try
END IF

if (isValid(MyCity)) then
destroy(MyCity)
end if


if (isValid(MyCityHome)) then
destroy(MyCityHome)
end if


////////////////////

CityEJB is the name of entity class in Easerver. Someone knows what is the
problem?

Thanks in advance.

Paulo.


Jim O'Neil [Sybase] Posted on 2003-08-20 12:55:23.0Z
From: joneil@sybase.com (Jim O'Neil [Sybase])
Newsgroups: sybase.public.powerbuilder.ejbclient
Subject: Re: Problem with lookup
Organization: Sybase Technical Support
Reply-To: joneil_REMOVETHISPART@sybase.com
Message-ID: <3f436f4c.1527656@forums.sybase.com>
References: <3f427082@forums-2-dub>
X-Newsreader: Forte Free Agent 1.21/32.243
X-Original-NNTP-Posting-Host: vpn-concord-059.sybase.com
X-Original-Trace: 20 Aug 2003 05:55:47 -0700, vpn-concord-059.sybase.com
Lines: 78
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 20 Aug 2003 05:54:36 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 20 Aug 2003 05:55:23 -0700
X-Trace: forums-1-dub 1061384123 10.22.108.75 (20 Aug 2003 05:55:23 -0700)
X-Original-Trace: 20 Aug 2003 05:55:23 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:119
Article PK: 424314

What is the JNDI name of the bean? Does the EAServer log file contain
an error message.

On 19 Aug 2003 11:59:46 -0700, "Paulo Eduardo Ostermann Filho"

<peoft@terra.com.br> wrote:

>Hi, all.
>
>We are developing a PB client that instantiate one EJB entity component in
>Easerver 4.2. When I call "lookup", this return the following error:
>"Distributed Service error: E13 Could not create object of class
>'City/CityEJB'. (7E0)". The source code is this:
>
>/////////////////////////////
>
>long ll_return
>blob lb_argument
>CityLocal MyCity
>CityLocalHome MyCityHome
>
>eas_connect = create n_apt_ejbclient_connect
>
>if (eas_connect.connecttoserver( ) <> 0) then
> MessageBox("Erro","")
> return
>end if
>
>ll_return =
>eas_connect.lookup(MyCityHome,"City/CityEJB","com/sybase/City/CityLocalHome"
>)
>
>IF ll_return <> 0 THEN
> MessageBox("Lookup failed", eas_connect.errtext)
>ELSE
>
> try
> MyCity = MyCityHome.findbyprimarykey(lb_argument)
> catch (ctscomponents_finderexception fe)
> MessageBox("Findprimary exception", fe.getmessage())
> // handle exception
> end try
>
> MyCity.getprimarykey( )
>
> lb_argument = blob("Taquara")
>
> try
> MyCity.setvalue(lb_argument)
> catch (invalidobjectexception io)
> MessageBox("Set value exception",io.getmessage())
> end try
>END IF
>
>if (isValid(MyCity)) then
> destroy(MyCity)
>end if
>
>
>if (isValid(MyCityHome)) then
> destroy(MyCityHome)
>end if
>
>
>////////////////////
>
>CityEJB is the name of entity class in Easerver. Someone knows what is the
>problem?
>
>Thanks in advance.
>
>Paulo.
>
>

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


Paulo Eduardo Ostermann Filho Posted on 2003-08-20 16:26:02.0Z
From: "Paulo Eduardo Ostermann Filho" <peoft@terra.com.br>
Newsgroups: sybase.public.powerbuilder.ejbclient
References: <3f427082@forums-2-dub> <3f436f4c.1527656@forums.sybase.com>
Subject: Re: Problem with lookup
Lines: 107
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: 200-102-085-013.nhoce7002.dsl.brasiltelecom.net.br
Message-ID: <3f43a133@forums-2-dub>
X-Original-Trace: 20 Aug 2003 09:26:27 -0700, 200-102-085-013.nhoce7002.dsl.brasiltelecom.net.br
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 20 Aug 2003 09:25:14 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 20 Aug 2003 09:26:02 -0700
X-Trace: forums-1-dub 1061396762 10.22.108.75 (20 Aug 2003 09:26:02 -0700)
X-Original-Trace: 20 Aug 2003 09:26:02 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:122
Article PK: 424317

Hi, Jim.
The Name of JNDI is empty in component properties and the log error of
Easerver is:

/////////////
Aug 20 11:28:59 2003: Exception 'CosNaming::NamingContext::NotFound' in
Session::lookup for component 'ejb/CityEJB'

Aug 20 11:28:59 2003: SystemException: OBJECT_NOT_EXIST (Session/lookup -
@172.22.2.125)

//////

Can you explain how to use JNDI in Easerver or send me one example for this?

Thanks a lot in advance.

Paulo.

"Jim O'Neil [Sybase]" <joneil@sybase.com> wrote in message
news:3f436f4c.1527656@forums.sybase.com...
> What is the JNDI name of the bean? Does the EAServer log file contain
> an error message.
>
> On 19 Aug 2003 11:59:46 -0700, "Paulo Eduardo Ostermann Filho"
> <peoft@terra.com.br> wrote:
>
> >Hi, all.
> >
> >We are developing a PB client that instantiate one EJB entity component
in
> >Easerver 4.2. When I call "lookup", this return the following error:
> >"Distributed Service error: E13 Could not create object of class
> >'City/CityEJB'. (7E0)". The source code is this:
> >
> >/////////////////////////////
> >
> >long ll_return
> >blob lb_argument
> >CityLocal MyCity
> >CityLocalHome MyCityHome
> >
> >eas_connect = create n_apt_ejbclient_connect
> >
> >if (eas_connect.connecttoserver( ) <> 0) then
> > MessageBox("Erro","")
> > return
> >end if
> >
> >ll_return =
>
>eas_connect.lookup(MyCityHome,"City/CityEJB","com/sybase/City/CityLocalHome
"
> >)
> >
> >IF ll_return <> 0 THEN
> > MessageBox("Lookup failed", eas_connect.errtext)
> >ELSE
> >
> > try
> > MyCity = MyCityHome.findbyprimarykey(lb_argument)
> > catch (ctscomponents_finderexception fe)
> > MessageBox("Findprimary exception", fe.getmessage())
> > // handle exception
> > end try
> >
> > MyCity.getprimarykey( )
> >
> > lb_argument = blob("Taquara")
> >
> > try
> > MyCity.setvalue(lb_argument)
> > catch (invalidobjectexception io)
> > MessageBox("Set value exception",io.getmessage())
> > end try
> >END IF
> >
> >if (isValid(MyCity)) then
> > destroy(MyCity)
> >end if
> >
> >
> >if (isValid(MyCityHome)) then
> > destroy(MyCityHome)
> >end if
> >
> >
> >////////////////////
> >
> >CityEJB is the name of entity class in Easerver. Someone knows what is
the
> >problem?
> >
> >Thanks in advance.
> >
> >Paulo.
> >
> >
>
> Jim O'Neil
> Principal Technical Support Engineer
> Sybase, Inc.
> Concord, MA


Jim O'Neil [Sybase] Posted on 2003-08-20 16:58:01.0Z
From: joneil@sybase.com (Jim O'Neil [Sybase])
Newsgroups: sybase.public.powerbuilder.ejbclient
Subject: Re: Problem with lookup
Organization: Sybase Technical Support
Reply-To: joneil_REMOVETHISPART@sybase.com
Message-ID: <3f43a7c8.15985315@forums.sybase.com>
References: <3f427082@forums-2-dub> <3f436f4c.1527656@forums.sybase.com> <3f43a133@forums-2-dub>
X-Newsreader: Forte Free Agent 1.21/32.243
X-Original-NNTP-Posting-Host: joneilpc.sybase.com
X-Original-Trace: 20 Aug 2003 09:58:26 -0700, joneilpc.sybase.com
Lines: 124
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 20 Aug 2003 09:57:13 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 20 Aug 2003 09:58:01 -0700
X-Trace: forums-1-dub 1061398681 10.22.108.75 (20 Aug 2003 09:58:01 -0700)
X-Original-Trace: 20 Aug 2003 09:58:01 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:123
Article PK: 424319

If the JNDI name is empty, then EAServer will default the name to
<package>/<component>. You however are passing in City/CityEJB as the
name, so I'm not sure why it's looking for ejb/CityEJB. This is
purely from a PowerBuilder client right? This is not a EJB-ref for an
intercomponent call? Try explicitly setting the JNDI name
(com.sybase.jaguar.component.bind.naming property) to City/CityEJB in
EAServer Manager and see if you fare better.


On 20 Aug 2003 09:26:02 -0700, "Paulo Eduardo Ostermann Filho"

<peoft@terra.com.br> wrote:

>Hi, Jim.
>The Name of JNDI is empty in component properties and the log error of
>Easerver is:
>
>/////////////
>Aug 20 11:28:59 2003: Exception 'CosNaming::NamingContext::NotFound' in
>Session::lookup for component 'ejb/CityEJB'
>
>Aug 20 11:28:59 2003: SystemException: OBJECT_NOT_EXIST (Session/lookup -
>@172.22.2.125)
>
>//////
>
>Can you explain how to use JNDI in Easerver or send me one example for this?
>
>Thanks a lot in advance.
>
>Paulo.
>
>
>
>"Jim O'Neil [Sybase]" <joneil@sybase.com> wrote in message
>news:3f436f4c.1527656@forums.sybase.com...
>> What is the JNDI name of the bean? Does the EAServer log file contain
>> an error message.
>>
>> On 19 Aug 2003 11:59:46 -0700, "Paulo Eduardo Ostermann Filho"
>> <peoft@terra.com.br> wrote:
>>
>> >Hi, all.
>> >
>> >We are developing a PB client that instantiate one EJB entity component
>in
>> >Easerver 4.2. When I call "lookup", this return the following error:
>> >"Distributed Service error: E13 Could not create object of class
>> >'City/CityEJB'. (7E0)". The source code is this:
>> >
>> >/////////////////////////////
>> >
>> >long ll_return
>> >blob lb_argument
>> >CityLocal MyCity
>> >CityLocalHome MyCityHome
>> >
>> >eas_connect = create n_apt_ejbclient_connect
>> >
>> >if (eas_connect.connecttoserver( ) <> 0) then
>> > MessageBox("Erro","")
>> > return
>> >end if
>> >
>> >ll_return =
>>
>>eas_connect.lookup(MyCityHome,"City/CityEJB","com/sybase/City/CityLocalHome
>"
>> >)
>> >
>> >IF ll_return <> 0 THEN
>> > MessageBox("Lookup failed", eas_connect.errtext)
>> >ELSE
>> >
>> > try
>> > MyCity = MyCityHome.findbyprimarykey(lb_argument)
>> > catch (ctscomponents_finderexception fe)
>> > MessageBox("Findprimary exception", fe.getmessage())
>> > // handle exception
>> > end try
>> >
>> > MyCity.getprimarykey( )
>> >
>> > lb_argument = blob("Taquara")
>> >
>> > try
>> > MyCity.setvalue(lb_argument)
>> > catch (invalidobjectexception io)
>> > MessageBox("Set value exception",io.getmessage())
>> > end try
>> >END IF
>> >
>> >if (isValid(MyCity)) then
>> > destroy(MyCity)
>> >end if
>> >
>> >
>> >if (isValid(MyCityHome)) then
>> > destroy(MyCityHome)
>> >end if
>> >
>> >
>> >////////////////////
>> >
>> >CityEJB is the name of entity class in Easerver. Someone knows what is
>the
>> >problem?
>> >
>> >Thanks in advance.
>> >
>> >Paulo.
>> >
>> >
>>
>> Jim O'Neil
>> Principal Technical Support Engineer
>> Sybase, Inc.
>> Concord, MA
>
>

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


Paulo Eduardo Ostermann Filho Posted on 2003-08-20 17:21:16.0Z
From: "Paulo Eduardo Ostermann Filho" <peoft@terra.com.br>
Newsgroups: sybase.public.powerbuilder.ejbclient
References: <3f427082@forums-2-dub> <3f436f4c.1527656@forums.sybase.com> <3f43a133@forums-2-dub> <3f43a7c8.15985315@forums.sybase.com>
Subject: Re: Problem with lookup
Lines: 146
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: 200-102-085-013.nhoce7002.dsl.brasiltelecom.net.br
X-Original-NNTP-Posting-Host: 200-102-085-013.nhoce7002.dsl.brasiltelecom.net.br
Message-ID: <3f43ae0c@forums-1-dub>
Date: 20 Aug 2003 10:21:16 -0700
X-Trace: forums-1-dub 1061400076 200.102.85.13 (20 Aug 2003 10:21:16 -0700)
X-Original-Trace: 20 Aug 2003 10:21:16 -0700, 200-102-085-013.nhoce7002.dsl.brasiltelecom.net.br
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:125
Article PK: 424320

We tried with City/CityEJB, but this didn´t work, too. Yes, It is purely
from PB client. We put this JNDI: com.tutorial.one.CityEJB and
com.tutorial.one.City.CityEJB, but didn´t work. Occur the same problem. The
com.sybase.jaguar.component.bind.naming property is the directory where
component is found?

The component name in Easerver is CityEJB and package name is City. When we
execute the proxy in PB, this bring for us "citylocal", "citylocalhome" and
"none" interfaces.

Thanks a lot in advance.

Paulo.

"Jim O'Neil [Sybase]" <joneil@sybase.com> wrote in message
news:3f43a7c8.15985315@forums.sybase.com...
> If the JNDI name is empty, then EAServer will default the name to
> <package>/<component>. You however are passing in City/CityEJB as the
> name, so I'm not sure why it's looking for ejb/CityEJB. This is
> purely from a PowerBuilder client right? This is not a EJB-ref for an
> intercomponent call? Try explicitly setting the JNDI name
> (com.sybase.jaguar.component.bind.naming property) to City/CityEJB in
> EAServer Manager and see if you fare better.
>
>
> On 20 Aug 2003 09:26:02 -0700, "Paulo Eduardo Ostermann Filho"
> <peoft@terra.com.br> wrote:
>
> >Hi, Jim.
> >The Name of JNDI is empty in component properties and the log error of
> >Easerver is:
> >
> >/////////////
> >Aug 20 11:28:59 2003: Exception 'CosNaming::NamingContext::NotFound' in
> >Session::lookup for component 'ejb/CityEJB'
> >
> >Aug 20 11:28:59 2003: SystemException: OBJECT_NOT_EXIST (Session/lookup -
> >@172.22.2.125)
> >
> >//////
> >
> >Can you explain how to use JNDI in Easerver or send me one example for
this?
> >
> >Thanks a lot in advance.
> >
> >Paulo.
> >
> >
> >
> >"Jim O'Neil [Sybase]" <joneil@sybase.com> wrote in message
> >news:3f436f4c.1527656@forums.sybase.com...
> >> What is the JNDI name of the bean? Does the EAServer log file contain
> >> an error message.
> >>
> >> On 19 Aug 2003 11:59:46 -0700, "Paulo Eduardo Ostermann Filho"
> >> <peoft@terra.com.br> wrote:
> >>
> >> >Hi, all.
> >> >
> >> >We are developing a PB client that instantiate one EJB entity
component
> >in
> >> >Easerver 4.2. When I call "lookup", this return the following error:
> >> >"Distributed Service error: E13 Could not create object of class
> >> >'City/CityEJB'. (7E0)". The source code is this:
> >> >
> >> >/////////////////////////////
> >> >
> >> >long ll_return
> >> >blob lb_argument
> >> >CityLocal MyCity
> >> >CityLocalHome MyCityHome
> >> >
> >> >eas_connect = create n_apt_ejbclient_connect
> >> >
> >> >if (eas_connect.connecttoserver( ) <> 0) then
> >> > MessageBox("Erro","")
> >> > return
> >> >end if
> >> >
> >> >ll_return =
> >>
>
>>eas_connect.lookup(MyCityHome,"City/CityEJB","com/sybase/City/CityLocalHom
e
> >"
> >> >)
> >> >
> >> >IF ll_return <> 0 THEN
> >> > MessageBox("Lookup failed", eas_connect.errtext)
> >> >ELSE
> >> >
> >> > try
> >> > MyCity = MyCityHome.findbyprimarykey(lb_argument)
> >> > catch (ctscomponents_finderexception fe)
> >> > MessageBox("Findprimary exception", fe.getmessage())
> >> > // handle exception
> >> > end try
> >> >
> >> > MyCity.getprimarykey( )
> >> >
> >> > lb_argument = blob("Taquara")
> >> >
> >> > try
> >> > MyCity.setvalue(lb_argument)
> >> > catch (invalidobjectexception io)
> >> > MessageBox("Set value exception",io.getmessage())
> >> > end try
> >> >END IF
> >> >
> >> >if (isValid(MyCity)) then
> >> > destroy(MyCity)
> >> >end if
> >> >
> >> >
> >> >if (isValid(MyCityHome)) then
> >> > destroy(MyCityHome)
> >> >end if
> >> >
> >> >
> >> >////////////////////
> >> >
> >> >CityEJB is the name of entity class in Easerver. Someone knows what is
> >the
> >> >problem?
> >> >
> >> >Thanks in advance.
> >> >
> >> >Paulo.
> >> >
> >> >
> >>
> >> Jim O'Neil
> >> Principal Technical Support Engineer
> >> Sybase, Inc.
> >> Concord, MA
> >
> >
>
> Jim O'Neil
> Principal Technical Support Engineer
> Sybase, Inc.
> Concord, MA


Paulo Eduardo Ostermann Filho Posted on 2003-08-20 17:57:00.0Z
From: "Paulo Eduardo Ostermann Filho" <peoft@terra.com.br>
Newsgroups: sybase.public.powerbuilder.ejbclient
References: <3f427082@forums-2-dub> <3f436f4c.1527656@forums.sybase.com> <3f43a133@forums-2-dub> <3f43a7c8.15985315@forums.sybase.com> <3f43ae0c@forums-1-dub>
Subject: Re: Problem with lookup
Lines: 168
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: 200-102-085-013.nhoce7002.dsl.brasiltelecom.net.br
X-Original-NNTP-Posting-Host: 200-102-085-013.nhoce7002.dsl.brasiltelecom.net.br
Message-ID: <3f43b66c@forums-1-dub>
Date: 20 Aug 2003 10:57:00 -0700
X-Trace: forums-1-dub 1061402220 200.102.85.13 (20 Aug 2003 10:57:00 -0700)
X-Original-Trace: 20 Aug 2003 10:57:00 -0700, 200-102-085-013.nhoce7002.dsl.brasiltelecom.net.br
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:126
Article PK: 424321

Hi, Jim.
Now, I believe that I understood your question "JNDI name
> > (com.sybase.jaguar.component.bind.naming property)?". This property in
Easerver has following: com.tutorial.one.CityEJB.

Sorry my poor English.

Thanks man.

Paulo.

"Paulo Eduardo Ostermann Filho" <peoft@terra.com.br> wrote in message
news:3f43ae0c@forums-1-dub...
> We tried with City/CityEJB, but this didn´t work, too. Yes, It is purely
> from PB client. We put this JNDI: com.tutorial.one.CityEJB and
> com.tutorial.one.City.CityEJB, but didn´t work. Occur the same problem.
The
> com.sybase.jaguar.component.bind.naming property is the directory where
> component is found?
>
> The component name in Easerver is CityEJB and package name is City. When
we
> execute the proxy in PB, this bring for us "citylocal", "citylocalhome"
and
> "none" interfaces.
>
> Thanks a lot in advance.
>
> Paulo.
>
> "Jim O'Neil [Sybase]" <joneil@sybase.com> wrote in message
> news:3f43a7c8.15985315@forums.sybase.com...
> > If the JNDI name is empty, then EAServer will default the name to
> > <package>/<component>. You however are passing in City/CityEJB as the
> > name, so I'm not sure why it's looking for ejb/CityEJB. This is
> > purely from a PowerBuilder client right? This is not a EJB-ref for an
> > intercomponent call? Try explicitly setting the JNDI name
> > (com.sybase.jaguar.component.bind.naming property) to City/CityEJB in
> > EAServer Manager and see if you fare better.
> >
> >
> > On 20 Aug 2003 09:26:02 -0700, "Paulo Eduardo Ostermann Filho"
> > <peoft@terra.com.br> wrote:
> >
> > >Hi, Jim.
> > >The Name of JNDI is empty in component properties and the log error of
> > >Easerver is:
> > >
> > >/////////////
> > >Aug 20 11:28:59 2003: Exception 'CosNaming::NamingContext::NotFound' in
> > >Session::lookup for component 'ejb/CityEJB'
> > >
> > >Aug 20 11:28:59 2003: SystemException: OBJECT_NOT_EXIST
(Session/lookup -
> > >@172.22.2.125)
> > >
> > >//////
> > >
> > >Can you explain how to use JNDI in Easerver or send me one example for
> this?
> > >
> > >Thanks a lot in advance.
> > >
> > >Paulo.
> > >
> > >
> > >
> > >"Jim O'Neil [Sybase]" <joneil@sybase.com> wrote in message
> > >news:3f436f4c.1527656@forums.sybase.com...
> > >> What is the JNDI name of the bean? Does the EAServer log file
contain
> > >> an error message.
> > >>
> > >> On 19 Aug 2003 11:59:46 -0700, "Paulo Eduardo Ostermann Filho"
> > >> <peoft@terra.com.br> wrote:
> > >>
> > >> >Hi, all.
> > >> >
> > >> >We are developing a PB client that instantiate one EJB entity
> component
> > >in
> > >> >Easerver 4.2. When I call "lookup", this return the following error:
> > >> >"Distributed Service error: E13 Could not create object of class
> > >> >'City/CityEJB'. (7E0)". The source code is this:
> > >> >
> > >> >/////////////////////////////
> > >> >
> > >> >long ll_return
> > >> >blob lb_argument
> > >> >CityLocal MyCity
> > >> >CityLocalHome MyCityHome
> > >> >
> > >> >eas_connect = create n_apt_ejbclient_connect
> > >> >
> > >> >if (eas_connect.connecttoserver( ) <> 0) then
> > >> > MessageBox("Erro","")
> > >> > return
> > >> >end if
> > >> >
> > >> >ll_return =
> > >>
> >
>
>>eas_connect.lookup(MyCityHome,"City/CityEJB","com/sybase/City/CityLocalHom
> e
> > >"
> > >> >)
> > >> >
> > >> >IF ll_return <> 0 THEN
> > >> > MessageBox("Lookup failed", eas_connect.errtext)
> > >> >ELSE
> > >> >
> > >> > try
> > >> > MyCity = MyCityHome.findbyprimarykey(lb_argument)
> > >> > catch (ctscomponents_finderexception fe)
> > >> > MessageBox("Findprimary exception", fe.getmessage())
> > >> > // handle exception
> > >> > end try
> > >> >
> > >> > MyCity.getprimarykey( )
> > >> >
> > >> > lb_argument = blob("Taquara")
> > >> >
> > >> > try
> > >> > MyCity.setvalue(lb_argument)
> > >> > catch (invalidobjectexception io)
> > >> > MessageBox("Set value exception",io.getmessage())
> > >> > end try
> > >> >END IF
> > >> >
> > >> >if (isValid(MyCity)) then
> > >> > destroy(MyCity)
> > >> >end if
> > >> >
> > >> >
> > >> >if (isValid(MyCityHome)) then
> > >> > destroy(MyCityHome)
> > >> >end if
> > >> >
> > >> >
> > >> >////////////////////
> > >> >
> > >> >CityEJB is the name of entity class in Easerver. Someone knows what
is
> > >the
> > >> >problem?
> > >> >
> > >> >Thanks in advance.
> > >> >
> > >> >Paulo.
> > >> >
> > >> >
> > >>
> > >> Jim O'Neil
> > >> Principal Technical Support Engineer
> > >> Sybase, Inc.
> > >> Concord, MA
> > >
> > >
> >
> > Jim O'Neil
> > Principal Technical Support Engineer
> > Sybase, Inc.
> > Concord, MA
>
>


Paulo Eduardo Ostermann Filho Posted on 2003-08-20 18:32:05.0Z
From: "Paulo Eduardo Ostermann Filho" <peoft@terra.com.br>
Newsgroups: sybase.public.powerbuilder.ejbclient
References: <3f427082@forums-2-dub> <3f436f4c.1527656@forums.sybase.com> <3f43a133@forums-2-dub> <3f43a7c8.15985315@forums.sybase.com> <3f43ae0c@forums-1-dub> <3f43b66c@forums-1-dub>
Subject: Re: Problem with lookup
Lines: 397
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: 200-102-085-013.nhoce7002.dsl.brasiltelecom.net.br
X-Original-NNTP-Posting-Host: 200-102-085-013.nhoce7002.dsl.brasiltelecom.net.br
Message-ID: <3f43bea5@forums-1-dub>
Date: 20 Aug 2003 11:32:05 -0700
X-Trace: forums-1-dub 1061404325 200.102.85.13 (20 Aug 2003 11:32:05 -0700)
X-Original-Trace: 20 Aug 2003 11:32:05 -0700, 200-102-085-013.nhoce7002.dsl.brasiltelecom.net.br
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:127
Article PK: 424322

Jim

We have found erros in inicialization of Easerver. Next is the log:

////////////////////////////////

Aug 20 14:46:57 2003:

Sybase Enterprise Application Server(Developer Edition).This version of
Enterprise Application Server(TM) is licensed solely for development
purposes.

Any other use of software, including but not limited to production use or
use on a webserver is strictly prohibited.Deployment licenses may be
obtained from Sybase, Inc. for a fee.

Aug 20 14:46:57 2003: Jaguar CTS - Component Transaction Server/Version 4.2
(Build 42012)/P/PC Intel/Windows NT 4.0/OPT/Dec 5 2002 18:00:18

Confidential property of Sybase, Inc.

(c) Copyright Sybase Inc. 1987,2002

All rights reserved.

Use, duplication, or disclosure by the United States Government

is subject to restrictions as set forth in FAR subparagraphs

52.227-19 (a)-(d) for civilian agency contracts and DFARS 252.227-7013

(c)(1)(ii) for Department of Defense contracts. Sybase reserves all

unpublished rights under the copyright laws of the United States.

Sybase, Inc. One Sybase Drive, Dublin, CA 94568 USA.

Aug 20 14:46:57 2003:

2 Phase Commit Option Licensed

Aug 20 14:46:57 2003: CLUSTERING Option Licensed

Aug 20 14:46:57 2003:

High Availability Option Licensed

Aug 20 14:46:57 2003:

Application Integrator for CICS Option Licensed

Aug 20 14:46:58 2003: Listener # 1: Jaguar_tds: Active: yes Protocol: 'TDS':
'tp-inf-028',7878 Security Profile: '*NONE*'

Aug 20 14:46:58 2003: Listener # 2: Jaguar_OpenServer: Active: yes Protocol:
'TDS': 'tp-inf-028',7979 Security Profile: '*NONE*'

Aug 20 14:46:58 2003: Listener # 3: Jaguar_http: Active: yes Protocol:
'HTTP': 'tp-inf-028',8080 Security Profile: '*NONE*'

Aug 20 14:46:58 2003: Listener # 4: Jaguar_https1: Active: yes Protocol:
'HTTPS': 'tp-inf-028',8081 Security Profile: 'sybpks_intl'

Subject DN: C = US, ST = Some State, L = Some Locality, O = Some
Organization, CN = Sample1

Aug 20 14:46:58 2003: Listener # 5: Jaguar_https2: Active: yes Protocol:
'HTTPS': 'tp-inf-028',8082 Security Profile: 'sybpks_intl_mutual_auth'

Subject DN: C = US, ST = Some State, L = Some Locality, O = Some
Organization, CN = Sample2

Aug 20 14:46:58 2003: Listener # 6: Jaguar_iiop: Active: yes Protocol:
'IIOP': 'tp-inf-028',9000 Security Profile: '*NONE*'

Aug 20 14:46:58 2003: Listener # 7: Jaguar_iiops1: Active: yes Protocol:
'IIOPS': 'tp-inf-028',9001 Security Profile: 'sybpks_intl'

Subject DN: C = US, ST = Some State, L = Some Locality, O = Some
Organization, CN = Sample1

Aug 20 14:46:58 2003: Listener # 8: Jaguar_iiops2: Active: yes Protocol:
'IIOPS': 'tp-inf-028',9002 Security Profile: 'sybpks_intl_mutual_auth'

Subject DN: C = US, ST = Some State, L = Some Locality, O = Some
Organization, CN = Sample2

Aug 20 14:46:58 2003: Server is running in 1PC Transaction mode.

Aug 20 14:46:58 2003: Starting Jaguar CTS

Aug 20 14:46:58 2003: Server's native codeset is utf8

Aug 20 14:46:58 2003: Library: 'libjjdk12.dll' for component type 'java'

Aug 20 14:46:58 2003: Java JIT Compiler enabled

Aug 20 14:46:58 2003: Java component debugging disabled

Aug 20 14:46:58 2003: Java virtual machine initialized: java version
1.3.1_06

Aug 20 14:46:58 2003: Java virtual machine initialized: Java HotSpot(TM)
Client VM (version 1.3.1_06-b01, mixed mode)

Aug 20 14:46:59 2003: Repository: C:\EASERVER\EAServer\Repository

Aug 20 14:46:59 2003: JaguarClassLoader: Server level JaguarClassLoader
initialized

Aug 20 14:46:59 2003:
*********************************************************

Aug 20 14:46:59 2003: * Recommendation: for improved EJB performance *

Aug 20 14:46:59 2003: * set server property
com.sybase.jaguar.server.lwc=true *

Aug 20 14:46:59 2003: * to enable Lightweight Container (then restart
server) *

Aug 20 14:46:59 2003:
*********************************************************

Aug 20 14:46:59 2003: Host IP: 172.22.2.188

Aug 20 14:46:59 2003: NameServiceURL: iiop://0:0

Aug 20 14:46:59 2003: Starting Services...

Aug 20 14:46:59 2003: Started: Jaguar/Repository

Aug 20 14:46:59 2003: Started: Jaguar/GarbageCollector

Aug 20 14:46:59 2003: JCM Loading Connection Caches and/or XA Resources ...

Aug 20 14:46:59 2003: JCM Loading Connectors/Resource Adapters ...

Aug 20 14:46:59 2003: Started: Jaguar/JCM

Aug 20 14:46:59 2003: Starting Jaguar Naming Services...

Aug 20 14:46:59 2003: Started: CosNaming/JNameService

Aug 20 14:46:59 2003: Authentication timeout period is 3600 seconds.

Note: authentication timeout can be disabled.

Aug 20 14:46:59 2003: Authentication lockout period is 600 seconds.

Note: authentication lockout can be disabled.

Aug 20 14:46:59 2003: PermissionCache: Authorization cache timeout: 120
minutes

Aug 20 14:47:09 2003: SignOnDAO adding protected resource: ProtectedResource
[ name=Customer Screen, urlPattern=customer.screen, roles=[]]

Aug 20 14:47:09 2003: SignOnDAO adding protected resource: ProtectedResource
[ name=Enter Order Information Screen,
urlPattern=enter_order_information.screen, roles=[]]

Aug 20 14:47:09 2003: SignOnDAO adding protected resource: ProtectedResource
[ name=Sign On Welcome SCreen, urlPattern=signon_welcome.screen, roles=[]]

Aug 20 14:47:10 2003: Started: JaguarServlet/ServletService

Aug 20 14:47:10 2003: Running: services...

Aug 20 14:47:10 2003: Running: CosNaming/JNameService

Aug 20 14:47:10 2003: Running: Jaguar/GarbageCollector

Aug 20 14:47:10 2003: Running: JaguarServlet/ServletService

Aug 20 14:47:13 2003: Stopped: CosNaming/JNameService

Aug 20 14:49:08 2003: Set 'tx_vote=false' for component 'Jaguar/FileViewer'
since 'sharing=true'. Otherwise, memory leak may occur.

Aug 20 14:49:17 2003: Exception 'CosNaming::NamingContext::NotFound' in
Session::lookup for component 'City/CityEJB'

Aug 20 14:49:17 2003: SystemException: OBJECT_NOT_EXIST (Session/lookup -
@172.22.2.125)

7 2003: SystemException: OBJECT_NOT_EXIST (Session/lookup - @172.22.2.125)
Aug 20 14:56:30 2003: Exception 'CosNaming::NamingContext::NotFound' in
Session::lookup for component 'City/CityEJB'

Aug 20 14:56:30 2003: SystemException: OBJECT_NOT_EXIST (Session/lookup -
@172.22.2.125)

Aug 20 14:56:40 2003: Exception 'CosNaming::NamingContext::NotFound' in
Session::lookup for component 'City/CityEJB'

Aug 20 14:56:40 2003: SystemException: OBJECT_NOT_EXIST (Session/lookup -
@172.22.2.125)

Log file is empty.

Log file is empty.

Log file is empty.

//////////////////////////////////////

In red, you can see the errors that occur in Easerver. Do you know why this
occur?

Thanks a lot.

Paulo.

"Paulo Eduardo Ostermann Filho" <peoft@terra.com.br> wrote in message
news:3f43b66c@forums-1-dub...
> Hi, Jim.
> Now, I believe that I understood your question "JNDI name
> > > (com.sybase.jaguar.component.bind.naming property)?". This property in
> Easerver has following: com.tutorial.one.CityEJB.
>
> Sorry my poor English.
>
> Thanks man.
>
> Paulo.
>
> "Paulo Eduardo Ostermann Filho" <peoft@terra.com.br> wrote in message
> news:3f43ae0c@forums-1-dub...
> > We tried with City/CityEJB, but this didn´t work, too. Yes, It is purely
> > from PB client. We put this JNDI: com.tutorial.one.CityEJB and
> > com.tutorial.one.City.CityEJB, but didn´t work. Occur the same problem.
> The
> > com.sybase.jaguar.component.bind.naming property is the directory where
> > component is found?
> >
> > The component name in Easerver is CityEJB and package name is City. When
> we
> > execute the proxy in PB, this bring for us "citylocal", "citylocalhome"
> and
> > "none" interfaces.
> >
> > Thanks a lot in advance.
> >
> > Paulo.
> >
> > "Jim O'Neil [Sybase]" <joneil@sybase.com> wrote in message
> > news:3f43a7c8.15985315@forums.sybase.com...
> > > If the JNDI name is empty, then EAServer will default the name to
> > > <package>/<component>. You however are passing in City/CityEJB as the
> > > name, so I'm not sure why it's looking for ejb/CityEJB. This is
> > > purely from a PowerBuilder client right? This is not a EJB-ref for an
> > > intercomponent call? Try explicitly setting the JNDI name
> > > (com.sybase.jaguar.component.bind.naming property) to City/CityEJB in
> > > EAServer Manager and see if you fare better.
> > >
> > >
> > > On 20 Aug 2003 09:26:02 -0700, "Paulo Eduardo Ostermann Filho"
> > > <peoft@terra.com.br> wrote:
> > >
> > > >Hi, Jim.
> > > >The Name of JNDI is empty in component properties and the log error
of
> > > >Easerver is:
> > > >
> > > >/////////////
> > > >Aug 20 11:28:59 2003: Exception 'CosNaming::NamingContext::NotFound'
in
> > > >Session::lookup for component 'ejb/CityEJB'
> > > >
> > > >Aug 20 11:28:59 2003: SystemException: OBJECT_NOT_EXIST
> (Session/lookup -
> > > >@172.22.2.125)
> > > >
> > > >//////
> > > >
> > > >Can you explain how to use JNDI in Easerver or send me one example
for
> > this?
> > > >
> > > >Thanks a lot in advance.
> > > >
> > > >Paulo.
> > > >
> > > >
> > > >
> > > >"Jim O'Neil [Sybase]" <joneil@sybase.com> wrote in message
> > > >news:3f436f4c.1527656@forums.sybase.com...
> > > >> What is the JNDI name of the bean? Does the EAServer log file
> contain
> > > >> an error message.
> > > >>
> > > >> On 19 Aug 2003 11:59:46 -0700, "Paulo Eduardo Ostermann Filho"
> > > >> <peoft@terra.com.br> wrote:
> > > >>
> > > >> >Hi, all.
> > > >> >
> > > >> >We are developing a PB client that instantiate one EJB entity
> > component
> > > >in
> > > >> >Easerver 4.2. When I call "lookup", this return the following
error:
> > > >> >"Distributed Service error: E13 Could not create object of class
> > > >> >'City/CityEJB'. (7E0)". The source code is this:
> > > >> >
> > > >> >/////////////////////////////
> > > >> >
> > > >> >long ll_return
> > > >> >blob lb_argument
> > > >> >CityLocal MyCity
> > > >> >CityLocalHome MyCityHome
> > > >> >
> > > >> >eas_connect = create n_apt_ejbclient_connect
> > > >> >
> > > >> >if (eas_connect.connecttoserver( ) <> 0) then
> > > >> > MessageBox("Erro","")
> > > >> > return
> > > >> >end if
> > > >> >
> > > >> >ll_return =
> > > >>
> > >
> >
>
>>eas_connect.lookup(MyCityHome,"City/CityEJB","com/sybase/City/CityLocalHom
> > e
> > > >"
> > > >> >)
> > > >> >
> > > >> >IF ll_return <> 0 THEN
> > > >> > MessageBox("Lookup failed", eas_connect.errtext)
> > > >> >ELSE
> > > >> >
> > > >> > try
> > > >> > MyCity = MyCityHome.findbyprimarykey(lb_argument)
> > > >> > catch (ctscomponents_finderexception fe)
> > > >> > MessageBox("Findprimary exception", fe.getmessage())
> > > >> > // handle exception
> > > >> > end try
> > > >> >
> > > >> > MyCity.getprimarykey( )
> > > >> >
> > > >> > lb_argument = blob("Taquara")
> > > >> >
> > > >> > try
> > > >> > MyCity.setvalue(lb_argument)
> > > >> > catch (invalidobjectexception io)
> > > >> > MessageBox("Set value exception",io.getmessage())
> > > >> > end try
> > > >> >END IF
> > > >> >
> > > >> >if (isValid(MyCity)) then
> > > >> > destroy(MyCity)
> > > >> >end if
> > > >> >
> > > >> >
> > > >> >if (isValid(MyCityHome)) then
> > > >> > destroy(MyCityHome)
> > > >> >end if
> > > >> >
> > > >> >
> > > >> >////////////////////
> > > >> >
> > > >> >CityEJB is the name of entity class in Easerver. Someone knows
what
> is
> > > >the
> > > >> >problem?
> > > >> >
> > > >> >Thanks in advance.
> > > >> >
> > > >> >Paulo.
> > > >> >
> > > >> >
> > > >>
> > > >> Jim O'Neil
> > > >> Principal Technical Support Engineer
> > > >> Sybase, Inc.
> > > >> Concord, MA
> > > >
> > > >
> > >
> > > Jim O'Neil
> > > Principal Technical Support Engineer
> > > Sybase, Inc.
> > > Concord, MA
> >
> >
>
>


Paulo Eduardo Ostermann Filho Posted on 2003-08-20 18:43:57.0Z
From: "Paulo Eduardo Ostermann Filho" <peoft@terra.com.br>
Newsgroups: sybase.public.powerbuilder.ejbclient
References: <3f427082@forums-2-dub> <3f436f4c.1527656@forums.sybase.com> <3f43a133@forums-2-dub> <3f43a7c8.15985315@forums.sybase.com> <3f43ae0c@forums-1-dub> <3f43b66c@forums-1-dub> <3f43bea5@forums-1-dub>
Subject: Re: Problem with lookup
Lines: 425
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: 200-102-085-013.nhoce7002.dsl.brasiltelecom.net.br
X-Original-NNTP-Posting-Host: 200-102-085-013.nhoce7002.dsl.brasiltelecom.net.br
Message-ID: <3f43c16d@forums-1-dub>
Date: 20 Aug 2003 11:43:57 -0700
X-Trace: forums-1-dub 1061405037 200.102.85.13 (20 Aug 2003 11:43:57 -0700)
X-Original-Trace: 20 Aug 2003 11:43:57 -0700, 200-102-085-013.nhoce7002.dsl.brasiltelecom.net.br
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:129
Article PK: 424324

Sorry, but in 'Red' didn´t work out. I put label "<<<<ERROR>>>>" in line
with error.

"Paulo Eduardo Ostermann Filho" <peoft@terra.com.br> wrote in message
news:3f43bea5@forums-1-dub...
> Jim
>
> We have found erros in inicialization of Easerver. Next is the log:
>
> ////////////////////////////////
>
> Aug 20 14:46:57 2003:
>
> Sybase Enterprise Application Server(Developer Edition).This version of
> Enterprise Application Server(TM) is licensed solely for development
> purposes.
>
> Any other use of software, including but not limited to production use or
> use on a webserver is strictly prohibited.Deployment licenses may be
> obtained from Sybase, Inc. for a fee.
>
> Aug 20 14:46:57 2003: Jaguar CTS - Component Transaction Server/Version
4.2
> (Build 42012)/P/PC Intel/Windows NT 4.0/OPT/Dec 5 2002 18:00:18
>
> Confidential property of Sybase, Inc.
>
> (c) Copyright Sybase Inc. 1987,2002
>
> All rights reserved.
>
> Use, duplication, or disclosure by the United States Government
>
> is subject to restrictions as set forth in FAR subparagraphs
>
> 52.227-19 (a)-(d) for civilian agency contracts and DFARS 252.227-7013
>
> (c)(1)(ii) for Department of Defense contracts. Sybase reserves all
>
> unpublished rights under the copyright laws of the United States.
>
> Sybase, Inc. One Sybase Drive, Dublin, CA 94568 USA.
>
> Aug 20 14:46:57 2003:
>
> 2 Phase Commit Option Licensed
>
> Aug 20 14:46:57 2003: CLUSTERING Option Licensed
>
> Aug 20 14:46:57 2003:
>
> High Availability Option Licensed
>
> Aug 20 14:46:57 2003:
>
> Application Integrator for CICS Option Licensed
>
> Aug 20 14:46:58 2003: Listener # 1: Jaguar_tds: Active: yes Protocol:
'TDS':
> 'tp-inf-028',7878 Security Profile: '*NONE*'
>
> Aug 20 14:46:58 2003: Listener # 2: Jaguar_OpenServer: Active: yes
Protocol:
> 'TDS': 'tp-inf-028',7979 Security Profile: '*NONE*'
>
> Aug 20 14:46:58 2003: Listener # 3: Jaguar_http: Active: yes Protocol:
> 'HTTP': 'tp-inf-028',8080 Security Profile: '*NONE*'
>
> Aug 20 14:46:58 2003: Listener # 4: Jaguar_https1: Active: yes Protocol:
> 'HTTPS': 'tp-inf-028',8081 Security Profile: 'sybpks_intl'
>
> Subject DN: C = US, ST = Some State, L = Some Locality, O = Some
> Organization, CN = Sample1
>
> Aug 20 14:46:58 2003: Listener # 5: Jaguar_https2: Active: yes Protocol:
> 'HTTPS': 'tp-inf-028',8082 Security Profile: 'sybpks_intl_mutual_auth'
>
> Subject DN: C = US, ST = Some State, L = Some Locality, O = Some
> Organization, CN = Sample2
>
> Aug 20 14:46:58 2003: Listener # 6: Jaguar_iiop: Active: yes Protocol:
> 'IIOP': 'tp-inf-028',9000 Security Profile: '*NONE*'
>
> Aug 20 14:46:58 2003: Listener # 7: Jaguar_iiops1: Active: yes Protocol:
> 'IIOPS': 'tp-inf-028',9001 Security Profile: 'sybpks_intl'
>
> Subject DN: C = US, ST = Some State, L = Some Locality, O = Some
> Organization, CN = Sample1
>
> Aug 20 14:46:58 2003: Listener # 8: Jaguar_iiops2: Active: yes Protocol:
> 'IIOPS': 'tp-inf-028',9002 Security Profile: 'sybpks_intl_mutual_auth'
>
> Subject DN: C = US, ST = Some State, L = Some Locality, O = Some
> Organization, CN = Sample2
>
> Aug 20 14:46:58 2003: Server is running in 1PC Transaction mode.
>
> Aug 20 14:46:58 2003: Starting Jaguar CTS
>
> Aug 20 14:46:58 2003: Server's native codeset is utf8
>
> Aug 20 14:46:58 2003: Library: 'libjjdk12.dll' for component type 'java'
>
> Aug 20 14:46:58 2003: Java JIT Compiler enabled
>
> Aug 20 14:46:58 2003: Java component debugging disabled
>
> Aug 20 14:46:58 2003: Java virtual machine initialized: java version
> 1.3.1_06
>
> Aug 20 14:46:58 2003: Java virtual machine initialized: Java HotSpot(TM)
> Client VM (version 1.3.1_06-b01, mixed mode)
>
> Aug 20 14:46:59 2003: Repository: C:\EASERVER\EAServer\Repository
>
> Aug 20 14:46:59 2003: JaguarClassLoader: Server level JaguarClassLoader
> initialized
>
> Aug 20 14:46:59 2003:
> *********************************************************
>
> Aug 20 14:46:59 2003: * Recommendation: for improved EJB performance *
>
> Aug 20 14:46:59 2003: * set server property
> com.sybase.jaguar.server.lwc=true *
>
> Aug 20 14:46:59 2003: * to enable Lightweight Container (then restart
> server) *
>
> Aug 20 14:46:59 2003:
> *********************************************************
>
> Aug 20 14:46:59 2003: Host IP: 172.22.2.188
>
> Aug 20 14:46:59 2003: NameServiceURL: iiop://0:0
>
> Aug 20 14:46:59 2003: Starting Services...
>
> Aug 20 14:46:59 2003: Started: Jaguar/Repository
>
> Aug 20 14:46:59 2003: Started: Jaguar/GarbageCollector
>
> Aug 20 14:46:59 2003: JCM Loading Connection Caches and/or XA Resources
...
>
> Aug 20 14:46:59 2003: JCM Loading Connectors/Resource Adapters ...
>
> Aug 20 14:46:59 2003: Started: Jaguar/JCM
>
> Aug 20 14:46:59 2003: Starting Jaguar Naming Services...
>
> Aug 20 14:46:59 2003: Started: CosNaming/JNameService
>
> Aug 20 14:46:59 2003: Authentication timeout period is 3600 seconds.
>
> Note: authentication timeout can be disabled.
>
> Aug 20 14:46:59 2003: Authentication lockout period is 600 seconds.
>
> Note: authentication lockout can be disabled.
>
> Aug 20 14:46:59 2003: PermissionCache: Authorization cache timeout: 120
> minutes
>
> Aug 20 14:47:09 2003: SignOnDAO adding protected resource:
ProtectedResource
> [ name=Customer Screen, urlPattern=customer.screen, roles=[]]
>
> Aug 20 14:47:09 2003: SignOnDAO adding protected resource:
ProtectedResource
> [ name=Enter Order Information Screen,
> urlPattern=enter_order_information.screen, roles=[]]
>
> Aug 20 14:47:09 2003: SignOnDAO adding protected resource:
ProtectedResource
> [ name=Sign On Welcome SCreen, urlPattern=signon_welcome.screen, roles=[]]
>
> Aug 20 14:47:10 2003: Started: JaguarServlet/ServletService
>
> Aug 20 14:47:10 2003: Running: services...
>
> Aug 20 14:47:10 2003: Running: CosNaming/JNameService
>
> Aug 20 14:47:10 2003: Running: Jaguar/GarbageCollector
>
> Aug 20 14:47:10 2003: Running: JaguarServlet/ServletService
>
><<<<ERROR>>>> Aug 20 14:47:13 2003: Stopped: CosNaming/JNameService
>
> Aug 20 14:49:08 2003: Set 'tx_vote=false' for component
'Jaguar/FileViewer'
> since 'sharing=true'. Otherwise, memory leak may occur.
>
> Aug 20 14:49:17 2003: Exception 'CosNaming::NamingContext::NotFound' in
> Session::lookup for component 'City/CityEJB'
>
> Aug 20 14:49:17 2003: SystemException: OBJECT_NOT_EXIST (Session/lookup -
> @172.22.2.125)
>
> 7 2003: SystemException: OBJECT_NOT_EXIST (Session/lookup - @172.22.2.125)
><<<<ERROR>>>> Aug 20 14:56:30 2003: Exception
'CosNaming::NamingContext::NotFound' in
> Session::lookup for component 'City/CityEJB'
>
> Aug 20 14:56:30 2003: SystemException: OBJECT_NOT_EXIST (Session/lookup -
> @172.22.2.125)
>
> Aug 20 14:56:40 2003: Exception 'CosNaming::NamingContext::NotFound' in
> Session::lookup for component 'City/CityEJB'
>
> Aug 20 14:56:40 2003: SystemException: OBJECT_NOT_EXIST (Session/lookup -
> @172.22.2.125)
>
> Log file is empty.
>
> Log file is empty.
>
> Log file is empty.
>
> //////////////////////////////////////
>
> In red, you can see the errors that occur in Easerver. Do you know why
this
> occur?
>
> Thanks a lot.
>
> Paulo.
>
>
>
>
>
>
> "Paulo Eduardo Ostermann Filho" <peoft@terra.com.br> wrote in message
> news:3f43b66c@forums-1-dub...
> > Hi, Jim.
> > Now, I believe that I understood your question "JNDI name
> > > > (com.sybase.jaguar.component.bind.naming property)?". This property
in
> > Easerver has following: com.tutorial.one.CityEJB.
> >
> > Sorry my poor English.
> >
> > Thanks man.
> >
> > Paulo.
> >
> > "Paulo Eduardo Ostermann Filho" <peoft@terra.com.br> wrote in message
> > news:3f43ae0c@forums-1-dub...
> > > We tried with City/CityEJB, but this didn´t work, too. Yes, It is
purely
> > > from PB client. We put this JNDI: com.tutorial.one.CityEJB and
> > > com.tutorial.one.City.CityEJB, but didn´t work. Occur the same
problem.
> > The
> > > com.sybase.jaguar.component.bind.naming property is the directory
where
> > > component is found?
> > >
> > > The component name in Easerver is CityEJB and package name is City.
When
> > we
> > > execute the proxy in PB, this bring for us "citylocal",
"citylocalhome"
> > and
> > > "none" interfaces.
> > >
> > > Thanks a lot in advance.
> > >
> > > Paulo.
> > >
> > > "Jim O'Neil [Sybase]" <joneil@sybase.com> wrote in message
> > > news:3f43a7c8.15985315@forums.sybase.com...
> > > > If the JNDI name is empty, then EAServer will default the name to
> > > > <package>/<component>. You however are passing in City/CityEJB as
the
> > > > name, so I'm not sure why it's looking for ejb/CityEJB. This is
> > > > purely from a PowerBuilder client right? This is not a EJB-ref for
an
> > > > intercomponent call? Try explicitly setting the JNDI name
> > > > (com.sybase.jaguar.component.bind.naming property) to City/CityEJB
in
> > > > EAServer Manager and see if you fare better.
> > > >
> > > >
> > > > On 20 Aug 2003 09:26:02 -0700, "Paulo Eduardo Ostermann Filho"
> > > > <peoft@terra.com.br> wrote:
> > > >
> > > > >Hi, Jim.
> > > > >The Name of JNDI is empty in component properties and the log error
> of
> > > > >Easerver is:
> > > > >
> > > > >/////////////
> > > > >Aug 20 11:28:59 2003: Exception
'CosNaming::NamingContext::NotFound'
> in
> > > > >Session::lookup for component 'ejb/CityEJB'
> > > > >
> > > > >Aug 20 11:28:59 2003: SystemException: OBJECT_NOT_EXIST
> > (Session/lookup -
> > > > >@172.22.2.125)
> > > > >
> > > > >//////
> > > > >
> > > > >Can you explain how to use JNDI in Easerver or send me one example
> for
> > > this?
> > > > >
> > > > >Thanks a lot in advance.
> > > > >
> > > > >Paulo.
> > > > >
> > > > >
> > > > >
> > > > >"Jim O'Neil [Sybase]" <joneil@sybase.com> wrote in message
> > > > >news:3f436f4c.1527656@forums.sybase.com...
> > > > >> What is the JNDI name of the bean? Does the EAServer log file
> > contain
> > > > >> an error message.
> > > > >>
> > > > >> On 19 Aug 2003 11:59:46 -0700, "Paulo Eduardo Ostermann Filho"
> > > > >> <peoft@terra.com.br> wrote:
> > > > >>
> > > > >> >Hi, all.
> > > > >> >
> > > > >> >We are developing a PB client that instantiate one EJB entity
> > > component
> > > > >in
> > > > >> >Easerver 4.2. When I call "lookup", this return the following
> error:
> > > > >> >"Distributed Service error: E13 Could not create object of class
> > > > >> >'City/CityEJB'. (7E0)". The source code is this:
> > > > >> >
> > > > >> >/////////////////////////////
> > > > >> >
> > > > >> >long ll_return
> > > > >> >blob lb_argument
> > > > >> >CityLocal MyCity
> > > > >> >CityLocalHome MyCityHome
> > > > >> >
> > > > >> >eas_connect = create n_apt_ejbclient_connect
> > > > >> >
> > > > >> >if (eas_connect.connecttoserver( ) <> 0) then
> > > > >> > MessageBox("Erro","")
> > > > >> > return
> > > > >> >end if
> > > > >> >
> > > > >> >ll_return =
> > > > >>
> > > >
> > >
> >
>
>>eas_connect.lookup(MyCityHome,"City/CityEJB","com/sybase/City/CityLocalHom
> > > e
> > > > >"
> > > > >> >)
> > > > >> >
> > > > >> >IF ll_return <> 0 THEN
> > > > >> > MessageBox("Lookup failed", eas_connect.errtext)
> > > > >> >ELSE
> > > > >> >
> > > > >> > try
> > > > >> > MyCity = MyCityHome.findbyprimarykey(lb_argument)
> > > > >> > catch (ctscomponents_finderexception fe)
> > > > >> > MessageBox("Findprimary exception", fe.getmessage())
> > > > >> > // handle exception
> > > > >> > end try
> > > > >> >
> > > > >> > MyCity.getprimarykey( )
> > > > >> >
> > > > >> > lb_argument = blob("Taquara")
> > > > >> >
> > > > >> > try
> > > > >> > MyCity.setvalue(lb_argument)
> > > > >> > catch (invalidobjectexception io)
> > > > >> > MessageBox("Set value exception",io.getmessage())
> > > > >> > end try
> > > > >> >END IF
> > > > >> >
> > > > >> >if (isValid(MyCity)) then
> > > > >> > destroy(MyCity)
> > > > >> >end if
> > > > >> >
> > > > >> >
> > > > >> >if (isValid(MyCityHome)) then
> > > > >> > destroy(MyCityHome)
> > > > >> >end if
> > > > >> >
> > > > >> >
> > > > >> >////////////////////
> > > > >> >
> > > > >> >CityEJB is the name of entity class in Easerver. Someone knows
> what
> > is
> > > > >the
> > > > >> >problem?
> > > > >> >
> > > > >> >Thanks in advance.
> > > > >> >
> > > > >> >Paulo.
> > > > >> >
> > > > >> >
> > > > >>
> > > > >> Jim O'Neil
> > > > >> Principal Technical Support Engineer
> > > > >> Sybase, Inc.
> > > > >> Concord, MA
> > > > >
> > > > >
> > > >
> > > > Jim O'Neil
> > > > Principal Technical Support Engineer
> > > > Sybase, Inc.
> > > > Concord, MA
> > >
> > >
> >
> >
>
>


Jim O'Neil [Sybase] Posted on 2003-08-20 20:30:50.0Z
From: joneil@sybase.com (Jim O'Neil [Sybase])
Newsgroups: sybase.public.powerbuilder.ejbclient
Subject: Re: Problem with lookup
Organization: Sybase Technical Support
Reply-To: joneil_REMOVETHISPART@sybase.com
Message-ID: <3f43d9c2.28779232@forums.sybase.com>
References: <3f427082@forums-2-dub> <3f436f4c.1527656@forums.sybase.com> <3f43a133@forums-2-dub> <3f43a7c8.15985315@forums.sybase.com> <3f43ae0c@forums-1-dub> <3f43b66c@forums-1-dub> <3f43bea5@forums-1-dub> <3f43c16d@forums-1-dub>
X-Newsreader: Forte Free Agent 1.21/32.243
NNTP-Posting-Host: joneilpc.sybase.com
X-Original-NNTP-Posting-Host: joneilpc.sybase.com
Date: 20 Aug 2003 13:30:50 -0700
X-Trace: forums-1-dub 1061411450 204.167.42.59 (20 Aug 2003 13:30:50 -0700)
X-Original-Trace: 20 Aug 2003 13:30:50 -0700, joneilpc.sybase.com
Lines: 443
X-Authenticated-User: TeamPS
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:130
Article PK: 424325

Yes, this means you are looking up an entity called "City/CityEJB" and
EAServer doesn't know of an object by that name. From a previous
post, the name that EAServer would know it by is the
com.sybase.jaguar.component.bind.naming value which you mentioned is
com.tutorial.one.CityEJB.

You mentioned seeing the same error with that, but please try it again
because the message in the log should at least include that new name
versus the other City/CityEJB name.

On 20 Aug 2003 11:43:57 -0700, "Paulo Eduardo Ostermann Filho"

<peoft@terra.com.br> wrote:

>Sorry, but in 'Red' didn´t work out. I put label "<<<<ERROR>>>>" in line
>with error.
>
>"Paulo Eduardo Ostermann Filho" <peoft@terra.com.br> wrote in message
>news:3f43bea5@forums-1-dub...
>> Jim
>>
>> We have found erros in inicialization of Easerver. Next is the log:
>>
>> ////////////////////////////////
>>
>> Aug 20 14:46:57 2003:
>>
>> Sybase Enterprise Application Server(Developer Edition).This version of
>> Enterprise Application Server(TM) is licensed solely for development
>> purposes.
>>
>> Any other use of software, including but not limited to production use or
>> use on a webserver is strictly prohibited.Deployment licenses may be
>> obtained from Sybase, Inc. for a fee.
>>
>> Aug 20 14:46:57 2003: Jaguar CTS - Component Transaction Server/Version
>4.2
>> (Build 42012)/P/PC Intel/Windows NT 4.0/OPT/Dec 5 2002 18:00:18
>>
>> Confidential property of Sybase, Inc.
>>
>> (c) Copyright Sybase Inc. 1987,2002
>>
>> All rights reserved.
>>
>> Use, duplication, or disclosure by the United States Government
>>
>> is subject to restrictions as set forth in FAR subparagraphs
>>
>> 52.227-19 (a)-(d) for civilian agency contracts and DFARS 252.227-7013
>>
>> (c)(1)(ii) for Department of Defense contracts. Sybase reserves all
>>
>> unpublished rights under the copyright laws of the United States.
>>
>> Sybase, Inc. One Sybase Drive, Dublin, CA 94568 USA.
>>
>> Aug 20 14:46:57 2003:
>>
>> 2 Phase Commit Option Licensed
>>
>> Aug 20 14:46:57 2003: CLUSTERING Option Licensed
>>
>> Aug 20 14:46:57 2003:
>>
>> High Availability Option Licensed
>>
>> Aug 20 14:46:57 2003:
>>
>> Application Integrator for CICS Option Licensed
>>
>> Aug 20 14:46:58 2003: Listener # 1: Jaguar_tds: Active: yes Protocol:
>'TDS':
>> 'tp-inf-028',7878 Security Profile: '*NONE*'
>>
>> Aug 20 14:46:58 2003: Listener # 2: Jaguar_OpenServer: Active: yes
>Protocol:
>> 'TDS': 'tp-inf-028',7979 Security Profile: '*NONE*'
>>
>> Aug 20 14:46:58 2003: Listener # 3: Jaguar_http: Active: yes Protocol:
>> 'HTTP': 'tp-inf-028',8080 Security Profile: '*NONE*'
>>
>> Aug 20 14:46:58 2003: Listener # 4: Jaguar_https1: Active: yes Protocol:
>> 'HTTPS': 'tp-inf-028',8081 Security Profile: 'sybpks_intl'
>>
>> Subject DN: C = US, ST = Some State, L = Some Locality, O = Some
>> Organization, CN = Sample1
>>
>> Aug 20 14:46:58 2003: Listener # 5: Jaguar_https2: Active: yes Protocol:
>> 'HTTPS': 'tp-inf-028',8082 Security Profile: 'sybpks_intl_mutual_auth'
>>
>> Subject DN: C = US, ST = Some State, L = Some Locality, O = Some
>> Organization, CN = Sample2
>>
>> Aug 20 14:46:58 2003: Listener # 6: Jaguar_iiop: Active: yes Protocol:
>> 'IIOP': 'tp-inf-028',9000 Security Profile: '*NONE*'
>>
>> Aug 20 14:46:58 2003: Listener # 7: Jaguar_iiops1: Active: yes Protocol:
>> 'IIOPS': 'tp-inf-028',9001 Security Profile: 'sybpks_intl'
>>
>> Subject DN: C = US, ST = Some State, L = Some Locality, O = Some
>> Organization, CN = Sample1
>>
>> Aug 20 14:46:58 2003: Listener # 8: Jaguar_iiops2: Active: yes Protocol:
>> 'IIOPS': 'tp-inf-028',9002 Security Profile: 'sybpks_intl_mutual_auth'
>>
>> Subject DN: C = US, ST = Some State, L = Some Locality, O = Some
>> Organization, CN = Sample2
>>
>> Aug 20 14:46:58 2003: Server is running in 1PC Transaction mode.
>>
>> Aug 20 14:46:58 2003: Starting Jaguar CTS
>>
>> Aug 20 14:46:58 2003: Server's native codeset is utf8
>>
>> Aug 20 14:46:58 2003: Library: 'libjjdk12.dll' for component type 'java'
>>
>> Aug 20 14:46:58 2003: Java JIT Compiler enabled
>>
>> Aug 20 14:46:58 2003: Java component debugging disabled
>>
>> Aug 20 14:46:58 2003: Java virtual machine initialized: java version
>> 1.3.1_06
>>
>> Aug 20 14:46:58 2003: Java virtual machine initialized: Java HotSpot(TM)
>> Client VM (version 1.3.1_06-b01, mixed mode)
>>
>> Aug 20 14:46:59 2003: Repository: C:\EASERVER\EAServer\Repository
>>
>> Aug 20 14:46:59 2003: JaguarClassLoader: Server level JaguarClassLoader
>> initialized
>>
>> Aug 20 14:46:59 2003:
>> *********************************************************
>>
>> Aug 20 14:46:59 2003: * Recommendation: for improved EJB performance *
>>
>> Aug 20 14:46:59 2003: * set server property
>> com.sybase.jaguar.server.lwc=true *
>>
>> Aug 20 14:46:59 2003: * to enable Lightweight Container (then restart
>> server) *
>>
>> Aug 20 14:46:59 2003:
>> *********************************************************
>>
>> Aug 20 14:46:59 2003: Host IP: 172.22.2.188
>>
>> Aug 20 14:46:59 2003: NameServiceURL: iiop://0:0
>>
>> Aug 20 14:46:59 2003: Starting Services...
>>
>> Aug 20 14:46:59 2003: Started: Jaguar/Repository
>>
>> Aug 20 14:46:59 2003: Started: Jaguar/GarbageCollector
>>
>> Aug 20 14:46:59 2003: JCM Loading Connection Caches and/or XA Resources
>...
>>
>> Aug 20 14:46:59 2003: JCM Loading Connectors/Resource Adapters ...
>>
>> Aug 20 14:46:59 2003: Started: Jaguar/JCM
>>
>> Aug 20 14:46:59 2003: Starting Jaguar Naming Services...
>>
>> Aug 20 14:46:59 2003: Started: CosNaming/JNameService
>>
>> Aug 20 14:46:59 2003: Authentication timeout period is 3600 seconds.
>>
>> Note: authentication timeout can be disabled.
>>
>> Aug 20 14:46:59 2003: Authentication lockout period is 600 seconds.
>>
>> Note: authentication lockout can be disabled.
>>
>> Aug 20 14:46:59 2003: PermissionCache: Authorization cache timeout: 120
>> minutes
>>
>> Aug 20 14:47:09 2003: SignOnDAO adding protected resource:
>ProtectedResource
>> [ name=Customer Screen, urlPattern=customer.screen, roles=[]]
>>
>> Aug 20 14:47:09 2003: SignOnDAO adding protected resource:
>ProtectedResource
>> [ name=Enter Order Information Screen,
>> urlPattern=enter_order_information.screen, roles=[]]
>>
>> Aug 20 14:47:09 2003: SignOnDAO adding protected resource:
>ProtectedResource
>> [ name=Sign On Welcome SCreen, urlPattern=signon_welcome.screen, roles=[]]
>>
>> Aug 20 14:47:10 2003: Started: JaguarServlet/ServletService
>>
>> Aug 20 14:47:10 2003: Running: services...
>>
>> Aug 20 14:47:10 2003: Running: CosNaming/JNameService
>>
>> Aug 20 14:47:10 2003: Running: Jaguar/GarbageCollector
>>
>> Aug 20 14:47:10 2003: Running: JaguarServlet/ServletService
>>
>><<<<ERROR>>>> Aug 20 14:47:13 2003: Stopped: CosNaming/JNameService
>>
>> Aug 20 14:49:08 2003: Set 'tx_vote=false' for component
>'Jaguar/FileViewer'
>> since 'sharing=true'. Otherwise, memory leak may occur.
>>
>> Aug 20 14:49:17 2003: Exception 'CosNaming::NamingContext::NotFound' in
>> Session::lookup for component 'City/CityEJB'
>>
>> Aug 20 14:49:17 2003: SystemException: OBJECT_NOT_EXIST (Session/lookup -
>> @172.22.2.125)
>>
>> 7 2003: SystemException: OBJECT_NOT_EXIST (Session/lookup - @172.22.2.125)
>><<<<ERROR>>>> Aug 20 14:56:30 2003: Exception
>'CosNaming::NamingContext::NotFound' in
>> Session::lookup for component 'City/CityEJB'
>>
>> Aug 20 14:56:30 2003: SystemException: OBJECT_NOT_EXIST (Session/lookup -
>> @172.22.2.125)
>>
>> Aug 20 14:56:40 2003: Exception 'CosNaming::NamingContext::NotFound' in
>> Session::lookup for component 'City/CityEJB'
>>
>> Aug 20 14:56:40 2003: SystemException: OBJECT_NOT_EXIST (Session/lookup -
>> @172.22.2.125)
>>
>> Log file is empty.
>>
>> Log file is empty.
>>
>> Log file is empty.
>>
>> //////////////////////////////////////
>>
>> In red, you can see the errors that occur in Easerver. Do you know why
>this
>> occur?
>>
>> Thanks a lot.
>>
>> Paulo.
>>
>>
>>
>>
>>
>>
>> "Paulo Eduardo Ostermann Filho" <peoft@terra.com.br> wrote in message
>> news:3f43b66c@forums-1-dub...
>> > Hi, Jim.
>> > Now, I believe that I understood your question "JNDI name
>> > > > (com.sybase.jaguar.component.bind.naming property)?". This property
>in
>> > Easerver has following: com.tutorial.one.CityEJB.
>> >
>> > Sorry my poor English.
>> >
>> > Thanks man.
>> >
>> > Paulo.
>> >
>> > "Paulo Eduardo Ostermann Filho" <peoft@terra.com.br> wrote in message
>> > news:3f43ae0c@forums-1-dub...
>> > > We tried with City/CityEJB, but this didn´t work, too. Yes, It is
>purely
>> > > from PB client. We put this JNDI: com.tutorial.one.CityEJB and
>> > > com.tutorial.one.City.CityEJB, but didn´t work. Occur the same
>problem.
>> > The
>> > > com.sybase.jaguar.component.bind.naming property is the directory
>where
>> > > component is found?
>> > >
>> > > The component name in Easerver is CityEJB and package name is City.
>When
>> > we
>> > > execute the proxy in PB, this bring for us "citylocal",
>"citylocalhome"
>> > and
>> > > "none" interfaces.
>> > >
>> > > Thanks a lot in advance.
>> > >
>> > > Paulo.
>> > >
>> > > "Jim O'Neil [Sybase]" <joneil@sybase.com> wrote in message
>> > > news:3f43a7c8.15985315@forums.sybase.com...
>> > > > If the JNDI name is empty, then EAServer will default the name to
>> > > > <package>/<component>. You however are passing in City/CityEJB as
>the
>> > > > name, so I'm not sure why it's looking for ejb/CityEJB. This is
>> > > > purely from a PowerBuilder client right? This is not a EJB-ref for
>an
>> > > > intercomponent call? Try explicitly setting the JNDI name
>> > > > (com.sybase.jaguar.component.bind.naming property) to City/CityEJB
>in
>> > > > EAServer Manager and see if you fare better.
>> > > >
>> > > >
>> > > > On 20 Aug 2003 09:26:02 -0700, "Paulo Eduardo Ostermann Filho"
>> > > > <peoft@terra.com.br> wrote:
>> > > >
>> > > > >Hi, Jim.
>> > > > >The Name of JNDI is empty in component properties and the log error
>> of
>> > > > >Easerver is:
>> > > > >
>> > > > >/////////////
>> > > > >Aug 20 11:28:59 2003: Exception
>'CosNaming::NamingContext::NotFound'
>> in
>> > > > >Session::lookup for component 'ejb/CityEJB'
>> > > > >
>> > > > >Aug 20 11:28:59 2003: SystemException: OBJECT_NOT_EXIST
>> > (Session/lookup -
>> > > > >@172.22.2.125)
>> > > > >
>> > > > >//////
>> > > > >
>> > > > >Can you explain how to use JNDI in Easerver or send me one example
>> for
>> > > this?
>> > > > >
>> > > > >Thanks a lot in advance.
>> > > > >
>> > > > >Paulo.
>> > > > >
>> > > > >
>> > > > >
>> > > > >"Jim O'Neil [Sybase]" <joneil@sybase.com> wrote in message
>> > > > >news:3f436f4c.1527656@forums.sybase.com...
>> > > > >> What is the JNDI name of the bean? Does the EAServer log file
>> > contain
>> > > > >> an error message.
>> > > > >>
>> > > > >> On 19 Aug 2003 11:59:46 -0700, "Paulo Eduardo Ostermann Filho"
>> > > > >> <peoft@terra.com.br> wrote:
>> > > > >>
>> > > > >> >Hi, all.
>> > > > >> >
>> > > > >> >We are developing a PB client that instantiate one EJB entity
>> > > component
>> > > > >in
>> > > > >> >Easerver 4.2. When I call "lookup", this return the following
>> error:
>> > > > >> >"Distributed Service error: E13 Could not create object of class
>> > > > >> >'City/CityEJB'. (7E0)". The source code is this:
>> > > > >> >
>> > > > >> >/////////////////////////////
>> > > > >> >
>> > > > >> >long ll_return
>> > > > >> >blob lb_argument
>> > > > >> >CityLocal MyCity
>> > > > >> >CityLocalHome MyCityHome
>> > > > >> >
>> > > > >> >eas_connect = create n_apt_ejbclient_connect
>> > > > >> >
>> > > > >> >if (eas_connect.connecttoserver( ) <> 0) then
>> > > > >> > MessageBox("Erro","")
>> > > > >> > return
>> > > > >> >end if
>> > > > >> >
>> > > > >> >ll_return =
>> > > > >>
>> > > >
>> > >
>> >
>>
>>>eas_connect.lookup(MyCityHome,"City/CityEJB","com/sybase/City/CityLocalHom
>> > > e
>> > > > >"
>> > > > >> >)
>> > > > >> >
>> > > > >> >IF ll_return <> 0 THEN
>> > > > >> > MessageBox("Lookup failed", eas_connect.errtext)
>> > > > >> >ELSE
>> > > > >> >
>> > > > >> > try
>> > > > >> > MyCity = MyCityHome.findbyprimarykey(lb_argument)
>> > > > >> > catch (ctscomponents_finderexception fe)
>> > > > >> > MessageBox("Findprimary exception", fe.getmessage())
>> > > > >> > // handle exception
>> > > > >> > end try
>> > > > >> >
>> > > > >> > MyCity.getprimarykey( )
>> > > > >> >
>> > > > >> > lb_argument = blob("Taquara")
>> > > > >> >
>> > > > >> > try
>> > > > >> > MyCity.setvalue(lb_argument)
>> > > > >> > catch (invalidobjectexception io)
>> > > > >> > MessageBox("Set value exception",io.getmessage())
>> > > > >> > end try
>> > > > >> >END IF
>> > > > >> >
>> > > > >> >if (isValid(MyCity)) then
>> > > > >> > destroy(MyCity)
>> > > > >> >end if
>> > > > >> >
>> > > > >> >
>> > > > >> >if (isValid(MyCityHome)) then
>> > > > >> > destroy(MyCityHome)
>> > > > >> >end if
>> > > > >> >
>> > > > >> >
>> > > > >> >////////////////////
>> > > > >> >
>> > > > >> >CityEJB is the name of entity class in Easerver. Someone knows
>> what
>> > is
>> > > > >the
>> > > > >> >problem?
>> > > > >> >
>> > > > >> >Thanks in advance.
>> > > > >> >
>> > > > >> >Paulo.
>> > > > >> >
>> > > > >> >
>> > > > >>
>> > > > >> Jim O'Neil
>> > > > >> Principal Technical Support Engineer
>> > > > >> Sybase, Inc.
>> > > > >> Concord, MA
>> > > > >
>> > > > >
>> > > >
>> > > > Jim O'Neil
>> > > > Principal Technical Support Engineer
>> > > > Sybase, Inc.
>> > > > Concord, MA
>> > >
>> > >
>> >
>> >
>>
>>
>
>

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


Jim O'Neil [Sybase] Posted on 2003-08-20 18:40:18.0Z
From: joneil@sybase.com (Jim O'Neil [Sybase])
Newsgroups: sybase.public.powerbuilder.ejbclient
Subject: Re: Problem with lookup
Organization: Sybase Technical Support
Reply-To: joneil_REMOVETHISPART@sybase.com
Message-ID: <3f43bf04.21933418@forums.sybase.com>
References: <3f427082@forums-2-dub> <3f436f4c.1527656@forums.sybase.com> <3f43a133@forums-2-dub> <3f43a7c8.15985315@forums.sybase.com> <3f43ae0c@forums-1-dub> <3f43b66c@forums-1-dub>
X-Newsreader: Forte Free Agent 1.21/32.243
NNTP-Posting-Host: joneilpc.sybase.com
X-Original-NNTP-Posting-Host: joneilpc.sybase.com
Date: 20 Aug 2003 11:40:18 -0700
X-Trace: forums-1-dub 1061404818 204.167.42.59 (20 Aug 2003 11:40:18 -0700)
X-Original-Trace: 20 Aug 2003 11:40:18 -0700, joneilpc.sybase.com
Lines: 189
X-Authenticated-User: TeamPS
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:128
Article PK: 424323

Your English is fine, my Portugese however is non-existent! Well,
given that piece of information, you would need to use the following
code:

eas_connect.lookup(MyCityHome,"com.sybase.jaguar.component.bind.naming
property","com/sybase/City/CityLocalHome")

to get past the original problem. However, I think you'll next have a
problem with the use of what appears to a LocalHome interface. Local
interfaces are used only for calls made within the context of a single
J2EE server (e.g., JSP->EJB or EJB->EJB). You cannot use local
interfaces from a PowerBuilder or Java client application.

On 20 Aug 2003 10:57:00 -0700, "Paulo Eduardo Ostermann Filho"

<peoft@terra.com.br> wrote:

>Hi, Jim.
>Now, I believe that I understood your question "JNDI name
>> > (com.sybase.jaguar.component.bind.naming property)?". This property in
>Easerver has following: com.tutorial.one.CityEJB.
>
>Sorry my poor English.
>
>Thanks man.
>
>Paulo.
>
>"Paulo Eduardo Ostermann Filho" <peoft@terra.com.br> wrote in message
>news:3f43ae0c@forums-1-dub...
>> We tried with City/CityEJB, but this didn´t work, too. Yes, It is purely
>> from PB client. We put this JNDI: com.tutorial.one.CityEJB and
>> com.tutorial.one.City.CityEJB, but didn´t work. Occur the same problem.
>The
>> com.sybase.jaguar.component.bind.naming property is the directory where
>> component is found?
>>
>> The component name in Easerver is CityEJB and package name is City. When
>we
>> execute the proxy in PB, this bring for us "citylocal", "citylocalhome"
>and
>> "none" interfaces.
>>
>> Thanks a lot in advance.
>>
>> Paulo.
>>
>> "Jim O'Neil [Sybase]" <joneil@sybase.com> wrote in message
>> news:3f43a7c8.15985315@forums.sybase.com...
>> > If the JNDI name is empty, then EAServer will default the name to
>> > <package>/<component>. You however are passing in City/CityEJB as the
>> > name, so I'm not sure why it's looking for ejb/CityEJB. This is
>> > purely from a PowerBuilder client right? This is not a EJB-ref for an
>> > intercomponent call? Try explicitly setting the JNDI name
>> > (com.sybase.jaguar.component.bind.naming property) to City/CityEJB in
>> > EAServer Manager and see if you fare better.
>> >
>> >
>> > On 20 Aug 2003 09:26:02 -0700, "Paulo Eduardo Ostermann Filho"
>> > <peoft@terra.com.br> wrote:
>> >
>> > >Hi, Jim.
>> > >The Name of JNDI is empty in component properties and the log error of
>> > >Easerver is:
>> > >
>> > >/////////////
>> > >Aug 20 11:28:59 2003: Exception 'CosNaming::NamingContext::NotFound' in
>> > >Session::lookup for component 'ejb/CityEJB'
>> > >
>> > >Aug 20 11:28:59 2003: SystemException: OBJECT_NOT_EXIST
>(Session/lookup -
>> > >@172.22.2.125)
>> > >
>> > >//////
>> > >
>> > >Can you explain how to use JNDI in Easerver or send me one example for
>> this?
>> > >
>> > >Thanks a lot in advance.
>> > >
>> > >Paulo.
>> > >
>> > >
>> > >
>> > >"Jim O'Neil [Sybase]" <joneil@sybase.com> wrote in message
>> > >news:3f436f4c.1527656@forums.sybase.com...
>> > >> What is the JNDI name of the bean? Does the EAServer log file
>contain
>> > >> an error message.
>> > >>
>> > >> On 19 Aug 2003 11:59:46 -0700, "Paulo Eduardo Ostermann Filho"
>> > >> <peoft@terra.com.br> wrote:
>> > >>
>> > >> >Hi, all.
>> > >> >
>> > >> >We are developing a PB client that instantiate one EJB entity
>> component
>> > >in
>> > >> >Easerver 4.2. When I call "lookup", this return the following error:
>> > >> >"Distributed Service error: E13 Could not create object of class
>> > >> >'City/CityEJB'. (7E0)". The source code is this:
>> > >> >
>> > >> >/////////////////////////////
>> > >> >
>> > >> >long ll_return
>> > >> >blob lb_argument
>> > >> >CityLocal MyCity
>> > >> >CityLocalHome MyCityHome
>> > >> >
>> > >> >eas_connect = create n_apt_ejbclient_connect
>> > >> >
>> > >> >if (eas_connect.connecttoserver( ) <> 0) then
>> > >> > MessageBox("Erro","")
>> > >> > return
>> > >> >end if
>> > >> >
>> > >> >ll_return =
>> > >>
>> >
>>
>>>eas_connect.lookup(MyCityHome,"City/CityEJB","com/sybase/City/CityLocalHom
>> e
>> > >"
>> > >> >)
>> > >> >
>> > >> >IF ll_return <> 0 THEN
>> > >> > MessageBox("Lookup failed", eas_connect.errtext)
>> > >> >ELSE
>> > >> >
>> > >> > try
>> > >> > MyCity = MyCityHome.findbyprimarykey(lb_argument)
>> > >> > catch (ctscomponents_finderexception fe)
>> > >> > MessageBox("Findprimary exception", fe.getmessage())
>> > >> > // handle exception
>> > >> > end try
>> > >> >
>> > >> > MyCity.getprimarykey( )
>> > >> >
>> > >> > lb_argument = blob("Taquara")
>> > >> >
>> > >> > try
>> > >> > MyCity.setvalue(lb_argument)
>> > >> > catch (invalidobjectexception io)
>> > >> > MessageBox("Set value exception",io.getmessage())
>> > >> > end try
>> > >> >END IF
>> > >> >
>> > >> >if (isValid(MyCity)) then
>> > >> > destroy(MyCity)
>> > >> >end if
>> > >> >
>> > >> >
>> > >> >if (isValid(MyCityHome)) then
>> > >> > destroy(MyCityHome)
>> > >> >end if
>> > >> >
>> > >> >
>> > >> >////////////////////
>> > >> >
>> > >> >CityEJB is the name of entity class in Easerver. Someone knows what
>is
>> > >the
>> > >> >problem?
>> > >> >
>> > >> >Thanks in advance.
>> > >> >
>> > >> >Paulo.
>> > >> >
>> > >> >
>> > >>
>> > >> Jim O'Neil
>> > >> Principal Technical Support Engineer
>> > >> Sybase, Inc.
>> > >> Concord, MA
>> > >
>> > >
>> >
>> > Jim O'Neil
>> > Principal Technical Support Engineer
>> > Sybase, Inc.
>> > Concord, MA
>>
>>
>
>

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


Paulo Eduardo Ostermann Filho Posted on 2003-08-21 13:13:15.0Z
From: "Paulo Eduardo Ostermann Filho" <peoft@terra.com.br>
Newsgroups: sybase.public.powerbuilder.ejbclient
References: <3f427082@forums-2-dub> <3f436f4c.1527656@forums.sybase.com> <3f43a133@forums-2-dub> <3f43a7c8.15985315@forums.sybase.com> <3f43ae0c@forums-1-dub> <3f43b66c@forums-1-dub> <3f43bf04.21933418@forums.sybase.com>
Subject: Re: Problem with lookup
Lines: 214
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: 200-102-085-013.nhoce7002.dsl.brasiltelecom.net.br
Message-ID: <3f44c583@forums-2-dub>
X-Original-Trace: 21 Aug 2003 06:13:39 -0700, 200-102-085-013.nhoce7002.dsl.brasiltelecom.net.br
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 21 Aug 2003 06:12:18 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 21 Aug 2003 06:13:15 -0700
X-Trace: forums-1-dub 1061471595 10.22.108.75 (21 Aug 2003 06:13:15 -0700)
X-Original-Trace: 21 Aug 2003 06:13:15 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:132
Article PK: 424327

Hi, Jim.

Thank´s man, I´am writing more in English.We tried with your specification,
but didn't work out. Occur the same problem.

Thanks in advance.

Paulo.

"Jim O'Neil [Sybase]" <joneil@sybase.com> wrote in message
news:3f43bf04.21933418@forums.sybase.com...
> Your English is fine, my Portugese however is non-existent! Well,
> given that piece of information, you would need to use the following
> code:
>
> eas_connect.lookup(MyCityHome,"com.sybase.jaguar.component.bind.naming
> property","com/sybase/City/CityLocalHome")
>
> to get past the original problem. However, I think you'll next have a
> problem with the use of what appears to a LocalHome interface. Local
> interfaces are used only for calls made within the context of a single
> J2EE server (e.g., JSP->EJB or EJB->EJB). You cannot use local
> interfaces from a PowerBuilder or Java client application.
>
> On 20 Aug 2003 10:57:00 -0700, "Paulo Eduardo Ostermann Filho"
> <peoft@terra.com.br> wrote:
>
> >Hi, Jim.
> >Now, I believe that I understood your question "JNDI name
> >> > (com.sybase.jaguar.component.bind.naming property)?". This property
in
> >Easerver has following: com.tutorial.one.CityEJB.
> >
> >Sorry my poor English.
> >
> >Thanks man.
> >
> >Paulo.
> >
> >"Paulo Eduardo Ostermann Filho" <peoft@terra.com.br> wrote in message
> >news:3f43ae0c@forums-1-dub...
> >> We tried with City/CityEJB, but this didn´t work, too. Yes, It is
purely
> >> from PB client. We put this JNDI: com.tutorial.one.CityEJB and
> >> com.tutorial.one.City.CityEJB, but didn´t work. Occur the same problem.
> >The
> >> com.sybase.jaguar.component.bind.naming property is the directory where
> >> component is found?
> >>
> >> The component name in Easerver is CityEJB and package name is City.
When
> >we
> >> execute the proxy in PB, this bring for us "citylocal", "citylocalhome"
> >and
> >> "none" interfaces.
> >>
> >> Thanks a lot in advance.
> >>
> >> Paulo.
> >>
> >> "Jim O'Neil [Sybase]" <joneil@sybase.com> wrote in message
> >> news:3f43a7c8.15985315@forums.sybase.com...
> >> > If the JNDI name is empty, then EAServer will default the name to
> >> > <package>/<component>. You however are passing in City/CityEJB as
the
> >> > name, so I'm not sure why it's looking for ejb/CityEJB. This is
> >> > purely from a PowerBuilder client right? This is not a EJB-ref for
an
> >> > intercomponent call? Try explicitly setting the JNDI name
> >> > (com.sybase.jaguar.component.bind.naming property) to City/CityEJB in
> >> > EAServer Manager and see if you fare better.
> >> >
> >> >
> >> > On 20 Aug 2003 09:26:02 -0700, "Paulo Eduardo Ostermann Filho"
> >> > <peoft@terra.com.br> wrote:
> >> >
> >> > >Hi, Jim.
> >> > >The Name of JNDI is empty in component properties and the log error
of
> >> > >Easerver is:
> >> > >
> >> > >/////////////
> >> > >Aug 20 11:28:59 2003: Exception 'CosNaming::NamingContext::NotFound'
in
> >> > >Session::lookup for component 'ejb/CityEJB'
> >> > >
> >> > >Aug 20 11:28:59 2003: SystemException: OBJECT_NOT_EXIST
> >(Session/lookup -
> >> > >@172.22.2.125)
> >> > >
> >> > >//////
> >> > >
> >> > >Can you explain how to use JNDI in Easerver or send me one example
for
> >> this?
> >> > >
> >> > >Thanks a lot in advance.
> >> > >
> >> > >Paulo.
> >> > >
> >> > >
> >> > >
> >> > >"Jim O'Neil [Sybase]" <joneil@sybase.com> wrote in message
> >> > >news:3f436f4c.1527656@forums.sybase.com...
> >> > >> What is the JNDI name of the bean? Does the EAServer log file
> >contain
> >> > >> an error message.
> >> > >>
> >> > >> On 19 Aug 2003 11:59:46 -0700, "Paulo Eduardo Ostermann Filho"
> >> > >> <peoft@terra.com.br> wrote:
> >> > >>
> >> > >> >Hi, all.
> >> > >> >
> >> > >> >We are developing a PB client that instantiate one EJB entity
> >> component
> >> > >in
> >> > >> >Easerver 4.2. When I call "lookup", this return the following
error:
> >> > >> >"Distributed Service error: E13 Could not create object of class
> >> > >> >'City/CityEJB'. (7E0)". The source code is this:
> >> > >> >
> >> > >> >/////////////////////////////
> >> > >> >
> >> > >> >long ll_return
> >> > >> >blob lb_argument
> >> > >> >CityLocal MyCity
> >> > >> >CityLocalHome MyCityHome
> >> > >> >
> >> > >> >eas_connect = create n_apt_ejbclient_connect
> >> > >> >
> >> > >> >if (eas_connect.connecttoserver( ) <> 0) then
> >> > >> > MessageBox("Erro","")
> >> > >> > return
> >> > >> >end if
> >> > >> >
> >> > >> >ll_return =
> >> > >>
> >> >
> >>
>
>>>eas_connect.lookup(MyCityHome,"City/CityEJB","com/sybase/City/CityLocalHo
m
> >> e
> >> > >"
> >> > >> >)
> >> > >> >
> >> > >> >IF ll_return <> 0 THEN
> >> > >> > MessageBox("Lookup failed", eas_connect.errtext)
> >> > >> >ELSE
> >> > >> >
> >> > >> > try
> >> > >> > MyCity = MyCityHome.findbyprimarykey(lb_argument)
> >> > >> > catch (ctscomponents_finderexception fe)
> >> > >> > MessageBox("Findprimary exception", fe.getmessage())
> >> > >> > // handle exception
> >> > >> > end try
> >> > >> >
> >> > >> > MyCity.getprimarykey( )
> >> > >> >
> >> > >> > lb_argument = blob("Taquara")
> >> > >> >
> >> > >> > try
> >> > >> > MyCity.setvalue(lb_argument)
> >> > >> > catch (invalidobjectexception io)
> >> > >> > MessageBox("Set value exception",io.getmessage())
> >> > >> > end try
> >> > >> >END IF
> >> > >> >
> >> > >> >if (isValid(MyCity)) then
> >> > >> > destroy(MyCity)
> >> > >> >end if
> >> > >> >
> >> > >> >
> >> > >> >if (isValid(MyCityHome)) then
> >> > >> > destroy(MyCityHome)
> >> > >> >end if
> >> > >> >
> >> > >> >
> >> > >> >////////////////////
> >> > >> >
> >> > >> >CityEJB is the name of entity class in Easerver. Someone knows
what
> >is
> >> > >the
> >> > >> >problem?
> >> > >> >
> >> > >> >Thanks in advance.
> >> > >> >
> >> > >> >Paulo.
> >> > >> >
> >> > >> >
> >> > >>
> >> > >> Jim O'Neil
> >> > >> Principal Technical Support Engineer
> >> > >> Sybase, Inc.
> >> > >> Concord, MA
> >> > >
> >> > >
> >> >
> >> > Jim O'Neil
> >> > Principal Technical Support Engineer
> >> > Sybase, Inc.
> >> > Concord, MA
> >>
> >>
> >
> >
>
> Jim O'Neil
> Principal Technical Support Engineer
> Sybase, Inc.
> Concord, MA


Paulo Eduardo Ostermann Filho Posted on 2003-08-21 13:13:16.0Z
From: "Paulo Eduardo Ostermann Filho" <peoft@terra.com.br>
Newsgroups: sybase.public.powerbuilder.ejbclient
References: <3f427082@forums-2-dub> <3f436f4c.1527656@forums.sybase.com> <3f43a133@forums-2-dub> <3f43a7c8.15985315@forums.sybase.com> <3f43ae0c@forums-1-dub> <3f43b66c@forums-1-dub> <3f43bf04.21933418@forums.sybase.com>
Subject: Re: Problem with lookup
Lines: 215
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: 200-102-085-013.nhoce7002.dsl.brasiltelecom.net.br
Message-ID: <3f44c584$1@forums-2-dub>
X-Original-Trace: 21 Aug 2003 06:13:40 -0700, 200-102-085-013.nhoce7002.dsl.brasiltelecom.net.br
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 21 Aug 2003 06:12:19 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 21 Aug 2003 06:13:16 -0700
X-Trace: forums-1-dub 1061471596 10.22.108.75 (21 Aug 2003 06:13:16 -0700)
X-Original-Trace: 21 Aug 2003 06:13:16 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:133
Article PK: 424328

Hi, Jim.

Thanks man. I´am trying to write more.
We tried with your specification, but didn't work out. This generate same
problem.

Thanks in advance.

Paulo.

"Jim O'Neil [Sybase]" <joneil@sybase.com> wrote in message
news:3f43bf04.21933418@forums.sybase.com...
> Your English is fine, my Portugese however is non-existent! Well,
> given that piece of information, you would need to use the following
> code:
>
> eas_connect.lookup(MyCityHome,"com.sybase.jaguar.component.bind.naming
> property","com/sybase/City/CityLocalHome")
>
> to get past the original problem. However, I think you'll next have a
> problem with the use of what appears to a LocalHome interface. Local
> interfaces are used only for calls made within the context of a single
> J2EE server (e.g., JSP->EJB or EJB->EJB). You cannot use local
> interfaces from a PowerBuilder or Java client application.
>
> On 20 Aug 2003 10:57:00 -0700, "Paulo Eduardo Ostermann Filho"
> <peoft@terra.com.br> wrote:
>
> >Hi, Jim.
> >Now, I believe that I understood your question "JNDI name
> >> > (com.sybase.jaguar.component.bind.naming property)?". This property
in
> >Easerver has following: com.tutorial.one.CityEJB.
> >
> >Sorry my poor English.
> >
> >Thanks man.
> >
> >Paulo.
> >
> >"Paulo Eduardo Ostermann Filho" <peoft@terra.com.br> wrote in message
> >news:3f43ae0c@forums-1-dub...
> >> We tried with City/CityEJB, but this didn´t work, too. Yes, It is
purely
> >> from PB client. We put this JNDI: com.tutorial.one.CityEJB and
> >> com.tutorial.one.City.CityEJB, but didn´t work. Occur the same problem.
> >The
> >> com.sybase.jaguar.component.bind.naming property is the directory where
> >> component is found?
> >>
> >> The component name in Easerver is CityEJB and package name is City.
When
> >we
> >> execute the proxy in PB, this bring for us "citylocal", "citylocalhome"
> >and
> >> "none" interfaces.
> >>
> >> Thanks a lot in advance.
> >>
> >> Paulo.
> >>
> >> "Jim O'Neil [Sybase]" <joneil@sybase.com> wrote in message
> >> news:3f43a7c8.15985315@forums.sybase.com...
> >> > If the JNDI name is empty, then EAServer will default the name to
> >> > <package>/<component>. You however are passing in City/CityEJB as
the
> >> > name, so I'm not sure why it's looking for ejb/CityEJB. This is
> >> > purely from a PowerBuilder client right? This is not a EJB-ref for
an
> >> > intercomponent call? Try explicitly setting the JNDI name
> >> > (com.sybase.jaguar.component.bind.naming property) to City/CityEJB in
> >> > EAServer Manager and see if you fare better.
> >> >
> >> >
> >> > On 20 Aug 2003 09:26:02 -0700, "Paulo Eduardo Ostermann Filho"
> >> > <peoft@terra.com.br> wrote:
> >> >
> >> > >Hi, Jim.
> >> > >The Name of JNDI is empty in component properties and the log error
of
> >> > >Easerver is:
> >> > >
> >> > >/////////////
> >> > >Aug 20 11:28:59 2003: Exception 'CosNaming::NamingContext::NotFound'
in
> >> > >Session::lookup for component 'ejb/CityEJB'
> >> > >
> >> > >Aug 20 11:28:59 2003: SystemException: OBJECT_NOT_EXIST
> >(Session/lookup -
> >> > >@172.22.2.125)
> >> > >
> >> > >//////
> >> > >
> >> > >Can you explain how to use JNDI in Easerver or send me one example
for
> >> this?
> >> > >
> >> > >Thanks a lot in advance.
> >> > >
> >> > >Paulo.
> >> > >
> >> > >
> >> > >
> >> > >"Jim O'Neil [Sybase]" <joneil@sybase.com> wrote in message
> >> > >news:3f436f4c.1527656@forums.sybase.com...
> >> > >> What is the JNDI name of the bean? Does the EAServer log file
> >contain
> >> > >> an error message.
> >> > >>
> >> > >> On 19 Aug 2003 11:59:46 -0700, "Paulo Eduardo Ostermann Filho"
> >> > >> <peoft@terra.com.br> wrote:
> >> > >>
> >> > >> >Hi, all.
> >> > >> >
> >> > >> >We are developing a PB client that instantiate one EJB entity
> >> component
> >> > >in
> >> > >> >Easerver 4.2. When I call "lookup", this return the following
error:
> >> > >> >"Distributed Service error: E13 Could not create object of class
> >> > >> >'City/CityEJB'. (7E0)". The source code is this:
> >> > >> >
> >> > >> >/////////////////////////////
> >> > >> >
> >> > >> >long ll_return
> >> > >> >blob lb_argument
> >> > >> >CityLocal MyCity
> >> > >> >CityLocalHome MyCityHome
> >> > >> >
> >> > >> >eas_connect = create n_apt_ejbclient_connect
> >> > >> >
> >> > >> >if (eas_connect.connecttoserver( ) <> 0) then
> >> > >> > MessageBox("Erro","")
> >> > >> > return
> >> > >> >end if
> >> > >> >
> >> > >> >ll_return =
> >> > >>
> >> >
> >>
>
>>>eas_connect.lookup(MyCityHome,"City/CityEJB","com/sybase/City/CityLocalHo
m
> >> e
> >> > >"
> >> > >> >)
> >> > >> >
> >> > >> >IF ll_return <> 0 THEN
> >> > >> > MessageBox("Lookup failed", eas_connect.errtext)
> >> > >> >ELSE
> >> > >> >
> >> > >> > try
> >> > >> > MyCity = MyCityHome.findbyprimarykey(lb_argument)
> >> > >> > catch (ctscomponents_finderexception fe)
> >> > >> > MessageBox("Findprimary exception", fe.getmessage())
> >> > >> > // handle exception
> >> > >> > end try
> >> > >> >
> >> > >> > MyCity.getprimarykey( )
> >> > >> >
> >> > >> > lb_argument = blob("Taquara")
> >> > >> >
> >> > >> > try
> >> > >> > MyCity.setvalue(lb_argument)
> >> > >> > catch (invalidobjectexception io)
> >> > >> > MessageBox("Set value exception",io.getmessage())
> >> > >> > end try
> >> > >> >END IF
> >> > >> >
> >> > >> >if (isValid(MyCity)) then
> >> > >> > destroy(MyCity)
> >> > >> >end if
> >> > >> >
> >> > >> >
> >> > >> >if (isValid(MyCityHome)) then
> >> > >> > destroy(MyCityHome)
> >> > >> >end if
> >> > >> >
> >> > >> >
> >> > >> >////////////////////
> >> > >> >
> >> > >> >CityEJB is the name of entity class in Easerver. Someone knows
what
> >is
> >> > >the
> >> > >> >problem?
> >> > >> >
> >> > >> >Thanks in advance.
> >> > >> >
> >> > >> >Paulo.
> >> > >> >
> >> > >> >
> >> > >>
> >> > >> Jim O'Neil
> >> > >> Principal Technical Support Engineer
> >> > >> Sybase, Inc.
> >> > >> Concord, MA
> >> > >
> >> > >
> >> >
> >> > Jim O'Neil
> >> > Principal Technical Support Engineer
> >> > Sybase, Inc.
> >> > Concord, MA
> >>
> >>
> >
> >
>
> Jim O'Neil
> Principal Technical Support Engineer
> Sybase, Inc.
> Concord, MA


Jim O'Neil [Sybase] Posted on 2003-08-21 13:44:00.0Z
From: joneil@sybase.com (Jim O'Neil [Sybase])
Newsgroups: sybase.public.powerbuilder.ejbclient
Subject: Re: Problem with lookup
Organization: Sybase Technical Support
Reply-To: joneil_REMOVETHISPART@sybase.com
Message-ID: <3f44cc4c.4516334@forums.sybase.com>
References: <3f427082@forums-2-dub> <3f436f4c.1527656@forums.sybase.com> <3f43a133@forums-2-dub> <3f43a7c8.15985315@forums.sybase.com> <3f43ae0c@forums-1-dub> <3f43b66c@forums-1-dub> <3f43bf04.21933418@forums.sybase.com> <3f44c584$1@forums-2-dub>
X-Newsreader: Forte Free Agent 1.21/32.243
X-Original-NNTP-Posting-Host: joneilpc.sybase.com
X-Original-Trace: 21 Aug 2003 06:44:26 -0700, joneilpc.sybase.com
Lines: 226
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 21 Aug 2003 06:43:05 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 21 Aug 2003 06:44:00 -0700
X-Trace: forums-1-dub 1061473440 10.22.108.75 (21 Aug 2003 06:44:00 -0700)
X-Original-Trace: 21 Aug 2003 06:44:00 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:134
Article PK: 424329

Can you send me a J2EE JAR file with your EJB and the PowerBuilder
code you are using. Let me try it out here.

On 21 Aug 2003 06:13:16 -0700, "Paulo Eduardo Ostermann Filho"

<peoft@terra.com.br> wrote:

>Hi, Jim.
>
>Thanks man. I´am trying to write more.
>We tried with your specification, but didn't work out. This generate same
>problem.
>
>Thanks in advance.
>
>Paulo.
>
>"Jim O'Neil [Sybase]" <joneil@sybase.com> wrote in message
>news:3f43bf04.21933418@forums.sybase.com...
>> Your English is fine, my Portugese however is non-existent! Well,
>> given that piece of information, you would need to use the following
>> code:
>>
>> eas_connect.lookup(MyCityHome,"com.sybase.jaguar.component.bind.naming
>> property","com/sybase/City/CityLocalHome")
>>
>> to get past the original problem. However, I think you'll next have a
>> problem with the use of what appears to a LocalHome interface. Local
>> interfaces are used only for calls made within the context of a single
>> J2EE server (e.g., JSP->EJB or EJB->EJB). You cannot use local
>> interfaces from a PowerBuilder or Java client application.
>>
>> On 20 Aug 2003 10:57:00 -0700, "Paulo Eduardo Ostermann Filho"
>> <peoft@terra.com.br> wrote:
>>
>> >Hi, Jim.
>> >Now, I believe that I understood your question "JNDI name
>> >> > (com.sybase.jaguar.component.bind.naming property)?". This property
>in
>> >Easerver has following: com.tutorial.one.CityEJB.
>> >
>> >Sorry my poor English.
>> >
>> >Thanks man.
>> >
>> >Paulo.
>> >
>> >"Paulo Eduardo Ostermann Filho" <peoft@terra.com.br> wrote in message
>> >news:3f43ae0c@forums-1-dub...
>> >> We tried with City/CityEJB, but this didn´t work, too. Yes, It is
>purely
>> >> from PB client. We put this JNDI: com.tutorial.one.CityEJB and
>> >> com.tutorial.one.City.CityEJB, but didn´t work. Occur the same problem.
>> >The
>> >> com.sybase.jaguar.component.bind.naming property is the directory where
>> >> component is found?
>> >>
>> >> The component name in Easerver is CityEJB and package name is City.
>When
>> >we
>> >> execute the proxy in PB, this bring for us "citylocal", "citylocalhome"
>> >and
>> >> "none" interfaces.
>> >>
>> >> Thanks a lot in advance.
>> >>
>> >> Paulo.
>> >>
>> >> "Jim O'Neil [Sybase]" <joneil@sybase.com> wrote in message
>> >> news:3f43a7c8.15985315@forums.sybase.com...
>> >> > If the JNDI name is empty, then EAServer will default the name to
>> >> > <package>/<component>. You however are passing in City/CityEJB as
>the
>> >> > name, so I'm not sure why it's looking for ejb/CityEJB. This is
>> >> > purely from a PowerBuilder client right? This is not a EJB-ref for
>an
>> >> > intercomponent call? Try explicitly setting the JNDI name
>> >> > (com.sybase.jaguar.component.bind.naming property) to City/CityEJB in
>> >> > EAServer Manager and see if you fare better.
>> >> >
>> >> >
>> >> > On 20 Aug 2003 09:26:02 -0700, "Paulo Eduardo Ostermann Filho"
>> >> > <peoft@terra.com.br> wrote:
>> >> >
>> >> > >Hi, Jim.
>> >> > >The Name of JNDI is empty in component properties and the log error
>of
>> >> > >Easerver is:
>> >> > >
>> >> > >/////////////
>> >> > >Aug 20 11:28:59 2003: Exception 'CosNaming::NamingContext::NotFound'
>in
>> >> > >Session::lookup for component 'ejb/CityEJB'
>> >> > >
>> >> > >Aug 20 11:28:59 2003: SystemException: OBJECT_NOT_EXIST
>> >(Session/lookup -
>> >> > >@172.22.2.125)
>> >> > >
>> >> > >//////
>> >> > >
>> >> > >Can you explain how to use JNDI in Easerver or send me one example
>for
>> >> this?
>> >> > >
>> >> > >Thanks a lot in advance.
>> >> > >
>> >> > >Paulo.
>> >> > >
>> >> > >
>> >> > >
>> >> > >"Jim O'Neil [Sybase]" <joneil@sybase.com> wrote in message
>> >> > >news:3f436f4c.1527656@forums.sybase.com...
>> >> > >> What is the JNDI name of the bean? Does the EAServer log file
>> >contain
>> >> > >> an error message.
>> >> > >>
>> >> > >> On 19 Aug 2003 11:59:46 -0700, "Paulo Eduardo Ostermann Filho"
>> >> > >> <peoft@terra.com.br> wrote:
>> >> > >>
>> >> > >> >Hi, all.
>> >> > >> >
>> >> > >> >We are developing a PB client that instantiate one EJB entity
>> >> component
>> >> > >in
>> >> > >> >Easerver 4.2. When I call "lookup", this return the following
>error:
>> >> > >> >"Distributed Service error: E13 Could not create object of class
>> >> > >> >'City/CityEJB'. (7E0)". The source code is this:
>> >> > >> >
>> >> > >> >/////////////////////////////
>> >> > >> >
>> >> > >> >long ll_return
>> >> > >> >blob lb_argument
>> >> > >> >CityLocal MyCity
>> >> > >> >CityLocalHome MyCityHome
>> >> > >> >
>> >> > >> >eas_connect = create n_apt_ejbclient_connect
>> >> > >> >
>> >> > >> >if (eas_connect.connecttoserver( ) <> 0) then
>> >> > >> > MessageBox("Erro","")
>> >> > >> > return
>> >> > >> >end if
>> >> > >> >
>> >> > >> >ll_return =
>> >> > >>
>> >> >
>> >>
>>
>>>>eas_connect.lookup(MyCityHome,"City/CityEJB","com/sybase/City/CityLocalHo
>m
>> >> e
>> >> > >"
>> >> > >> >)
>> >> > >> >
>> >> > >> >IF ll_return <> 0 THEN
>> >> > >> > MessageBox("Lookup failed", eas_connect.errtext)
>> >> > >> >ELSE
>> >> > >> >
>> >> > >> > try
>> >> > >> > MyCity = MyCityHome.findbyprimarykey(lb_argument)
>> >> > >> > catch (ctscomponents_finderexception fe)
>> >> > >> > MessageBox("Findprimary exception", fe.getmessage())
>> >> > >> > // handle exception
>> >> > >> > end try
>> >> > >> >
>> >> > >> > MyCity.getprimarykey( )
>> >> > >> >
>> >> > >> > lb_argument = blob("Taquara")
>> >> > >> >
>> >> > >> > try
>> >> > >> > MyCity.setvalue(lb_argument)
>> >> > >> > catch (invalidobjectexception io)
>> >> > >> > MessageBox("Set value exception",io.getmessage())
>> >> > >> > end try
>> >> > >> >END IF
>> >> > >> >
>> >> > >> >if (isValid(MyCity)) then
>> >> > >> > destroy(MyCity)
>> >> > >> >end if
>> >> > >> >
>> >> > >> >
>> >> > >> >if (isValid(MyCityHome)) then
>> >> > >> > destroy(MyCityHome)
>> >> > >> >end if
>> >> > >> >
>> >> > >> >
>> >> > >> >////////////////////
>> >> > >> >
>> >> > >> >CityEJB is the name of entity class in Easerver. Someone knows
>what
>> >is
>> >> > >the
>> >> > >> >problem?
>> >> > >> >
>> >> > >> >Thanks in advance.
>> >> > >> >
>> >> > >> >Paulo.
>> >> > >> >
>> >> > >> >
>> >> > >>
>> >> > >> Jim O'Neil
>> >> > >> Principal Technical Support Engineer
>> >> > >> Sybase, Inc.
>> >> > >> Concord, MA
>> >> > >
>> >> > >
>> >> >
>> >> > Jim O'Neil
>> >> > Principal Technical Support Engineer
>> >> > Sybase, Inc.
>> >> > Concord, MA
>> >>
>> >>
>> >
>> >
>>
>> Jim O'Neil
>> Principal Technical Support Engineer
>> Sybase, Inc.
>> Concord, MA
>
>

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