Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

EJB Lookup failed

7 posts in EJB Client Last posting was on 2003-08-21 08:09:56.0Z
bede Posted on 2003-08-18 09:05:58.0Z
From: "bede" <bede@nospam.sofico.be>
Newsgroups: sybase.public.powerbuilder.ejbclient
Subject: EJB Lookup failed
Lines: 120
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----=_NextPart_000_0119_01C36578.A0779BE0"
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: uu194-7-38-234.unknown.uunet.be
X-Original-NNTP-Posting-Host: uu194-7-38-234.unknown.uunet.be
Message-ID: <3f4096f6$1@forums-1-dub>
Date: 18 Aug 2003 02:05:58 -0700
X-Trace: forums-1-dub 1061197558 194.7.38.234 (18 Aug 2003 02:05:58 -0700)
X-Original-Trace: 18 Aug 2003 02:05:58 -0700, uu194-7-38-234.unknown.uunet.be
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:112
Article PK: 424307

Hi all,
 
Got the ejb2pb90 working now.. a matter of classpaths and system settings.
Anyway, after installing and trying the HelloWorld example, i wanted to try our own EJBs.
Deployed everything to EAS 4.2, tested it using our CORBA client so i'm sure it's up and running.
 
2 issues here:
 
1. Connection to the server shows as ok, even when the server itself was switched-off ?!! Output:
Connecting to the EJB Server
----------------------------
Successfully connected to server at iiop://pcintegr2:9000
 
Properties
----------
INITIAL_CONTEXT_FACTORY=com.sybase.ejb.InitialContextFactory
PROVIDER_URL=iiop://pcintegr2:9000
SECURITY_PRINCIPAL=jagadmin
SECURITY_CREDENTIALS=
 
If it's not actually connecting to the server, what does it really do?
 
2. The LookUp of the EJB Home (for an up-and-running server ;-)) fails. Output:
 
Looking Up An EJB
-----------------
Exception raised: Failed to lookup the EJB: be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSessionHome
be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSessionHome
 
When investigating the server (jaguar administrator) i see that the installed ejb for the HelloWorld example (using the ear) is installed on the server as a Application, while the other EJBs are installed as a package but not as a application. Where's the difference?
Could this be related to the lookup failing? why?
As always, any help is appreciated!
 
Ben.


Jim O'Neil [Sybase] Posted on 2003-08-18 13:29:32.0Z
From: joneil@sybase.com (Jim O'Neil [Sybase])
Newsgroups: sybase.public.powerbuilder.ejbclient
Subject: Re: EJB Lookup failed
Organization: Sybase Technical Support
Reply-To: joneil_REMOVETHISPART@sybase.com
Message-ID: <3f40d298.6399111@forums.sybase.com>
References: <3f4096f6$1@forums-1-dub>
X-Newsreader: Forte Free Agent 1.21/32.243
NNTP-Posting-Host: vpn-concord-017.sybase.com
X-Original-NNTP-Posting-Host: vpn-concord-017.sybase.com
Date: 18 Aug 2003 06:29:32 -0700
X-Trace: forums-1-dub 1061213372 158.159.8.17 (18 Aug 2003 06:29:32 -0700)
X-Original-Trace: 18 Aug 2003 06:29:32 -0700, vpn-concord-017.sybase.com
Lines: 142
X-Authenticated-User: TeamPS
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:115
Article PK: 424309

1. The ConnectToServer method encapsulates the creation of a new
InitialContext object in Java:

Context context = new InitialContext(properties);

Whether or not that actually involves communicating with the server
depends on the application server itself. EAServer does not send
anything across the wire, WebSphere and WebLogic in my experiences do.

2. Is it possible the JNDI name is not what you expect? Is there a
message in the EAServer log file that a component was not found? If
not, then it would appear that the request didn't reach the server and
perhaps something is missing on the client?

On 18 Aug 2003 02:05:58 -0700, "bede" <bede@nospam.sofico.be> wrote:

>This is a multi-part message in MIME format.
>
>------=_NextPart_000_0119_01C36578.A0779BE0
>Content-Type: text/plain;
> charset="iso-8859-1"
>Content-Transfer-Encoding: quoted-printable
>
>Hi all,
>
>Got the ejb2pb90 working now.. a matter of classpaths and system =
>settings.
>Anyway, after installing and trying the HelloWorld example, i wanted to =
>try our own EJBs.
>Deployed everything to EAS 4.2, tested it using our CORBA client so i'm =
>sure it's up and running.=20
>
>2 issues here:
>
>1. Connection to the server shows as ok, even when the server itself was =
>switched-off ?!! Output:
>Connecting to the EJB Server
>----------------------------
>Successfully connected to server at iiop://pcintegr2:9000
>
>Properties
>----------
>INITIAL_CONTEXT_FACTORY=3Dcom.sybase.ejb.InitialContextFactory
>PROVIDER_URL=3Diiop://pcintegr2:9000
>SECURITY_PRINCIPAL=3Djagadmin
>SECURITY_CREDENTIALS=3D
>
>If it's not actually connecting to the server, what does it really do?
>
>2. The LookUp of the EJB Home (for an up-and-running server ;-)) fails. =
>Output:
>
>Looking Up An EJB
>-----------------
>Exception raised: Failed to lookup the EJB: =
>be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSessionHome
>be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSessionHome
>
>When investigating the server (jaguar administrator) i see that the =
>installed ejb for the HelloWorld example (using the ear) is installed on =
>the server as a Application, while the other EJBs are installed as a =
>package but not as a application. Where's the difference?=20
>Could this be related to the lookup failing? why?=20
>As always, any help is appreciated!
>
>Ben.
>------=_NextPart_000_0119_01C36578.A0779BE0
>Content-Type: text/html;
> charset="iso-8859-1"
>Content-Transfer-Encoding: quoted-printable
>
><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
><HTML><HEAD>
><META http-equiv=3DContent-Type content=3D"text/html; =
>charset=3Diso-8859-1">
><META content=3D"MSHTML 6.00.2800.1170" name=3DGENERATOR>
><STYLE></STYLE>
></HEAD>
><BODY>
><DIV><FONT face=3DTahoma size=3D2>Hi all,</FONT></DIV>
><DIV><FONT face=3DTahoma size=3D2></FONT>&nbsp;</DIV>
><DIV><FONT face=3DTahoma size=3D2>Got the ejb2pb90 working now.. a =
>matter of=20
>classpaths and system settings.</FONT></DIV>
><DIV><FONT face=3DTahoma size=3D2>Anyway, after installing and trying =
>the HelloWorld=20
>example, i wanted to try our own EJBs.</FONT></DIV>
><DIV><FONT face=3DTahoma size=3D2>Deployed everything to EAS 4.2, tested =
>it using=20
>our CORBA client so i'm sure it's up and running. </FONT></DIV>
><DIV><FONT face=3DTahoma size=3D2></FONT>&nbsp;</DIV>
><DIV><FONT face=3DTahoma size=3D2>2 issues here:</FONT></DIV>
><DIV><FONT face=3DTahoma size=3D2></FONT>&nbsp;</DIV>
><DIV><FONT face=3DTahoma size=3D2>1.&nbsp;Connection to the =
>server&nbsp;shows as ok,=20
>even when the server itself was switched-off ?!! Output:</FONT></DIV>
><DIV><FONT face=3DTerminal size=3D2>Connecting to the EJB=20
>Server<BR>----------------------------<BR>Successfully connected to =
>server at=20
>iiop://pcintegr2:9000</FONT></DIV>
><DIV><FONT face=3DTerminal size=3D2></FONT>&nbsp;</DIV>
><DIV><FONT face=3DTerminal=20
>size=3D2>Properties<BR>----------<BR>INITIAL_CONTEXT_FACTORY=3Dcom.sybase=
>.ejb.InitialContextFactory<BR>PROVIDER_URL=3Diiop://pcintegr2:9000<BR>SEC=
>URITY_PRINCIPAL=3Djagadmin<BR>SECURITY_CREDENTIALS=3D</FONT></DIV>
><DIV><FONT face=3DTahoma size=3D2></FONT>&nbsp;</DIV>
><DIV><FONT face=3DTahoma size=3D2>If it's not actually connecting to the =
>server,=20
>what does it really do?</FONT></DIV>
><DIV><FONT face=3DTahoma size=3D2></FONT>&nbsp;</DIV>
><DIV><FONT face=3DTahoma size=3D2>2. The LookUp of the EJB Home (for an=20
>up-and-running server ;-)) fails. Output:</FONT></DIV>
><DIV><FONT face=3DTahoma size=3D2></FONT>&nbsp;</DIV>
><DIV><FONT face=3DTerminal size=3D2>Looking Up An=20
>EJB<BR>-----------------<BR>Exception raised: Failed to lookup the EJB:=20
>be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSessionHome<BR>be.sofico.b=
>asecamp.sess.sessionmgmt.SessionMgmtSessionHome</FONT></DIV>
><DIV><FONT face=3DTahoma size=3D2></FONT>&nbsp;</DIV>
><DIV><FONT face=3DTahoma size=3D2>When investigating the server (jaguar=20
>administrator) i see that the installed ejb for the HelloWorld example =
>(using=20
>the ear) is installed on the server as a Application, while the other =
>EJBs are=20
>installed as a package but not as a application. Where's the difference? =
>
></FONT></DIV>
><DIV><FONT face=3DTahoma size=3D2>Could this be related to the lookup =
>failing? why?=20
></FONT></DIV>
><DIV><FONT face=3DTahoma size=3D2>As always, any help is =
>appreciated!</FONT></DIV>
><DIV><FONT face=3DTahoma size=3D2></FONT>&nbsp;</DIV>
><DIV><FONT face=3DTahoma size=3D2>Ben.</FONT></DIV></BODY></HTML>
>
>------=_NextPart_000_0119_01C36578.A0779BE0--
>

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


bede Posted on 2003-08-18 13:54:35.0Z
From: "bede" <bede@nospam.sofico.be>
Newsgroups: sybase.public.powerbuilder.ejbclient
References: <3f4096f6$1@forums-1-dub> <3f40d298.6399111@forums.sybase.com>
Subject: Re: EJB Lookup failed
Lines: 161
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
X-Original-NNTP-Posting-Host: uu194-7-38-233.unknown.uunet.be
Message-ID: <3f40daac@forums-2-dub>
X-Original-Trace: 18 Aug 2003 06:54:52 -0700, uu194-7-38-233.unknown.uunet.be
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 18 Aug 2003 06:54:01 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 18 Aug 2003 06:54:35 -0700
X-Trace: forums-1-dub 1061214875 10.22.108.75 (18 Aug 2003 06:54:35 -0700)
X-Original-Trace: 18 Aug 2003 06:54:35 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:116
Article PK: 424310

thanks.. nothing in the logfile indeed..
i suppose i shd be doing some more classpath-digging

"Jim O'Neil [Sybase]" <joneil@sybase.com> wrote in message
news:3f40d298.6399111@forums.sybase.com...
> 1. The ConnectToServer method encapsulates the creation of a new
> InitialContext object in Java:
>
> Context context = new InitialContext(properties);
>
> Whether or not that actually involves communicating with the server
> depends on the application server itself. EAServer does not send
> anything across the wire, WebSphere and WebLogic in my experiences do.
>
> 2. Is it possible the JNDI name is not what you expect? Is there a
> message in the EAServer log file that a component was not found? If
> not, then it would appear that the request didn't reach the server and
> perhaps something is missing on the client?
>
>
> On 18 Aug 2003 02:05:58 -0700, "bede" <bede@nospam.sofico.be> wrote:
>
> >This is a multi-part message in MIME format.
> >
> >------=_NextPart_000_0119_01C36578.A0779BE0
> >Content-Type: text/plain;
> > charset="iso-8859-1"
> >Content-Transfer-Encoding: quoted-printable
> >
> >Hi all,
> >
> >Got the ejb2pb90 working now.. a matter of classpaths and system =
> >settings.
> >Anyway, after installing and trying the HelloWorld example, i wanted to =
> >try our own EJBs.
> >Deployed everything to EAS 4.2, tested it using our CORBA client so i'm =
> >sure it's up and running.=20
> >
> >2 issues here:
> >
> >1. Connection to the server shows as ok, even when the server itself was
=
> >switched-off ?!! Output:
> >Connecting to the EJB Server
> >----------------------------
> >Successfully connected to server at iiop://pcintegr2:9000
> >
> >Properties
> >----------
> >INITIAL_CONTEXT_FACTORY=3Dcom.sybase.ejb.InitialContextFactory
> >PROVIDER_URL=3Diiop://pcintegr2:9000
> >SECURITY_PRINCIPAL=3Djagadmin
> >SECURITY_CREDENTIALS=3D
> >
> >If it's not actually connecting to the server, what does it really do?
> >
> >2. The LookUp of the EJB Home (for an up-and-running server ;-)) fails. =
> >Output:
> >
> >Looking Up An EJB
> >-----------------
> >Exception raised: Failed to lookup the EJB: =
> >be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSessionHome
> >be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSessionHome
> >
> >When investigating the server (jaguar administrator) i see that the =
> >installed ejb for the HelloWorld example (using the ear) is installed on
=
> >the server as a Application, while the other EJBs are installed as a =
> >package but not as a application. Where's the difference?=20
> >Could this be related to the lookup failing? why?=20
> >As always, any help is appreciated!
> >
> >Ben.
> >------=_NextPart_000_0119_01C36578.A0779BE0
> >Content-Type: text/html;
> > charset="iso-8859-1"
> >Content-Transfer-Encoding: quoted-printable
> >
> ><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> ><HTML><HEAD>
> ><META http-equiv=3DContent-Type content=3D"text/html; =
> >charset=3Diso-8859-1">
> ><META content=3D"MSHTML 6.00.2800.1170" name=3DGENERATOR>
> ><STYLE></STYLE>
> ></HEAD>
> ><BODY>
> ><DIV><FONT face=3DTahoma size=3D2>Hi all,</FONT></DIV>
> ><DIV><FONT face=3DTahoma size=3D2></FONT>&nbsp;</DIV>
> ><DIV><FONT face=3DTahoma size=3D2>Got the ejb2pb90 working now.. a =
> >matter of=20
> >classpaths and system settings.</FONT></DIV>
> ><DIV><FONT face=3DTahoma size=3D2>Anyway, after installing and trying =
> >the HelloWorld=20
> >example, i wanted to try our own EJBs.</FONT></DIV>
> ><DIV><FONT face=3DTahoma size=3D2>Deployed everything to EAS 4.2, tested
=
> >it using=20
> >our CORBA client so i'm sure it's up and running. </FONT></DIV>
> ><DIV><FONT face=3DTahoma size=3D2></FONT>&nbsp;</DIV>
> ><DIV><FONT face=3DTahoma size=3D2>2 issues here:</FONT></DIV>
> ><DIV><FONT face=3DTahoma size=3D2></FONT>&nbsp;</DIV>
> ><DIV><FONT face=3DTahoma size=3D2>1.&nbsp;Connection to the =
> >server&nbsp;shows as ok,=20
> >even when the server itself was switched-off ?!! Output:</FONT></DIV>
> ><DIV><FONT face=3DTerminal size=3D2>Connecting to the EJB=20
> >Server<BR>----------------------------<BR>Successfully connected to =
> >server at=20
> >iiop://pcintegr2:9000</FONT></DIV>
> ><DIV><FONT face=3DTerminal size=3D2></FONT>&nbsp;</DIV>
> ><DIV><FONT face=3DTerminal=20
>
>size=3D2>Properties<BR>----------<BR>INITIAL_CONTEXT_FACTORY=3Dcom.sybase=
>
>.ejb.InitialContextFactory<BR>PROVIDER_URL=3Diiop://pcintegr2:9000<BR>SEC=
> >URITY_PRINCIPAL=3Djagadmin<BR>SECURITY_CREDENTIALS=3D</FONT></DIV>
> ><DIV><FONT face=3DTahoma size=3D2></FONT>&nbsp;</DIV>
> ><DIV><FONT face=3DTahoma size=3D2>If it's not actually connecting to the
=
> >server,=20
> >what does it really do?</FONT></DIV>
> ><DIV><FONT face=3DTahoma size=3D2></FONT>&nbsp;</DIV>
> ><DIV><FONT face=3DTahoma size=3D2>2. The LookUp of the EJB Home (for
an=20
> >up-and-running server ;-)) fails. Output:</FONT></DIV>
> ><DIV><FONT face=3DTahoma size=3D2></FONT>&nbsp;</DIV>
> ><DIV><FONT face=3DTerminal size=3D2>Looking Up An=20
> >EJB<BR>-----------------<BR>Exception raised: Failed to lookup the
EJB:=20
>
>be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSessionHome<BR>be.sofico.b=
> >asecamp.sess.sessionmgmt.SessionMgmtSessionHome</FONT></DIV>
> ><DIV><FONT face=3DTahoma size=3D2></FONT>&nbsp;</DIV>
> ><DIV><FONT face=3DTahoma size=3D2>When investigating the server
(jaguar=20
> >administrator) i see that the installed ejb for the HelloWorld example =
> >(using=20
> >the ear) is installed on the server as a Application, while the other =
> >EJBs are=20
> >installed as a package but not as a application. Where's the difference?
=
> >
> ></FONT></DIV>
> ><DIV><FONT face=3DTahoma size=3D2>Could this be related to the lookup =
> >failing? why?=20
> ></FONT></DIV>
> ><DIV><FONT face=3DTahoma size=3D2>As always, any help is =
> >appreciated!</FONT></DIV>
> ><DIV><FONT face=3DTahoma size=3D2></FONT>&nbsp;</DIV>
> ><DIV><FONT face=3DTahoma size=3D2>Ben.</FONT></DIV></BODY></HTML>
> >
> >------=_NextPart_000_0119_01C36578.A0779BE0--
> >
>
> Jim O'Neil
> Principal Technical Support Engineer
> Sybase, Inc.
> Concord, MA


bede Posted on 2003-08-19 11:56:37.0Z
From: "bede" <bede@nospam.sofico.be>
Newsgroups: sybase.public.powerbuilder.ejbclient
References: <3f4096f6$1@forums-1-dub> <3f40d298.6399111@forums.sybase.com> <3f40daac@forums-2-dub>
Subject: Re: EJB Lookup failed
Lines: 555
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----=_NextPart_000_0017_01C36659.96244DF0"
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
X-Original-NNTP-Posting-Host: uu194-7-38-228.unknown.uunet.be
Message-ID: <3f421089@forums-2-dub>
X-Original-Trace: 19 Aug 2003 04:56:57 -0700, uu194-7-38-228.unknown.uunet.be
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 19 Aug 2003 04:55:56 -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 04:56:37 -0700
X-Trace: forums-1-dub 1061294197 10.22.108.75 (19 Aug 2003 04:56:37 -0700)
X-Original-Trace: 19 Aug 2003 04:56:37 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:117
Article PK: 424312

okay.. problem was a combination of a faulty jar (i'm innocent!) and maybe the fact that the patch for 6111 updated some jars which weren't updated in the EAServer lib-directory.
 
Next obstacle (unfortunately):
 
inv_SessionMgmtSessionHome = inv_EJBConn.lookup("SessionMgmtSessionHome", "BaseCamp/SessionMgmtSession", &
      "be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSessionHome")
 
result:
 
Looking Up An EJB
-----------------
Exception raised: Failed to lookup the EJB: be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSessionHome
java.lang.ClassCastException
 
I know the server is reached (because if i provide a faulty JNDI i get an error in the serverlog), then I thought something may be wrong with the proxies, so recreated them using the exact same jar as on the server.
All without result..
Finally, i checked using the Jaguar Manager if the lookups really worked (instances active, pooled) but both are zero, so something must be going wrong at serverside. I can't imagine what really..
So basically, the lookup call reaches the server, the server however cannot find it? instantiate it because what is returned is not valid (checked this by using a Powerobject instead of a SessionMgmtSessionHome-instance to receive what was returned).
 
I was looking for a way to get more information about this ClassCastException like getting hold of the stacktrace but it doesn't seem possible for the PB-class Exception.
Also wondered what the sesisonmgmtsession_ejb_pb_mapping structure is used for exactly. Difficult to say whether sth is wrong with that and if it could lead to such an error.
 
Pity that not more is mentioned in the Help or anything.
 
Ben
 
PS: Connecting to the same package & classes using CORBA does work, so i think nothing is wrong with the components..
 
"bede" <bede@nospam.sofico.be> wrote in message news:3f40daac@forums-2-dub...
> thanks.. nothing in the logfile indeed..
> i suppose i shd be doing some more classpath-digging
>
>
> "Jim O'Neil [Sybase]" <joneil@sybase.com> wrote in message
> news:3f40d298.6399111@forums.sybase.com...
> > 1.  The ConnectToServer method encapsulates the creation of a new
> > InitialContext object in Java:
> >
> > Context context = new InitialContext(properties);
> >
> >  Whether or not that actually involves communicating with the server
> > depends on the application server itself.  EAServer does not send
> > anything across the wire, WebSphere and WebLogic in my experiences do.
> >
> > 2. Is it possible the JNDI name is not what you expect?  Is there a
> > message in the EAServer log file that a component was not found?  If
> > not, then it would appear that the request didn't reach the server and
> > perhaps something is missing on the client?
> >
> >
> >  On 18 Aug 2003 02:05:58 -0700, "bede" <bede@nospam.sofico.be> wrote:
> >
> > >This is a multi-part message in MIME format.
> > >
> > >------=_NextPart_000_0119_01C36578.A0779BE0
> > >Content-Type: text/plain;
> > > charset="iso-8859-1"
> > >Content-Transfer-Encoding: quoted-printable
> > >
> > >Hi all,
> > >
> > >Got the ejb2pb90 working now.. a matter of classpaths and system =
> > >settings.
> > >Anyway, after installing and trying the HelloWorld example, i wanted to =
> > >try our own EJBs.
> > >Deployed everything to EAS 4.2, tested it using our CORBA client so i'm =
> > >sure it's up and running.=20
> > >
> > >2 issues here:
> > >
> > >1. Connection to the server shows as ok, even when the server itself was
> =
> > >switched-off ?!! Output:
> > >Connecting to the EJB Server
> > >----------------------------
> > >Successfully connected to server at iiop://pcintegr2:9000
> > >
> > >Properties
> > >----------
> > >INITIAL_CONTEXT_FACTORY=3Dcom.sybase.ejb.InitialContextFactory
> > >PROVIDER_URL=3Diiop://pcintegr2:9000
> > >SECURITY_PRINCIPAL=3Djagadmin
> > >SECURITY_CREDENTIALS=3D
> > >
> > >If it's not actually connecting to the server, what does it really do?
> > >
> > >2. The LookUp of the EJB Home (for an up-and-running server ;-)) fails. =
> > >Output:
> > >
> > >Looking Up An EJB
> > >-----------------
> > >Exception raised: Failed to lookup the EJB: =
> > >be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSessionHome
> > >be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSessionHome
> > >
> > >When investigating the server (jaguar administrator) i see that the =
> > >installed ejb for the HelloWorld example (using the ear) is installed on
> =
> > >the server as a Application, while the other EJBs are installed as a =
> > >package but not as a application. Where's the difference?=20
> > >Could this be related to the lookup failing? why?=20
> > >As always, any help is appreciated!
> > >
> > >Ben.
> > >------=_NextPart_000_0119_01C36578.A0779BE0
> > >Content-Type: text/html;
> > > charset="iso-8859-1"
> > >Content-Transfer-Encoding: quoted-printable
> > >
> > ><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> > ><HTML><HEAD>
> > ><META http-equiv=3DContent-Type content=3D"text/html; =
> > >charset=3Diso-8859-1">
> > ><META content=3D"MSHTML 6.00.2800.1170" name=3DGENERATOR>
> > ><STYLE></STYLE>
> > ></HEAD>
> > ><BODY>
> > ><DIV><FONT face=3DTahoma size=3D2>Hi all,</FONT></DIV>
> > ><DIV><FONT face=3DTahoma size=3D2></FONT>&nbsp;</DIV>
> > ><DIV><FONT face=3DTahoma size=3D2>Got the ejb2pb90 working now.. a =
> > >matter of=20
> > >classpaths and system settings.</FONT></DIV>
> > ><DIV><FONT face=3DTahoma size=3D2>Anyway, after installing and trying =
> > >the HelloWorld=20
> > >example, i wanted to try our own EJBs.</FONT></DIV>
> > ><DIV><FONT face=3DTahoma size=3D2>Deployed everything to EAS 4.2, tested
> =
> > >it using=20
> > >our CORBA client so i'm sure it's up and running. </FONT></DIV>
> > ><DIV><FONT face=3DTahoma size=3D2></FONT>&nbsp;</DIV>
> > ><DIV><FONT face=3DTahoma size=3D2>2 issues here:</FONT></DIV>
> > ><DIV><FONT face=3DTahoma size=3D2></FONT>&nbsp;</DIV>
> > ><DIV><FONT face=3DTahoma size=3D2>1.&nbsp;Connection to the =
> > >server&nbsp;shows as ok,=20
> > >even when the server itself was switched-off ?!! Output:</FONT></DIV>
> > ><DIV><FONT face=3DTerminal size=3D2>Connecting to the EJB=20
> > >Server<BR>----------------------------<BR>Successfully connected to =
> > >server at=20
> > >iiop://pcintegr2:9000</FONT></DIV>
> > ><DIV><FONT face=3DTerminal size=3D2></FONT>&nbsp;</DIV>
> > ><DIV><FONT face=3DTerminal=20
> >
> >size=3D2>Properties<BR>----------<BR>INITIAL_CONTEXT_FACTORY=3Dcom.sybase=
> >
> >.ejb.InitialContextFactory<BR>PROVIDER_URL=3Diiop://pcintegr2:9000<BR>SEC=
> > >URITY_PRINCIPAL=3Djagadmin<BR>SECURITY_CREDENTIALS=3D</FONT></DIV>
> > ><DIV><FONT face=3DTahoma size=3D2></FONT>&nbsp;</DIV>
> > ><DIV><FONT face=3DTahoma size=3D2>If it's not actually connecting to the
> =
> > >server,=20
> > >what does it really do?</FONT></DIV>
> > ><DIV><FONT face=3DTahoma size=3D2></FONT>&nbsp;</DIV>
> > ><DIV><FONT face=3DTahoma size=3D2>2. The LookUp of the EJB Home (for
> an=20
> > >up-and-running server ;-)) fails. Output:</FONT></DIV>
> > ><DIV><FONT face=3DTahoma size=3D2></FONT>&nbsp;</DIV>
> > ><DIV><FONT face=3DTerminal size=3D2>Looking Up An=20
> > >EJB<BR>-----------------<BR>Exception raised: Failed to lookup the
> EJB:=20
> >
> >be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSessionHome<BR>be.sofico.b=
> > >asecamp.sess.sessionmgmt.SessionMgmtSessionHome</FONT></DIV>
> > ><DIV><FONT face=3DTahoma size=3D2></FONT>&nbsp;</DIV>
> > ><DIV><FONT face=3DTahoma size=3D2>When investigating the server
> (jaguar=20
> > >administrator) i see that the installed ejb for the HelloWorld example =
> > >(using=20
> > >the ear) is installed on the server as a Application, while the other =
> > >EJBs are=20
> > >installed as a package but not as a application. Where's the difference?
> =
> > >
> > ></FONT></DIV>
> > ><DIV><FONT face=3DTahoma size=3D2>Could this be related to the lookup =
> > >failing? why?=20
> > ></FONT></DIV>
> > ><DIV><FONT face=3DTahoma size=3D2>As always, any help is =
> > >appreciated!</FONT></DIV>
> > ><DIV><FONT face=3DTahoma size=3D2></FONT>&nbsp;</DIV>
> > ><DIV><FONT face=3DTahoma size=3D2>Ben.</FONT></DIV></BODY></HTML>
> > >
> > >------=_NextPart_000_0119_01C36578.A0779BE0--
> > >
> >
> > Jim O'Neil
> > Principal Technical Support Engineer
> > Sybase, Inc.
> > Concord, MA
>
>


bede Posted on 2003-08-20 13:15:33.0Z
From: "bede" <bede@nospam.sofico.be>
Newsgroups: sybase.public.powerbuilder.ejbclient
References: <3f4096f6$1@forums-1-dub> <3f40d298.6399111@forums.sybase.com> <3f40daac@forums-2-dub> <3f421089@forums-2-dub>
Subject: Re: EJB Lookup failed
Lines: 607
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----=_NextPart_000_0033_01C3672D.CEC76870"
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
X-Original-NNTP-Posting-Host: uu194-7-38-233.unknown.uunet.be
Message-ID: <3f43748f@forums-2-dub>
X-Original-Trace: 20 Aug 2003 06:15:59 -0700, uu194-7-38-233.unknown.uunet.be
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 20 Aug 2003 06:14:48 -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 06:15:33 -0700
X-Trace: forums-1-dub 1061385333 10.22.108.75 (20 Aug 2003 06:15:33 -0700)
X-Original-Trace: 20 Aug 2003 06:15:33 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:120
Article PK: 424315

Jim,
 
Could it be deploy-related (as in: deploying EJBs is different from deploying CORBA EJBs)
or shd i submit this to support as another bug?
 
Ben
 
 
"bede" <bede@nospam.sofico.be> wrote in message news:3f421089@forums-2-dub...
okay.. problem was a combination of a faulty jar (i'm innocent!) and maybe the fact that the patch for 6111 updated some jars which weren't updated in the EAServer lib-directory.
 
Next obstacle (unfortunately):
 
inv_SessionMgmtSessionHome = inv_EJBConn.lookup("SessionMgmtSessionHome", "BaseCamp/SessionMgmtSession", &
      "be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSessionHome")
 
result:
 
Looking Up An EJB
-----------------
Exception raised: Failed to lookup the EJB: be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSessionHome
java.lang.ClassCastException
 
I know the server is reached (because if i provide a faulty JNDI i get an error in the serverlog), then I thought something may be wrong with the proxies, so recreated them using the exact same jar as on the server.
All without result..
Finally, i checked using the Jaguar Manager if the lookups really worked (instances active, pooled) but both are zero, so something must be going wrong at serverside. I can't imagine what really..
So basically, the lookup call reaches the server, the server however cannot find it? instantiate it because what is returned is not valid (checked this by using a Powerobject instead of a SessionMgmtSessionHome-instance to receive what was returned).
 
I was looking for a way to get more information about this ClassCastException like getting hold of the stacktrace but it doesn't seem possible for the PB-class Exception.
Also wondered what the sesisonmgmtsession_ejb_pb_mapping structure is used for exactly. Difficult to say whether sth is wrong with that and if it could lead to such an error.
 
Pity that not more is mentioned in the Help or anything.
 
Ben
 
PS: Connecting to the same package & classes using CORBA does work, so i think nothing is wrong with the components..
 
"bede" <bede@nospam.sofico.be> wrote in message news:3f40daac@forums-2-dub...
> thanks.. nothing in the logfile indeed..
> i suppose i shd be doing some more classpath-digging
>
>
> "Jim O'Neil [Sybase]" <joneil@sybase.com> wrote in message
> news:3f40d298.6399111@forums.sybase.com...
> > 1.  The ConnectToServer method encapsulates the creation of a new
> > InitialContext object in Java:
> >
> > Context context = new InitialContext(properties);
> >
> >  Whether or not that actually involves communicating with the server
> > depends on the application server itself.  EAServer does not send
> > anything across the wire, WebSphere and WebLogic in my experiences do.
> >
> > 2. Is it possible the JNDI name is not what you expect?  Is there a
> > message in the EAServer log file that a component was not found?  If
> > not, then it would appear that the request didn't reach the server and
> > perhaps something is missing on the client?
> >
> >
> >  On 18 Aug 2003 02:05:58 -0700, "bede" <bede@nospam.sofico.be> wrote:
> >
> > >This is a multi-part message in MIME format.
> > >
> > >------=_NextPart_000_0119_01C36578.A0779BE0
> > >Content-Type: text/plain;
> > > charset="iso-8859-1"
> > >Content-Transfer-Encoding: quoted-printable
> > >
> > >Hi all,
> > >
> > >Got the ejb2pb90 working now.. a matter of classpaths and system =
> > >settings.
> > >Anyway, after installing and trying the HelloWorld example, i wanted to =
> > >try our own EJBs.
> > >Deployed everything to EAS 4.2, tested it using our CORBA client so i'm =
> > >sure it's up and running.=20
> > >
> > >2 issues here:
> > >
> > >1. Connection to the server shows as ok, even when the server itself was
> =
> > >switched-off ?!! Output:
> > >Connecting to the EJB Server
> > >----------------------------
> > >Successfully connected to server at iiop://pcintegr2:9000
> > >
> > >Properties
> > >----------
> > >INITIAL_CONTEXT_FACTORY=3Dcom.sybase.ejb.InitialContextFactory
> > >PROVIDER_URL=3Diiop://pcintegr2:9000
> > >SECURITY_PRINCIPAL=3Djagadmin
> > >SECURITY_CREDENTIALS=3D
> > >
> > >If it's not actually connecting to the server, what does it really do?
> > >
> > >2. The LookUp of the EJB Home (for an up-and-running server ;-)) fails. =
> > >Output:
> > >
> > >Looking Up An EJB
> > >-----------------
> > >Exception raised: Failed to lookup the EJB: =
> > >be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSessionHome
> > >be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSessionHome
> > >
> > >When investigating the server (jaguar administrator) i see that the =
> > >installed ejb for the HelloWorld example (using the ear) is installed on
> =
> > >the server as a Application, while the other EJBs are installed as a =
> > >package but not as a application. Where's the difference?=20
> > >Could this be related to the lookup failing? why?=20
> > >As always, any help is appreciated!
> > >
> > >Ben.
> > >------=_NextPart_000_0119_01C36578.A0779BE0
> > >Content-Type: text/html;
> > > charset="iso-8859-1"
> > >Content-Transfer-Encoding: quoted-printable
> > >
> > ><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> > ><HTML><HEAD>
> > ><META http-equiv=3DContent-Type content=3D"text/html; =
> > >charset=3Diso-8859-1">
> > ><META content=3D"MSHTML 6.00.2800.1170" name=3DGENERATOR>
> > ><STYLE></STYLE>
> > ></HEAD>
> > ><BODY>
> > ><DIV><FONT face=3DTahoma size=3D2>Hi all,</FONT></DIV>
> > ><DIV><FONT face=3DTahoma size=3D2></FONT>&nbsp;</DIV>
> > ><DIV><FONT face=3DTahoma size=3D2>Got the ejb2pb90 working now.. a =
> > >matter of=20
> > >classpaths and system settings.</FONT></DIV>
> > ><DIV><FONT face=3DTahoma size=3D2>Anyway, after installing and trying =
> > >the HelloWorld=20
> > >example, i wanted to try our own EJBs.</FONT></DIV>
> > ><DIV><FONT face=3DTahoma size=3D2>Deployed everything to EAS 4.2, tested
> =
> > >it using=20
> > >our CORBA client so i'm sure it's up and running. </FONT></DIV>
> > ><DIV><FONT face=3DTahoma size=3D2></FONT>&nbsp;</DIV>
> > ><DIV><FONT face=3DTahoma size=3D2>2 issues here:</FONT></DIV>
> > ><DIV><FONT face=3DTahoma size=3D2></FONT>&nbsp;</DIV>
> > ><DIV><FONT face=3DTahoma size=3D2>1.&nbsp;Connection to the =
> > >server&nbsp;shows as ok,=20
> > >even when the server itself was switched-off ?!! Output:</FONT></DIV>
> > ><DIV><FONT face=3DTerminal size=3D2>Connecting to the EJB=20
> > >Server<BR>----------------------------<BR>Successfully connected to =
> > >server at=20
> > >iiop://pcintegr2:9000</FONT></DIV>
> > ><DIV><FONT face=3DTerminal size=3D2></FONT>&nbsp;</DIV>
> > ><DIV><FONT face=3DTerminal=20
> >
> >size=3D2>Properties<BR>----------<BR>INITIAL_CONTEXT_FACTORY=3Dcom.sybase=
> >
> >.ejb.InitialContextFactory<BR>PROVIDER_URL=3Diiop://pcintegr2:9000<BR>SEC=
> > >URITY_PRINCIPAL=3Djagadmin<BR>SECURITY_CREDENTIALS=3D</FONT></DIV>
> > ><DIV><FONT face=3DTahoma size=3D2></FONT>&nbsp;</DIV>
> > ><DIV><FONT face=3DTahoma size=3D2>If it's not actually connecting to the
> =
> > >server,=20
> > >what does it really do?</FONT></DIV>
> > ><DIV><FONT face=3DTahoma size=3D2></FONT>&nbsp;</DIV>
> > ><DIV><FONT face=3DTahoma size=3D2>2. The LookUp of the EJB Home (for
> an=20
> > >up-and-running server ;-)) fails. Output:</FONT></DIV>
> > ><DIV><FONT face=3DTahoma size=3D2></FONT>&nbsp;</DIV>
> > ><DIV><FONT face=3DTerminal size=3D2>Looking Up An=20
> > >EJB<BR>-----------------<BR>Exception raised: Failed to lookup the
> EJB:=20
> >
> >be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSessionHome<BR>be.sofico.b=
> > >asecamp.sess.sessionmgmt.SessionMgmtSessionHome</FONT></DIV>
> > ><DIV><FONT face=3DTahoma size=3D2></FONT>&nbsp;</DIV>
> > ><DIV><FONT face=3DTahoma size=3D2>When investigating the server
> (jaguar=20
> > >administrator) i see that the installed ejb for the HelloWorld example =
> > >(using=20
> > >the ear) is installed on the server as a Application, while the other =
> > >EJBs are=20
> > >installed as a package but not as a application. Where's the difference?
> =
> > >
> > ></FONT></DIV>
> > ><DIV><FONT face=3DTahoma size=3D2>Could this be related to the lookup =
> > >failing? why?=20
> > ></FONT></DIV>
> > ><DIV><FONT face=3DTahoma size=3D2>As always, any help is =
> > >appreciated!</FONT></DIV>
> > ><DIV><FONT face=3DTahoma size=3D2></FONT>&nbsp;</DIV>
> > ><DIV><FONT face=3DTahoma size=3D2>Ben.</FONT></DIV></BODY></HTML>
> > >
> > >------=_NextPart_000_0119_01C36578.A0779BE0--
> > >
> >
> > Jim O'Neil
> > Principal Technical Support Engineer
> > Sybase, Inc.
> > Concord, MA
>
>


Jim O'Neil [Sybase] Posted on 2003-08-20 17:02:39.0Z
From: joneil@sybase.com (Jim O'Neil [Sybase])
Newsgroups: sybase.public.powerbuilder.ejbclient
Subject: Re: EJB Lookup failed
Organization: Sybase Technical Support
Reply-To: joneil_REMOVETHISPART@sybase.com
Message-ID: <3f43a8b1.16218300@forums.sybase.com>
References: <3f4096f6$1@forums-1-dub> <3f40d298.6399111@forums.sybase.com> <3f40daac@forums-2-dub> <3f421089@forums-2-dub> <3f43748f@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 10:03:03 -0700, joneilpc.sybase.com
Lines: 627
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 20 Aug 2003 10:01:50 -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 10:02:39 -0700
X-Trace: forums-1-dub 1061398959 10.22.108.75 (20 Aug 2003 10:02:39 -0700)
X-Original-Trace: 20 Aug 2003 10:02:39 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:124
Article PK: 424318

ClassCastException could be occuring if the Lookup doesn't return the
right 'type' or essentially just fails. It can also be due to
classpath issues, but I'd suspect the former. So if you provide the
WRONG JNDI name you see an obvious error in the server log, but if you
provide the right one, no error in server log - just the
ClassCastException?

If be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSessionHome were not
the correct class then this would be an anticipated result, but given
your experience with this feature, it's probably something less
obvious. Yes, I'd go ahead and pursue with support - they have all of
your setup information now right <g>

On 20 Aug 2003 06:15:33 -0700, "bede" <bede@nospam.sofico.be> wrote:

>This is a multi-part message in MIME format.
>
>------=_NextPart_000_0033_01C3672D.CEC76870
>Content-Type: text/plain;
> charset="iso-8859-1"
>Content-Transfer-Encoding: quoted-printable
>
>Jim,=20
>
>Could it be deploy-related (as in: deploying EJBs is different from =
>deploying CORBA EJBs)
>or shd i submit this to support as another bug?=20
>
>Ben
>
>
> "bede" <bede@nospam.sofico.be> wrote in message =
>news:3f421089@forums-2-dub...
> okay.. problem was a combination of a faulty jar (i'm innocent!) and =
>maybe the fact that the patch for 6111 updated some jars which weren't =
>updated in the EAServer lib-directory.
>
> Next obstacle (unfortunately):
>
> inv_SessionMgmtSessionHome =3D =
>inv_EJBConn.lookup("SessionMgmtSessionHome", =
>"BaseCamp/SessionMgmtSession", &
> "be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSessionHome")
>
> result:=20
>
> Looking Up An EJB
> -----------------
> Exception raised: Failed to lookup the EJB: =
>be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSessionHome
> java.lang.ClassCastException
>
> I know the server is reached (because if i provide a faulty JNDI i get =
>an error in the serverlog), then I thought something may be wrong with =
>the proxies, so recreated them using the exact same jar as on the =
>server.
> All without result..=20
> Finally, i checked using the Jaguar Manager if the lookups really =
>worked (instances active, pooled) but both are zero, so something must =
>be going wrong at serverside. I can't imagine what really..
> So basically, the lookup call reaches the server, the server however =
>cannot find it? instantiate it because what is returned is not valid =
>(checked this by using a Powerobject instead of a =
>SessionMgmtSessionHome-instance to receive what was returned).
>
> I was looking for a way to get more information about this =
>ClassCastException like getting hold of the stacktrace but it doesn't =
>seem possible for the PB-class Exception.
> Also wondered what the sesisonmgmtsession_ejb_pb_mapping structure is =
>used for exactly. Difficult to say whether sth is wrong with that and if =
>it could lead to such an error.
>
> Pity that not more is mentioned in the Help or anything.
>
> Ben
>
> PS: Connecting to the same package & classes using CORBA does work, so =
>i think nothing is wrong with the components..
>
> "bede" <bede@nospam.sofico.be> wrote in message =
>news:3f40daac@forums-2-dub...
> > thanks.. nothing in the logfile indeed..
> > i suppose i shd be doing some more classpath-digging
> >=20
> >=20
> > "Jim O'Neil [Sybase]" <joneil@sybase.com> wrote in message
> > news:3f40d298.6399111@forums.sybase.com...
> > > 1. The ConnectToServer method encapsulates the creation of a new
> > > InitialContext object in Java:
> > >
> > > Context context =3D new InitialContext(properties);
> > >
> > > Whether or not that actually involves communicating with the =
>server
> > > depends on the application server itself. EAServer does not send
> > > anything across the wire, WebSphere and WebLogic in my experiences =
>do.
> > >
> > > 2. Is it possible the JNDI name is not what you expect? Is there =
>a
> > > message in the EAServer log file that a component was not found? =
>If
> > > not, then it would appear that the request didn't reach the server =
>and
> > > perhaps something is missing on the client?
> > >
> > >
> > > On 18 Aug 2003 02:05:58 -0700, "bede" <bede@nospam.sofico.be> =
>wrote:
> > >
> > > >This is a multi-part message in MIME format.
> > > >
> > > >------=3D_NextPart_000_0119_01C36578.A0779BE0
> > > >Content-Type: text/plain;
> > > > charset=3D"iso-8859-1"
> > > >Content-Transfer-Encoding: quoted-printable
> > > >
> > > >Hi all,
> > > >
> > > >Got the ejb2pb90 working now.. a matter of classpaths and system =
>=3D
> > > >settings.
> > > >Anyway, after installing and trying the HelloWorld example, i =
>wanted to =3D
> > > >try our own EJBs.
> > > >Deployed everything to EAS 4.2, tested it using our CORBA client =
>so i'm =3D
> > > >sure it's up and running.=3D20
> > > >
> > > >2 issues here:
> > > >
> > > >1. Connection to the server shows as ok, even when the server =
>itself was
> > =3D
> > > >switched-off ?!! Output:
> > > >Connecting to the EJB Server
> > > >----------------------------
> > > >Successfully connected to server at iiop://pcintegr2:9000
> > > >
> > > >Properties
> > > >----------
> > > >INITIAL_CONTEXT_FACTORY=3D3Dcom.sybase.ejb.InitialContextFactory
> > > >PROVIDER_URL=3D3Diiop://pcintegr2:9000
> > > >SECURITY_PRINCIPAL=3D3Djagadmin
> > > >SECURITY_CREDENTIALS=3D3D
> > > >
> > > >If it's not actually connecting to the server, what does it =
>really do?
> > > >
> > > >2. The LookUp of the EJB Home (for an up-and-running server ;-)) =
>fails. =3D
> > > >Output:
> > > >
> > > >Looking Up An EJB
> > > >-----------------
> > > >Exception raised: Failed to lookup the EJB: =3D
> > > >be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSessionHome
> > > >be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSessionHome
> > > >
> > > >When investigating the server (jaguar administrator) i see that =
>the =3D
> > > >installed ejb for the HelloWorld example (using the ear) is =
>installed on
> > =3D
> > > >the server as a Application, while the other EJBs are installed =
>as a =3D
> > > >package but not as a application. Where's the difference?=3D20
> > > >Could this be related to the lookup failing? why?=3D20
> > > >As always, any help is appreciated!
> > > >
> > > >Ben.
> > > >------=3D_NextPart_000_0119_01C36578.A0779BE0
> > > >Content-Type: text/html;
> > > > charset=3D"iso-8859-1"
> > > >Content-Transfer-Encoding: quoted-printable
> > > >
> > > ><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> > > ><HTML><HEAD>
> > > ><META http-equiv=3D3DContent-Type content=3D3D"text/html; =3D
> > > >charset=3D3Diso-8859-1">
> > > ><META content=3D3D"MSHTML 6.00.2800.1170" name=3D3DGENERATOR>
> > > ><STYLE></STYLE>
> > > ></HEAD>
> > > ><BODY>
> > > ><DIV><FONT face=3D3DTahoma size=3D3D2>Hi all,</FONT></DIV>
> > > ><DIV><FONT face=3D3DTahoma size=3D3D2></FONT>&nbsp;</DIV>
> > > ><DIV><FONT face=3D3DTahoma size=3D3D2>Got the ejb2pb90 working =
>now.. a =3D
> > > >matter of=3D20
> > > >classpaths and system settings.</FONT></DIV>
> > > ><DIV><FONT face=3D3DTahoma size=3D3D2>Anyway, after installing =
>and trying =3D
> > > >the HelloWorld=3D20
> > > >example, i wanted to try our own EJBs.</FONT></DIV>
> > > ><DIV><FONT face=3D3DTahoma size=3D3D2>Deployed everything to EAS =
>4.2, tested
> > =3D
> > > >it using=3D20
> > > >our CORBA client so i'm sure it's up and running. </FONT></DIV>
> > > ><DIV><FONT face=3D3DTahoma size=3D3D2></FONT>&nbsp;</DIV>
> > > ><DIV><FONT face=3D3DTahoma size=3D3D2>2 issues here:</FONT></DIV>
> > > ><DIV><FONT face=3D3DTahoma size=3D3D2></FONT>&nbsp;</DIV>
> > > ><DIV><FONT face=3D3DTahoma size=3D3D2>1.&nbsp;Connection to the =
>=3D
> > > >server&nbsp;shows as ok,=3D20
> > > >even when the server itself was switched-off ?!! =
>Output:</FONT></DIV>
> > > ><DIV><FONT face=3D3DTerminal size=3D3D2>Connecting to the =
>EJB=3D20
> > > >Server<BR>----------------------------<BR>Successfully connected =
>to =3D
> > > >server at=3D20
> > > >iiop://pcintegr2:9000</FONT></DIV>
> > > ><DIV><FONT face=3D3DTerminal size=3D3D2></FONT>&nbsp;</DIV>
> > > ><DIV><FONT face=3D3DTerminal=3D20
> > >
> > =
>>size=3D3D2>Properties<BR>----------<BR>INITIAL_CONTEXT_FACTORY=3D3Dcom.s=
>ybase=3D
> > >
> > =
>>.ejb.InitialContextFactory<BR>PROVIDER_URL=3D3Diiop://pcintegr2:9000<BR>=
>SEC=3D
> > > =
>>URITY_PRINCIPAL=3D3Djagadmin<BR>SECURITY_CREDENTIALS=3D3D</FONT></DIV>
> > > ><DIV><FONT face=3D3DTahoma size=3D3D2></FONT>&nbsp;</DIV>
> > > ><DIV><FONT face=3D3DTahoma size=3D3D2>If it's not actually =
>connecting to the
> > =3D
> > > >server,=3D20
> > > >what does it really do?</FONT></DIV>
> > > ><DIV><FONT face=3D3DTahoma size=3D3D2></FONT>&nbsp;</DIV>
> > > ><DIV><FONT face=3D3DTahoma size=3D3D2>2. The LookUp of the EJB =
>Home (for
> > an=3D20
> > > >up-and-running server ;-)) fails. Output:</FONT></DIV>
> > > ><DIV><FONT face=3D3DTahoma size=3D3D2></FONT>&nbsp;</DIV>
> > > ><DIV><FONT face=3D3DTerminal size=3D3D2>Looking Up An=3D20
> > > >EJB<BR>-----------------<BR>Exception raised: Failed to lookup =
>the
> > EJB:=3D20
> > >
> > =
>>be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSessionHome<BR>be.sofico.=
>b=3D
> > > >asecamp.sess.sessionmgmt.SessionMgmtSessionHome</FONT></DIV>
> > > ><DIV><FONT face=3D3DTahoma size=3D3D2></FONT>&nbsp;</DIV>
> > > ><DIV><FONT face=3D3DTahoma size=3D3D2>When investigating the =
>server
> > (jaguar=3D20
> > > >administrator) i see that the installed ejb for the HelloWorld =
>example =3D
> > > >(using=3D20
> > > >the ear) is installed on the server as a Application, while the =
>other =3D
> > > >EJBs are=3D20
> > > >installed as a package but not as a application. Where's the =
>difference?
> > =3D
> > > >
> > > ></FONT></DIV>
> > > ><DIV><FONT face=3D3DTahoma size=3D3D2>Could this be related to =
>the lookup =3D
> > > >failing? why?=3D20
> > > ></FONT></DIV>
> > > ><DIV><FONT face=3D3DTahoma size=3D3D2>As always, any help is =3D
> > > >appreciated!</FONT></DIV>
> > > ><DIV><FONT face=3D3DTahoma size=3D3D2></FONT>&nbsp;</DIV>
> > > ><DIV><FONT face=3D3DTahoma =
>size=3D3D2>Ben.</FONT></DIV></BODY></HTML>
> > > >
> > > >------=3D_NextPart_000_0119_01C36578.A0779BE0--
> > > >
> > >
> > > Jim O'Neil
> > > Principal Technical Support Engineer
> > > Sybase, Inc.
> > > Concord, MA
> >=20
> >
>------=_NextPart_000_0033_01C3672D.CEC76870
>Content-Type: text/html;
> charset="iso-8859-1"
>Content-Transfer-Encoding: quoted-printable
>
><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
><HTML><HEAD>
><META http-equiv=3DContent-Type content=3D"text/html; =
>charset=3Diso-8859-1">
><META content=3D"MSHTML 6.00.2800.1170" name=3DGENERATOR>
><STYLE></STYLE>
></HEAD>
><BODY bgColor=3D#ffffff>
><DIV><FONT face=3DTahoma size=3D2>Jim, </FONT></DIV>
><DIV><FONT face=3DTahoma size=3D2></FONT>&nbsp;</DIV>
><DIV><FONT face=3DTahoma size=3D2>
><DIV><FONT face=3DTahoma size=3D2>Could it be deploy-related (as in: =
>deploying EJBs=20
>is different from deploying CORBA EJBs)</FONT></DIV>or shd i submit this =
>to=20
>support as another bug? </FONT></DIV>
><DIV><FONT face=3DTahoma size=3D2></FONT>&nbsp;</DIV>
><DIV><FONT face=3DTahoma size=3D2>Ben</FONT></DIV>
><DIV><FONT face=3DTahoma size=3D2></FONT>&nbsp;</DIV>
><DIV><FONT face=3DTahoma size=3D2></FONT>&nbsp;</DIV>
><BLOCKQUOTE=20
>style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
>BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
> <DIV>"bede" &lt;<A=20
> href=3D"mailto:bede@nospam.sofico.be">bede@nospam.sofico.be</A>&gt; =
>wrote in=20
> message <A=20
> =
>href=3D"news:3f421089@forums-2-dub">news:3f421089@forums-2-dub</A>...</DI=
>V>
> <DIV><FONT face=3DTahoma size=3D2>okay.. problem was a combination of =
>a faulty jar=20
> (i'm innocent!) and&nbsp;maybe the fact that the&nbsp;patch for 6111=20
> updated&nbsp;some jars which weren't updated in the EAServer=20
> lib-directory.</FONT></DIV>
> <DIV><FONT face=3DTahoma size=3D2></FONT>&nbsp;</DIV>
> <DIV><FONT face=3DTahoma size=3D2>Next obstacle =
>(unfortunately):</FONT></DIV>
> <DIV><FONT face=3DTahoma size=3D2></FONT>&nbsp;</DIV>
> <DIV><FONT face=3DTahoma size=3D2>inv_SessionMgmtSessionHome =3D=20
> inv_EJBConn.lookup("SessionMgmtSessionHome", =
>"BaseCamp/SessionMgmtSession",=20
> =
>&amp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"be.sofico.basecamp.sess.ses=
>sionmgmt.SessionMgmtSessionHome")</FONT></DIV>
> <DIV><FONT face=3DTahoma size=3D2></FONT>&nbsp;</DIV>
> <DIV><FONT face=3DTahoma size=3D2>result: </FONT></DIV>
> <DIV><FONT face=3DTahoma size=3D2></FONT>&nbsp;</DIV>
> <DIV><FONT face=3DTerminal size=3D2>Looking Up An=20
> EJB<BR>-----------------<BR>Exception raised: Failed to lookup the =
>EJB:=20
> =
>be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSessionHome<BR>java.lang.C=
>lassCastException</FONT></DIV>
> <DIV><FONT face=3DTahoma size=3D2></FONT>&nbsp;</DIV>
> <DIV><FONT face=3DTahoma size=3D2>I know the server is reached =
>(because if i=20
> provide a faulty JNDI i get an error in the serverlog), then =
></FONT><FONT=20
> face=3DTahoma size=3D2>I thought something may be wrong with the =
>proxies, so=20
> recreated them using the exact same jar as on the server.</FONT></DIV>
> <DIV><FONT face=3DTahoma size=3D2>All without result.. </FONT></DIV>
> <DIV><FONT face=3DTahoma size=3D2>Finally, i checked using the Jaguar =
>Manager if=20
> the lookups really worked (instances active, pooled) but both are =
>zero, so=20
> something must be going wrong at serverside. I can't imagine what=20
> really..</FONT></DIV>
> <DIV><FONT face=3DTahoma size=3D2>So basically, the lookup call =
>reaches the=20
> server, the server however cannot find it? instantiate it because what =
>is=20
> returned is not valid (checked this by using a Powerobject instead of =
>a=20
> SessionMgmtSessionHome-instance to receive what was =
>returned).</FONT></DIV>
> <DIV><FONT face=3DTahoma size=3D2></FONT>&nbsp;</DIV>
> <DIV><FONT face=3DTahoma size=3D2>I was looking for a way to get more =
>information=20
> about this ClassCastException like getting hold of the stacktrace but =
>it=20
> doesn't seem possible for the PB-class Exception.</FONT></DIV>
> <DIV><FONT face=3DTahoma size=3D2>Also wondered what the=20
> sesisonmgmtsession_ejb_pb_mapping structure is used for exactly. =
>Difficult to=20
> say whether sth is wrong with that and if it could lead to such an=20
> error.</FONT></DIV>
> <DIV><FONT face=3DTahoma size=3D2></FONT>&nbsp;</DIV>
> <DIV><FONT face=3DTahoma size=3D2>Pity that not more is mentioned in =
>the Help or=20
> anything.</FONT></DIV>
> <DIV><FONT face=3DTahoma size=3D2></FONT>&nbsp;</DIV>
> <DIV><FONT face=3DTahoma size=3D2>Ben</FONT></DIV>
> <DIV><FONT face=3DTahoma size=3D2></FONT>&nbsp;</DIV>
> <DIV><FONT face=3DTahoma size=3D2>PS: Connecting to the same package =
>&amp; classes=20
> using CORBA does work, so i think nothing is wrong with the=20
> components..</FONT></DIV>
> <DIV><FONT face=3DTahoma size=3D2></FONT>&nbsp;</DIV>
> <DIV><FONT face=3DTahoma size=3D2>"bede" &lt;</FONT><A=20
> href=3D"mailto:bede@nospam.sofico.be"><FONT face=3DTahoma=20
> size=3D2>bede@nospam.sofico.be</FONT></A><FONT face=3DTahoma =
>size=3D2>&gt; wrote in=20
> message </FONT><A href=3D"news:3f40daac@forums-2-dub"><FONT =
>face=3DTahoma=20
> size=3D2>news:3f40daac@forums-2-dub</FONT></A><FONT face=3DTahoma=20
> size=3D2>...</FONT></DIV><FONT face=3DTahoma size=3D2>&gt; thanks.. =
>nothing in the=20
> logfile indeed..<BR>&gt; i suppose i shd be doing some more=20
> classpath-digging<BR>&gt; <BR>&gt; <BR>&gt; "Jim O'Neil [Sybase]"=20
> &lt;</FONT><A href=3D"mailto:joneil@sybase.com"><FONT face=3DTahoma=20
> size=3D2>joneil@sybase.com</FONT></A><FONT face=3DTahoma size=3D2>&gt; =
>wrote in=20
> message<BR>&gt; </FONT><A =
>href=3D"news:3f40d298.6399111@forums.sybase.com"><FONT=20
> face=3DTahoma =
>size=3D2>news:3f40d298.6399111@forums.sybase.com</FONT></A><FONT=20
> face=3DTahoma size=3D2>...<BR>&gt; &gt; 1.&nbsp; The ConnectToServer =
>method=20
> encapsulates the creation of a new<BR>&gt; &gt; InitialContext object =
>in=20
> Java:<BR>&gt; &gt;<BR>&gt; &gt; Context context =3D new=20
> InitialContext(properties);<BR>&gt; &gt;<BR>&gt; &gt;&nbsp; Whether or =
>not=20
> that actually involves communicating with the server<BR>&gt; &gt; =
>depends on=20
> the application server itself.&nbsp; EAServer does not send<BR>&gt; =
>&gt;=20
> anything across the wire, WebSphere and WebLogic in my experiences =
>do.<BR>&gt;=20
> &gt;<BR>&gt; &gt; 2. Is it possible the JNDI name is not what you=20
> expect?&nbsp; Is there a<BR>&gt; &gt; message in the EAServer log file =
>that a=20
> component was not found?&nbsp; If<BR>&gt; &gt; not, then it would =
>appear that=20
> the request didn't reach the server and<BR>&gt; &gt; perhaps something =
>is=20
> missing on the client?<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt;&nbsp; On =
>18 Aug=20
> 2003 02:05:58 -0700, "bede" &lt;</FONT><A=20
> href=3D"mailto:bede@nospam.sofico.be"><FONT face=3DTahoma=20
> size=3D2>bede@nospam.sofico.be</FONT></A><FONT face=3DTahoma =
>size=3D2>&gt;=20
> wrote:<BR>&gt; &gt;<BR>&gt; &gt; &gt;This is a multi-part message in =
>MIME=20
> format.<BR>&gt; &gt; &gt;<BR>&gt; &gt;=20
> &gt;------=3D_NextPart_000_0119_01C36578.A0779BE0<BR>&gt; &gt; =
>&gt;Content-Type:=20
> text/plain;<BR>&gt; &gt; &gt; charset=3D"iso-8859-1"<BR>&gt; &gt;=20
> &gt;Content-Transfer-Encoding: quoted-printable<BR>&gt; &gt; =
>&gt;<BR>&gt; &gt;=20
> &gt;Hi all,<BR>&gt; &gt; &gt;<BR>&gt; &gt; &gt;Got the ejb2pb90 =
>working now..=20
> a matter of classpaths and system =3D<BR>&gt; &gt; =
>&gt;settings.<BR>&gt; &gt;=20
> &gt;Anyway, after installing and trying the HelloWorld example, i =
>wanted to=20
> =3D<BR>&gt; &gt; &gt;try our own EJBs.<BR>&gt; &gt; &gt;Deployed =
>everything to=20
> EAS 4.2, tested it using our CORBA client so i'm =3D<BR>&gt; &gt; =
>&gt;sure it's=20
> up and running.=3D20<BR>&gt; &gt; &gt;<BR>&gt; &gt; &gt;2 issues =
>here:<BR>&gt;=20
> &gt; &gt;<BR>&gt; &gt; &gt;1. Connection to the server shows as ok, =
>even when=20
> the server itself was<BR>&gt; =3D<BR>&gt; &gt; &gt;switched-off ?!!=20
> Output:<BR>&gt; &gt; &gt;Connecting to the EJB Server<BR>&gt; &gt;=20
> &gt;----------------------------<BR>&gt; &gt; &gt;Successfully =
>connected to=20
> server at iiop://pcintegr2:9000<BR>&gt; &gt; &gt;<BR>&gt; &gt;=20
> &gt;Properties<BR>&gt; &gt; &gt;----------<BR>&gt; &gt;=20
> =
>&gt;INITIAL_CONTEXT_FACTORY=3D3Dcom.sybase.ejb.InitialContextFactory<BR>&=
>gt;=20
> &gt; &gt;PROVIDER_URL=3D3Diiop://pcintegr2:9000<BR>&gt; &gt;=20
> &gt;SECURITY_PRINCIPAL=3D3Djagadmin<BR>&gt; &gt;=20
> &gt;SECURITY_CREDENTIALS=3D3D<BR>&gt; &gt; &gt;<BR>&gt; &gt; &gt;If =
>it's not=20
> actually connecting to the server, what does it really do?<BR>&gt; =
>&gt;=20
> &gt;<BR>&gt; &gt; &gt;2. The LookUp of the EJB Home (for an =
>up-and-running=20
> server ;-)) fails. =3D<BR>&gt; &gt; &gt;Output:<BR>&gt; &gt; =
>&gt;<BR>&gt; &gt;=20
> &gt;Looking Up An EJB<BR>&gt; &gt; &gt;-----------------<BR>&gt; &gt;=20
> &gt;Exception raised: Failed to lookup the EJB: =3D<BR>&gt; &gt;=20
> &gt;be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSessionHome<BR>&gt; =
>&gt;=20
> &gt;be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSessionHome<BR>&gt; =
>&gt;=20
> &gt;<BR>&gt; &gt; &gt;When investigating the server (jaguar =
>administrator) i=20
> see that the =3D<BR>&gt; &gt; &gt;installed ejb for the HelloWorld =
>example=20
> (using the ear) is installed on<BR>&gt; =3D<BR>&gt; &gt; &gt;the =
>server as a=20
> Application, while the other EJBs are installed as a =3D<BR>&gt; &gt;=20
> &gt;package but not as a application. Where's the =
>difference?=3D20<BR>&gt; &gt;=20
> &gt;Could this be related to the lookup failing? why?=3D20<BR>&gt; =
>&gt; &gt;As=20
> always, any help is appreciated!<BR>&gt; &gt; &gt;<BR>&gt; &gt;=20
> &gt;Ben.<BR>&gt; &gt; =
>&gt;------=3D_NextPart_000_0119_01C36578.A0779BE0<BR>&gt;=20
> &gt; &gt;Content-Type: text/html;<BR>&gt; &gt; &gt;=20
> charset=3D"iso-8859-1"<BR>&gt; &gt; &gt;Content-Transfer-Encoding:=20
> quoted-printable<BR>&gt; &gt; &gt;<BR>&gt; &gt; &gt;&lt;!DOCTYPE HTML =
>PUBLIC=20
> "-//W3C//DTD HTML 4.0 Transitional//EN"&gt;<BR>&gt; &gt;=20
> &gt;&lt;HTML&gt;&lt;HEAD&gt;<BR>&gt; &gt; &gt;&lt;META=20
> http-equiv=3D3DContent-Type content=3D3D"text/html; =3D<BR>&gt; &gt;=20
> &gt;charset=3D3Diso-8859-1"&gt;<BR>&gt; &gt; &gt;&lt;META =
>content=3D3D"MSHTML=20
> 6.00.2800.1170" name=3D3DGENERATOR&gt;<BR>&gt; &gt;=20
> &gt;&lt;STYLE&gt;&lt;/STYLE&gt;<BR>&gt; &gt; &gt;&lt;/HEAD&gt;<BR>&gt; =
>&gt;=20
> &gt;&lt;BODY&gt;<BR>&gt; &gt; &gt;&lt;DIV&gt;&lt;FONT face=3D3DTahoma=20
> size=3D3D2&gt;Hi all,&lt;/FONT&gt;&lt;/DIV&gt;<BR>&gt; &gt;=20
> &gt;&lt;DIV&gt;&lt;FONT face=3D3DTahoma=20
> size=3D3D2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;<BR>&gt; &gt;=20
> &gt;&lt;DIV&gt;&lt;FONT face=3D3DTahoma size=3D3D2&gt;Got the ejb2pb90 =
>working=20
> now.. a =3D<BR>&gt; &gt; &gt;matter of=3D20<BR>&gt; &gt; =
>&gt;classpaths and system=20
> settings.&lt;/FONT&gt;&lt;/DIV&gt;<BR>&gt; &gt; =
>&gt;&lt;DIV&gt;&lt;FONT=20
> face=3D3DTahoma size=3D3D2&gt;Anyway, after installing and trying =
>=3D<BR>&gt; &gt;=20
> &gt;the HelloWorld=3D20<BR>&gt; &gt; &gt;example, i wanted to try our =
>own=20
> EJBs.&lt;/FONT&gt;&lt;/DIV&gt;<BR>&gt; &gt; &gt;&lt;DIV&gt;&lt;FONT=20
> face=3D3DTahoma size=3D3D2&gt;Deployed everything to EAS 4.2, =
>tested<BR>&gt;=20
> =3D<BR>&gt; &gt; &gt;it using=3D20<BR>&gt; &gt; &gt;our CORBA client =
>so i'm sure=20
> it's up and running. &lt;/FONT&gt;&lt;/DIV&gt;<BR>&gt; &gt;=20
> &gt;&lt;DIV&gt;&lt;FONT face=3D3DTahoma=20
> size=3D3D2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;<BR>&gt; &gt;=20
> &gt;&lt;DIV&gt;&lt;FONT face=3D3DTahoma size=3D3D2&gt;2 issues=20
> here:&lt;/FONT&gt;&lt;/DIV&gt;<BR>&gt; &gt; &gt;&lt;DIV&gt;&lt;FONT=20
> face=3D3DTahoma =
>size=3D3D2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;<BR>&gt; &gt;=20
> &gt;&lt;DIV&gt;&lt;FONT face=3D3DTahoma =
>size=3D3D2&gt;1.&amp;nbsp;Connection to=20
> the =3D<BR>&gt; &gt; &gt;server&amp;nbsp;shows as ok,=3D20<BR>&gt; =
>&gt; &gt;even=20
> when the server itself was switched-off ?!!=20
> Output:&lt;/FONT&gt;&lt;/DIV&gt;<BR>&gt; &gt; &gt;&lt;DIV&gt;&lt;FONT=20
> face=3D3DTerminal size=3D3D2&gt;Connecting to the EJB=3D20<BR>&gt; =
>&gt;=20
> &gt;Server&lt;BR&gt;----------------------------&lt;BR&gt;Successfully =
>
> connected to =3D<BR>&gt; &gt; &gt;server at=3D20<BR>&gt; &gt;=20
> &gt;iiop://pcintegr2:9000&lt;/FONT&gt;&lt;/DIV&gt;<BR>&gt; &gt;=20
> &gt;&lt;DIV&gt;&lt;FONT face=3D3DTerminal=20
> size=3D3D2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;<BR>&gt; &gt;=20
> &gt;&lt;DIV&gt;&lt;FONT face=3D3DTerminal=3D20<BR>&gt; &gt;<BR>&gt;=20
> =
>&gt;size=3D3D2&gt;Properties&lt;BR&gt;----------&lt;BR&gt;INITIAL_CONTEXT=
>_FACTORY=3D3Dcom.sybase=3D<BR>&gt;=20
> &gt;<BR>&gt;=20
> =
>&gt;.ejb.InitialContextFactory&lt;BR&gt;PROVIDER_URL=3D3Diiop://pcintegr2=
>:9000&lt;BR&gt;SEC=3D<BR>&gt;=20
> &gt;=20
> =
>&gt;URITY_PRINCIPAL=3D3Djagadmin&lt;BR&gt;SECURITY_CREDENTIALS=3D3D&lt;/F=
>ONT&gt;&lt;/DIV&gt;<BR>&gt;=20
> &gt; &gt;&lt;DIV&gt;&lt;FONT face=3D3DTahoma=20
> size=3D3D2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;<BR>&gt; &gt;=20
> &gt;&lt;DIV&gt;&lt;FONT face=3D3DTahoma size=3D3D2&gt;If it's not =
>actually=20
> connecting to the<BR>&gt; =3D<BR>&gt; &gt; &gt;server,=3D20<BR>&gt; =
>&gt; &gt;what=20
> does it really do?&lt;/FONT&gt;&lt;/DIV&gt;<BR>&gt; &gt;=20
> &gt;&lt;DIV&gt;&lt;FONT face=3D3DTahoma=20
> size=3D3D2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;<BR>&gt; &gt;=20
> &gt;&lt;DIV&gt;&lt;FONT face=3D3DTahoma size=3D3D2&gt;2. The LookUp of =
>the EJB=20
> Home (for<BR>&gt; an=3D20<BR>&gt; &gt; &gt;up-and-running server ;-)) =
>fails.=20
> Output:&lt;/FONT&gt;&lt;/DIV&gt;<BR>&gt; &gt; &gt;&lt;DIV&gt;&lt;FONT=20
> face=3D3DTahoma =
>size=3D3D2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;<BR>&gt; &gt;=20
> &gt;&lt;DIV&gt;&lt;FONT face=3D3DTerminal size=3D3D2&gt;Looking Up =
>An=3D20<BR>&gt;=20
> &gt; &gt;EJB&lt;BR&gt;-----------------&lt;BR&gt;Exception raised: =
>Failed to=20
> lookup the<BR>&gt; EJB:=3D20<BR>&gt; &gt;<BR>&gt;=20
> =
>&gt;be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSessionHome&lt;BR&gt;b=
>e.sofico.b=3D<BR>&gt;=20
> &gt;=20
> =
>&gt;asecamp.sess.sessionmgmt.SessionMgmtSessionHome&lt;/FONT&gt;&lt;/DIV&=
>gt;<BR>&gt;=20
> &gt; &gt;&lt;DIV&gt;&lt;FONT face=3D3DTahoma=20
> size=3D3D2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;<BR>&gt; &gt;=20
> &gt;&lt;DIV&gt;&lt;FONT face=3D3DTahoma size=3D3D2&gt;When =
>investigating the=20
> server<BR>&gt; (jaguar=3D20<BR>&gt; &gt; &gt;administrator) i see that =
>the=20
> installed ejb for the HelloWorld example =3D<BR>&gt; &gt; =
>&gt;(using=3D20<BR>&gt;=20
> &gt; &gt;the ear) is installed on the server as a Application, while =
>the other=20
> =3D<BR>&gt; &gt; &gt;EJBs are=3D20<BR>&gt; &gt; &gt;installed as a =
>package but not=20
> as a application. Where's the difference?<BR>&gt; =3D<BR>&gt; &gt; =
>&gt;<BR>&gt;=20
> &gt; &gt;&lt;/FONT&gt;&lt;/DIV&gt;<BR>&gt; &gt; =
>&gt;&lt;DIV&gt;&lt;FONT=20
> face=3D3DTahoma size=3D3D2&gt;Could this be related to the lookup =
>=3D<BR>&gt; &gt;=20
> &gt;failing? why?=3D20<BR>&gt; &gt; =
>&gt;&lt;/FONT&gt;&lt;/DIV&gt;<BR>&gt; &gt;=20
> &gt;&lt;DIV&gt;&lt;FONT face=3D3DTahoma size=3D3D2&gt;As always, any =
>help is=20
> =3D<BR>&gt; &gt; &gt;appreciated!&lt;/FONT&gt;&lt;/DIV&gt;<BR>&gt; =
>&gt;=20
> &gt;&lt;DIV&gt;&lt;FONT face=3D3DTahoma=20
> size=3D3D2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;<BR>&gt; &gt;=20
> &gt;&lt;DIV&gt;&lt;FONT face=3D3DTahoma=20
> =
>size=3D3D2&gt;Ben.&lt;/FONT&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;<BR>=
>&gt;=20
> &gt; &gt;<BR>&gt; &gt;=20
> &gt;------=3D_NextPart_000_0119_01C36578.A0779BE0--<BR>&gt; &gt; =
>&gt;<BR>&gt;=20
> &gt;<BR>&gt; &gt; Jim O'Neil<BR>&gt; &gt; Principal Technical Support=20
> Engineer<BR>&gt; &gt; Sybase, Inc.<BR>&gt; &gt; Concord, MA<BR>&gt; =
><BR>&gt;=20
> </FONT></BLOCKQUOTE></BODY></HTML>
>
>------=_NextPart_000_0033_01C3672D.CEC76870--
>

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


bede Posted on 2003-08-21 08:09:56.0Z
From: "bede" <bede@nospam.sofico.be>
Newsgroups: sybase.public.powerbuilder.ejbclient
References: <3f4096f6$1@forums-1-dub> <3f40d298.6399111@forums.sybase.com> <3f40daac@forums-2-dub> <3f421089@forums-2-dub> <3f43748f@forums-2-dub> <3f43a8b1.16218300@forums.sybase.com>
Subject: Re: EJB Lookup failed
Lines: 672
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: uu194-7-38-232.unknown.uunet.be
X-Original-NNTP-Posting-Host: uu194-7-38-232.unknown.uunet.be
Message-ID: <3f447e54@forums-1-dub>
Date: 21 Aug 2003 01:09:56 -0700
X-Trace: forums-1-dub 1061453396 194.7.38.232 (21 Aug 2003 01:09:56 -0700)
X-Original-Trace: 21 Aug 2003 01:09:56 -0700, uu194-7-38-232.unknown.uunet.be
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:131
Article PK: 424326

FYI: I've opened case 20325503 for this.

"Jim O'Neil [Sybase]" <joneil@sybase.com> wrote in message
news:3f43a8b1.16218300@forums.sybase.com...
> ClassCastException could be occuring if the Lookup doesn't return the
> right 'type' or essentially just fails. It can also be due to
> classpath issues, but I'd suspect the former. So if you provide the
> WRONG JNDI name you see an obvious error in the server log, but if you
> provide the right one, no error in server log - just the
> ClassCastException?
>
> If be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSessionHome were not
> the correct class then this would be an anticipated result, but given
> your experience with this feature, it's probably something less
> obvious. Yes, I'd go ahead and pursue with support - they have all of
> your setup information now right <g>
>
> On 20 Aug 2003 06:15:33 -0700, "bede" <bede@nospam.sofico.be> wrote:
>
> >This is a multi-part message in MIME format.
> >
> >------=_NextPart_000_0033_01C3672D.CEC76870
> >Content-Type: text/plain;
> > charset="iso-8859-1"
> >Content-Transfer-Encoding: quoted-printable
> >
> >Jim,=20
> >
> >Could it be deploy-related (as in: deploying EJBs is different from =
> >deploying CORBA EJBs)
> >or shd i submit this to support as another bug?=20
> >
> >Ben
> >
> >
> > "bede" <bede@nospam.sofico.be> wrote in message =
> >news:3f421089@forums-2-dub...
> > okay.. problem was a combination of a faulty jar (i'm innocent!) and =
> >maybe the fact that the patch for 6111 updated some jars which weren't =
> >updated in the EAServer lib-directory.
> >
> > Next obstacle (unfortunately):
> >
> > inv_SessionMgmtSessionHome =3D =
> >inv_EJBConn.lookup("SessionMgmtSessionHome", =
> >"BaseCamp/SessionMgmtSession", &
> > "be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSessionHome")
> >
> > result:=20
> >
> > Looking Up An EJB
> > -----------------
> > Exception raised: Failed to lookup the EJB: =
> >be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSessionHome
> > java.lang.ClassCastException
> >
> > I know the server is reached (because if i provide a faulty JNDI i get
=
> >an error in the serverlog), then I thought something may be wrong with =
> >the proxies, so recreated them using the exact same jar as on the =
> >server.
> > All without result..=20
> > Finally, i checked using the Jaguar Manager if the lookups really =
> >worked (instances active, pooled) but both are zero, so something must =
> >be going wrong at serverside. I can't imagine what really..
> > So basically, the lookup call reaches the server, the server however =
> >cannot find it? instantiate it because what is returned is not valid =
> >(checked this by using a Powerobject instead of a =
> >SessionMgmtSessionHome-instance to receive what was returned).
> >
> > I was looking for a way to get more information about this =
> >ClassCastException like getting hold of the stacktrace but it doesn't =
> >seem possible for the PB-class Exception.
> > Also wondered what the sesisonmgmtsession_ejb_pb_mapping structure is =
> >used for exactly. Difficult to say whether sth is wrong with that and if
=
> >it could lead to such an error.
> >
> > Pity that not more is mentioned in the Help or anything.
> >
> > Ben
> >
> > PS: Connecting to the same package & classes using CORBA does work, so
=
> >i think nothing is wrong with the components..
> >
> > "bede" <bede@nospam.sofico.be> wrote in message =
> >news:3f40daac@forums-2-dub...
> > > thanks.. nothing in the logfile indeed..
> > > i suppose i shd be doing some more classpath-digging
> > >=20
> > >=20
> > > "Jim O'Neil [Sybase]" <joneil@sybase.com> wrote in message
> > > news:3f40d298.6399111@forums.sybase.com...
> > > > 1. The ConnectToServer method encapsulates the creation of a new
> > > > InitialContext object in Java:
> > > >
> > > > Context context =3D new InitialContext(properties);
> > > >
> > > > Whether or not that actually involves communicating with the =
> >server
> > > > depends on the application server itself. EAServer does not send
> > > > anything across the wire, WebSphere and WebLogic in my experiences
=
> >do.
> > > >
> > > > 2. Is it possible the JNDI name is not what you expect? Is there =
> >a
> > > > message in the EAServer log file that a component was not found? =
> >If
> > > > not, then it would appear that the request didn't reach the server
=
> >and
> > > > perhaps something is missing on the client?
> > > >
> > > >
> > > > On 18 Aug 2003 02:05:58 -0700, "bede" <bede@nospam.sofico.be> =
> >wrote:
> > > >
> > > > >This is a multi-part message in MIME format.
> > > > >
> > > > >------=3D_NextPart_000_0119_01C36578.A0779BE0
> > > > >Content-Type: text/plain;
> > > > > charset=3D"iso-8859-1"
> > > > >Content-Transfer-Encoding: quoted-printable
> > > > >
> > > > >Hi all,
> > > > >
> > > > >Got the ejb2pb90 working now.. a matter of classpaths and system =
> >=3D
> > > > >settings.
> > > > >Anyway, after installing and trying the HelloWorld example, i =
> >wanted to =3D
> > > > >try our own EJBs.
> > > > >Deployed everything to EAS 4.2, tested it using our CORBA client =
> >so i'm =3D
> > > > >sure it's up and running.=3D20
> > > > >
> > > > >2 issues here:
> > > > >
> > > > >1. Connection to the server shows as ok, even when the server =
> >itself was
> > > =3D
> > > > >switched-off ?!! Output:
> > > > >Connecting to the EJB Server
> > > > >----------------------------
> > > > >Successfully connected to server at iiop://pcintegr2:9000
> > > > >
> > > > >Properties
> > > > >----------
> > > > >INITIAL_CONTEXT_FACTORY=3D3Dcom.sybase.ejb.InitialContextFactory
> > > > >PROVIDER_URL=3D3Diiop://pcintegr2:9000
> > > > >SECURITY_PRINCIPAL=3D3Djagadmin
> > > > >SECURITY_CREDENTIALS=3D3D
> > > > >
> > > > >If it's not actually connecting to the server, what does it =
> >really do?
> > > > >
> > > > >2. The LookUp of the EJB Home (for an up-and-running server ;-)) =
> >fails. =3D
> > > > >Output:
> > > > >
> > > > >Looking Up An EJB
> > > > >-----------------
> > > > >Exception raised: Failed to lookup the EJB: =3D
> > > > >be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSessionHome
> > > > >be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSessionHome
> > > > >
> > > > >When investigating the server (jaguar administrator) i see that =
> >the =3D
> > > > >installed ejb for the HelloWorld example (using the ear) is =
> >installed on
> > > =3D
> > > > >the server as a Application, while the other EJBs are installed =
> >as a =3D
> > > > >package but not as a application. Where's the difference?=3D20
> > > > >Could this be related to the lookup failing? why?=3D20
> > > > >As always, any help is appreciated!
> > > > >
> > > > >Ben.
> > > > >------=3D_NextPart_000_0119_01C36578.A0779BE0
> > > > >Content-Type: text/html;
> > > > > charset=3D"iso-8859-1"
> > > > >Content-Transfer-Encoding: quoted-printable
> > > > >
> > > > ><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> > > > ><HTML><HEAD>
> > > > ><META http-equiv=3D3DContent-Type content=3D3D"text/html; =3D
> > > > >charset=3D3Diso-8859-1">
> > > > ><META content=3D3D"MSHTML 6.00.2800.1170" name=3D3DGENERATOR>
> > > > ><STYLE></STYLE>
> > > > ></HEAD>
> > > > ><BODY>
> > > > ><DIV><FONT face=3D3DTahoma size=3D3D2>Hi all,</FONT></DIV>
> > > > ><DIV><FONT face=3D3DTahoma size=3D3D2></FONT>&nbsp;</DIV>
> > > > ><DIV><FONT face=3D3DTahoma size=3D3D2>Got the ejb2pb90 working =
> >now.. a =3D
> > > > >matter of=3D20
> > > > >classpaths and system settings.</FONT></DIV>
> > > > ><DIV><FONT face=3D3DTahoma size=3D3D2>Anyway, after installing =
> >and trying =3D
> > > > >the HelloWorld=3D20
> > > > >example, i wanted to try our own EJBs.</FONT></DIV>
> > > > ><DIV><FONT face=3D3DTahoma size=3D3D2>Deployed everything to EAS =
> >4.2, tested
> > > =3D
> > > > >it using=3D20
> > > > >our CORBA client so i'm sure it's up and running. </FONT></DIV>
> > > > ><DIV><FONT face=3D3DTahoma size=3D3D2></FONT>&nbsp;</DIV>
> > > > ><DIV><FONT face=3D3DTahoma size=3D3D2>2 issues here:</FONT></DIV>
> > > > ><DIV><FONT face=3D3DTahoma size=3D3D2></FONT>&nbsp;</DIV>
> > > > ><DIV><FONT face=3D3DTahoma size=3D3D2>1.&nbsp;Connection to the =
> >=3D
> > > > >server&nbsp;shows as ok,=3D20
> > > > >even when the server itself was switched-off ?!! =
> >Output:</FONT></DIV>
> > > > ><DIV><FONT face=3D3DTerminal size=3D3D2>Connecting to the =
> >EJB=3D20
> > > > >Server<BR>----------------------------<BR>Successfully connected =
> >to =3D
> > > > >server at=3D20
> > > > >iiop://pcintegr2:9000</FONT></DIV>
> > > > ><DIV><FONT face=3D3DTerminal size=3D3D2></FONT>&nbsp;</DIV>
> > > > ><DIV><FONT face=3D3DTerminal=3D20
> > > >
> > > =
>
>>size=3D3D2>Properties<BR>----------<BR>INITIAL_CONTEXT_FACTORY=3D3Dcom.s=
> >ybase=3D
> > > >
> > > =
>
>>.ejb.InitialContextFactory<BR>PROVIDER_URL=3D3Diiop://pcintegr2:9000<BR>=
> >SEC=3D
> > > > =
> >>URITY_PRINCIPAL=3D3Djagadmin<BR>SECURITY_CREDENTIALS=3D3D</FONT></DIV>
> > > > ><DIV><FONT face=3D3DTahoma size=3D3D2></FONT>&nbsp;</DIV>
> > > > ><DIV><FONT face=3D3DTahoma size=3D3D2>If it's not actually =
> >connecting to the
> > > =3D
> > > > >server,=3D20
> > > > >what does it really do?</FONT></DIV>
> > > > ><DIV><FONT face=3D3DTahoma size=3D3D2></FONT>&nbsp;</DIV>
> > > > ><DIV><FONT face=3D3DTahoma size=3D3D2>2. The LookUp of the EJB =
> >Home (for
> > > an=3D20
> > > > >up-and-running server ;-)) fails. Output:</FONT></DIV>
> > > > ><DIV><FONT face=3D3DTahoma size=3D3D2></FONT>&nbsp;</DIV>
> > > > ><DIV><FONT face=3D3DTerminal size=3D3D2>Looking Up An=3D20
> > > > >EJB<BR>-----------------<BR>Exception raised: Failed to lookup =
> >the
> > > EJB:=3D20
> > > >
> > > =
>
>>be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSessionHome<BR>be.sofico.=
> >b=3D
> > > > >asecamp.sess.sessionmgmt.SessionMgmtSessionHome</FONT></DIV>
> > > > ><DIV><FONT face=3D3DTahoma size=3D3D2></FONT>&nbsp;</DIV>
> > > > ><DIV><FONT face=3D3DTahoma size=3D3D2>When investigating the =
> >server
> > > (jaguar=3D20
> > > > >administrator) i see that the installed ejb for the HelloWorld =
> >example =3D
> > > > >(using=3D20
> > > > >the ear) is installed on the server as a Application, while the =
> >other =3D
> > > > >EJBs are=3D20
> > > > >installed as a package but not as a application. Where's the =
> >difference?
> > > =3D
> > > > >
> > > > ></FONT></DIV>
> > > > ><DIV><FONT face=3D3DTahoma size=3D3D2>Could this be related to =
> >the lookup =3D
> > > > >failing? why?=3D20
> > > > ></FONT></DIV>
> > > > ><DIV><FONT face=3D3DTahoma size=3D3D2>As always, any help is =3D
> > > > >appreciated!</FONT></DIV>
> > > > ><DIV><FONT face=3D3DTahoma size=3D3D2></FONT>&nbsp;</DIV>
> > > > ><DIV><FONT face=3D3DTahoma =
> >size=3D3D2>Ben.</FONT></DIV></BODY></HTML>
> > > > >
> > > > >------=3D_NextPart_000_0119_01C36578.A0779BE0--
> > > > >
> > > >
> > > > Jim O'Neil
> > > > Principal Technical Support Engineer
> > > > Sybase, Inc.
> > > > Concord, MA
> > >=20
> > >
> >------=_NextPart_000_0033_01C3672D.CEC76870
> >Content-Type: text/html;
> > charset="iso-8859-1"
> >Content-Transfer-Encoding: quoted-printable
> >
> ><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> ><HTML><HEAD>
> ><META http-equiv=3DContent-Type content=3D"text/html; =
> >charset=3Diso-8859-1">
> ><META content=3D"MSHTML 6.00.2800.1170" name=3DGENERATOR>
> ><STYLE></STYLE>
> ></HEAD>
> ><BODY bgColor=3D#ffffff>
> ><DIV><FONT face=3DTahoma size=3D2>Jim, </FONT></DIV>
> ><DIV><FONT face=3DTahoma size=3D2></FONT>&nbsp;</DIV>
> ><DIV><FONT face=3DTahoma size=3D2>
> ><DIV><FONT face=3DTahoma size=3D2>Could it be deploy-related (as in: =
> >deploying EJBs=20
> >is different from deploying CORBA EJBs)</FONT></DIV>or shd i submit this
=
> >to=20
> >support as another bug? </FONT></DIV>
> ><DIV><FONT face=3DTahoma size=3D2></FONT>&nbsp;</DIV>
> ><DIV><FONT face=3DTahoma size=3D2>Ben</FONT></DIV>
> ><DIV><FONT face=3DTahoma size=3D2></FONT>&nbsp;</DIV>
> ><DIV><FONT face=3DTahoma size=3D2></FONT>&nbsp;</DIV>
> ><BLOCKQUOTE=20
> >style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
> >BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
> > <DIV>"bede" &lt;<A=20
> > href=3D"mailto:bede@nospam.sofico.be">bede@nospam.sofico.be</A>&gt; =
> >wrote in=20
> > message <A=20
> > =
>
>href=3D"news:3f421089@forums-2-dub">news:3f421089@forums-2-dub</A>...</DI=
> >V>
> > <DIV><FONT face=3DTahoma size=3D2>okay.. problem was a combination of =
> >a faulty jar=20
> > (i'm innocent!) and&nbsp;maybe the fact that the&nbsp;patch for 6111=20
> > updated&nbsp;some jars which weren't updated in the EAServer=20
> > lib-directory.</FONT></DIV>
> > <DIV><FONT face=3DTahoma size=3D2></FONT>&nbsp;</DIV>
> > <DIV><FONT face=3DTahoma size=3D2>Next obstacle =
> >(unfortunately):</FONT></DIV>
> > <DIV><FONT face=3DTahoma size=3D2></FONT>&nbsp;</DIV>
> > <DIV><FONT face=3DTahoma size=3D2>inv_SessionMgmtSessionHome =3D=20
> > inv_EJBConn.lookup("SessionMgmtSessionHome", =
> >"BaseCamp/SessionMgmtSession",=20
> > =
>
>&amp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"be.sofico.basecamp.sess.ses=
> >sionmgmt.SessionMgmtSessionHome")</FONT></DIV>
> > <DIV><FONT face=3DTahoma size=3D2></FONT>&nbsp;</DIV>
> > <DIV><FONT face=3DTahoma size=3D2>result: </FONT></DIV>
> > <DIV><FONT face=3DTahoma size=3D2></FONT>&nbsp;</DIV>
> > <DIV><FONT face=3DTerminal size=3D2>Looking Up An=20
> > EJB<BR>-----------------<BR>Exception raised: Failed to lookup the =
> >EJB:=20
> > =
>
>be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSessionHome<BR>java.lang.C=
> >lassCastException</FONT></DIV>
> > <DIV><FONT face=3DTahoma size=3D2></FONT>&nbsp;</DIV>
> > <DIV><FONT face=3DTahoma size=3D2>I know the server is reached =
> >(because if i=20
> > provide a faulty JNDI i get an error in the serverlog), then =
> ></FONT><FONT=20
> > face=3DTahoma size=3D2>I thought something may be wrong with the =
> >proxies, so=20
> > recreated them using the exact same jar as on the server.</FONT></DIV>
> > <DIV><FONT face=3DTahoma size=3D2>All without result.. </FONT></DIV>
> > <DIV><FONT face=3DTahoma size=3D2>Finally, i checked using the Jaguar =
> >Manager if=20
> > the lookups really worked (instances active, pooled) but both are =
> >zero, so=20
> > something must be going wrong at serverside. I can't imagine what=20
> > really..</FONT></DIV>
> > <DIV><FONT face=3DTahoma size=3D2>So basically, the lookup call =
> >reaches the=20
> > server, the server however cannot find it? instantiate it because what
=
> >is=20
> > returned is not valid (checked this by using a Powerobject instead of =
> >a=20
> > SessionMgmtSessionHome-instance to receive what was =
> >returned).</FONT></DIV>
> > <DIV><FONT face=3DTahoma size=3D2></FONT>&nbsp;</DIV>
> > <DIV><FONT face=3DTahoma size=3D2>I was looking for a way to get more =
> >information=20
> > about this ClassCastException like getting hold of the stacktrace but =
> >it=20
> > doesn't seem possible for the PB-class Exception.</FONT></DIV>
> > <DIV><FONT face=3DTahoma size=3D2>Also wondered what the=20
> > sesisonmgmtsession_ejb_pb_mapping structure is used for exactly. =
> >Difficult to=20
> > say whether sth is wrong with that and if it could lead to such an=20
> > error.</FONT></DIV>
> > <DIV><FONT face=3DTahoma size=3D2></FONT>&nbsp;</DIV>
> > <DIV><FONT face=3DTahoma size=3D2>Pity that not more is mentioned in =
> >the Help or=20
> > anything.</FONT></DIV>
> > <DIV><FONT face=3DTahoma size=3D2></FONT>&nbsp;</DIV>
> > <DIV><FONT face=3DTahoma size=3D2>Ben</FONT></DIV>
> > <DIV><FONT face=3DTahoma size=3D2></FONT>&nbsp;</DIV>
> > <DIV><FONT face=3DTahoma size=3D2>PS: Connecting to the same package =
> >&amp; classes=20
> > using CORBA does work, so i think nothing is wrong with the=20
> > components..</FONT></DIV>
> > <DIV><FONT face=3DTahoma size=3D2></FONT>&nbsp;</DIV>
> > <DIV><FONT face=3DTahoma size=3D2>"bede" &lt;</FONT><A=20
> > href=3D"mailto:bede@nospam.sofico.be"><FONT face=3DTahoma=20
> > size=3D2>bede@nospam.sofico.be</FONT></A><FONT face=3DTahoma =
> >size=3D2>&gt; wrote in=20
> > message </FONT><A href=3D"news:3f40daac@forums-2-dub"><FONT =
> >face=3DTahoma=20
> > size=3D2>news:3f40daac@forums-2-dub</FONT></A><FONT face=3DTahoma=20
> > size=3D2>...</FONT></DIV><FONT face=3DTahoma size=3D2>&gt; thanks.. =
> >nothing in the=20
> > logfile indeed..<BR>&gt; i suppose i shd be doing some more=20
> > classpath-digging<BR>&gt; <BR>&gt; <BR>&gt; "Jim O'Neil [Sybase]"=20
> > &lt;</FONT><A href=3D"mailto:joneil@sybase.com"><FONT face=3DTahoma=20
> > size=3D2>joneil@sybase.com</FONT></A><FONT face=3DTahoma size=3D2>&gt;
=
> >wrote in=20
> > message<BR>&gt; </FONT><A =
> >href=3D"news:3f40d298.6399111@forums.sybase.com"><FONT=20
> > face=3DTahoma =
> >size=3D2>news:3f40d298.6399111@forums.sybase.com</FONT></A><FONT=20
> > face=3DTahoma size=3D2>...<BR>&gt; &gt; 1.&nbsp; The ConnectToServer =
> >method=20
> > encapsulates the creation of a new<BR>&gt; &gt; InitialContext object =
> >in=20
> > Java:<BR>&gt; &gt;<BR>&gt; &gt; Context context =3D new=20
> > InitialContext(properties);<BR>&gt; &gt;<BR>&gt; &gt;&nbsp; Whether or
=
> >not=20
> > that actually involves communicating with the server<BR>&gt; &gt; =
> >depends on=20
> > the application server itself.&nbsp; EAServer does not send<BR>&gt; =
> >&gt;=20
> > anything across the wire, WebSphere and WebLogic in my experiences =
> >do.<BR>&gt;=20
> > &gt;<BR>&gt; &gt; 2. Is it possible the JNDI name is not what you=20
> > expect?&nbsp; Is there a<BR>&gt; &gt; message in the EAServer log file
=
> >that a=20
> > component was not found?&nbsp; If<BR>&gt; &gt; not, then it would =
> >appear that=20
> > the request didn't reach the server and<BR>&gt; &gt; perhaps something
=
> >is=20
> > missing on the client?<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt;&nbsp; On
=
> >18 Aug=20
> > 2003 02:05:58 -0700, "bede" &lt;</FONT><A=20
> > href=3D"mailto:bede@nospam.sofico.be"><FONT face=3DTahoma=20
> > size=3D2>bede@nospam.sofico.be</FONT></A><FONT face=3DTahoma =
> >size=3D2>&gt;=20
> > wrote:<BR>&gt; &gt;<BR>&gt; &gt; &gt;This is a multi-part message in =
> >MIME=20
> > format.<BR>&gt; &gt; &gt;<BR>&gt; &gt;=20
> > &gt;------=3D_NextPart_000_0119_01C36578.A0779BE0<BR>&gt; &gt; =
> >&gt;Content-Type:=20
> > text/plain;<BR>&gt; &gt; &gt; charset=3D"iso-8859-1"<BR>&gt; &gt;=20
> > &gt;Content-Transfer-Encoding: quoted-printable<BR>&gt; &gt; =
> >&gt;<BR>&gt; &gt;=20
> > &gt;Hi all,<BR>&gt; &gt; &gt;<BR>&gt; &gt; &gt;Got the ejb2pb90 =
> >working now..=20
> > a matter of classpaths and system =3D<BR>&gt; &gt; =
> >&gt;settings.<BR>&gt; &gt;=20
> > &gt;Anyway, after installing and trying the HelloWorld example, i =
> >wanted to=20
> > =3D<BR>&gt; &gt; &gt;try our own EJBs.<BR>&gt; &gt; &gt;Deployed =
> >everything to=20
> > EAS 4.2, tested it using our CORBA client so i'm =3D<BR>&gt; &gt; =
> >&gt;sure it's=20
> > up and running.=3D20<BR>&gt; &gt; &gt;<BR>&gt; &gt; &gt;2 issues =
> >here:<BR>&gt;=20
> > &gt; &gt;<BR>&gt; &gt; &gt;1. Connection to the server shows as ok, =
> >even when=20
> > the server itself was<BR>&gt; =3D<BR>&gt; &gt; &gt;switched-off ?!!=20
> > Output:<BR>&gt; &gt; &gt;Connecting to the EJB Server<BR>&gt; &gt;=20
> > &gt;----------------------------<BR>&gt; &gt; &gt;Successfully =
> >connected to=20
> > server at iiop://pcintegr2:9000<BR>&gt; &gt; &gt;<BR>&gt; &gt;=20
> > &gt;Properties<BR>&gt; &gt; &gt;----------<BR>&gt; &gt;=20
> > =
>
>&gt;INITIAL_CONTEXT_FACTORY=3D3Dcom.sybase.ejb.InitialContextFactory<BR>&=
> >gt;=20
> > &gt; &gt;PROVIDER_URL=3D3Diiop://pcintegr2:9000<BR>&gt; &gt;=20
> > &gt;SECURITY_PRINCIPAL=3D3Djagadmin<BR>&gt; &gt;=20
> > &gt;SECURITY_CREDENTIALS=3D3D<BR>&gt; &gt; &gt;<BR>&gt; &gt; &gt;If =
> >it's not=20
> > actually connecting to the server, what does it really do?<BR>&gt; =
> >&gt;=20
> > &gt;<BR>&gt; &gt; &gt;2. The LookUp of the EJB Home (for an =
> >up-and-running=20
> > server ;-)) fails. =3D<BR>&gt; &gt; &gt;Output:<BR>&gt; &gt; =
> >&gt;<BR>&gt; &gt;=20
> > &gt;Looking Up An EJB<BR>&gt; &gt; &gt;-----------------<BR>&gt;
&gt;=20
> > &gt;Exception raised: Failed to lookup the EJB: =3D<BR>&gt; &gt;=20
> > &gt;be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSessionHome<BR>&gt;
=
> >&gt;=20
> > &gt;be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSessionHome<BR>&gt;
=
> >&gt;=20
> > &gt;<BR>&gt; &gt; &gt;When investigating the server (jaguar =
> >administrator) i=20
> > see that the =3D<BR>&gt; &gt; &gt;installed ejb for the HelloWorld =
> >example=20
> > (using the ear) is installed on<BR>&gt; =3D<BR>&gt; &gt; &gt;the =
> >server as a=20
> > Application, while the other EJBs are installed as a =3D<BR>&gt;
&gt;=20
> > &gt;package but not as a application. Where's the =
> >difference?=3D20<BR>&gt; &gt;=20
> > &gt;Could this be related to the lookup failing? why?=3D20<BR>&gt; =
> >&gt; &gt;As=20
> > always, any help is appreciated!<BR>&gt; &gt; &gt;<BR>&gt; &gt;=20
> > &gt;Ben.<BR>&gt; &gt; =
> >&gt;------=3D_NextPart_000_0119_01C36578.A0779BE0<BR>&gt;=20
> > &gt; &gt;Content-Type: text/html;<BR>&gt; &gt; &gt;=20
> > charset=3D"iso-8859-1"<BR>&gt; &gt; &gt;Content-Transfer-Encoding:=20
> > quoted-printable<BR>&gt; &gt; &gt;<BR>&gt; &gt; &gt;&lt;!DOCTYPE HTML =
> >PUBLIC=20
> > "-//W3C//DTD HTML 4.0 Transitional//EN"&gt;<BR>&gt; &gt;=20
> > &gt;&lt;HTML&gt;&lt;HEAD&gt;<BR>&gt; &gt; &gt;&lt;META=20
> > http-equiv=3D3DContent-Type content=3D3D"text/html; =3D<BR>&gt; &gt;=20
> > &gt;charset=3D3Diso-8859-1"&gt;<BR>&gt; &gt; &gt;&lt;META =
> >content=3D3D"MSHTML=20
> > 6.00.2800.1170" name=3D3DGENERATOR&gt;<BR>&gt; &gt;=20
> > &gt;&lt;STYLE&gt;&lt;/STYLE&gt;<BR>&gt; &gt; &gt;&lt;/HEAD&gt;<BR>&gt;
=
> >&gt;=20
> > &gt;&lt;BODY&gt;<BR>&gt; &gt; &gt;&lt;DIV&gt;&lt;FONT
face=3D3DTahoma=20
> > size=3D3D2&gt;Hi all,&lt;/FONT&gt;&lt;/DIV&gt;<BR>&gt; &gt;=20
> > &gt;&lt;DIV&gt;&lt;FONT face=3D3DTahoma=20
> > size=3D3D2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;<BR>&gt; &gt;=20
> > &gt;&lt;DIV&gt;&lt;FONT face=3D3DTahoma size=3D3D2&gt;Got the ejb2pb90
=
> >working=20
> > now.. a =3D<BR>&gt; &gt; &gt;matter of=3D20<BR>&gt; &gt; =
> >&gt;classpaths and system=20
> > settings.&lt;/FONT&gt;&lt;/DIV&gt;<BR>&gt; &gt; =
> >&gt;&lt;DIV&gt;&lt;FONT=20
> > face=3D3DTahoma size=3D3D2&gt;Anyway, after installing and trying =
> >=3D<BR>&gt; &gt;=20
> > &gt;the HelloWorld=3D20<BR>&gt; &gt; &gt;example, i wanted to try our =
> >own=20
> > EJBs.&lt;/FONT&gt;&lt;/DIV&gt;<BR>&gt; &gt; &gt;&lt;DIV&gt;&lt;FONT=20
> > face=3D3DTahoma size=3D3D2&gt;Deployed everything to EAS 4.2, =
> >tested<BR>&gt;=20
> > =3D<BR>&gt; &gt; &gt;it using=3D20<BR>&gt; &gt; &gt;our CORBA client =
> >so i'm sure=20
> > it's up and running. &lt;/FONT&gt;&lt;/DIV&gt;<BR>&gt; &gt;=20
> > &gt;&lt;DIV&gt;&lt;FONT face=3D3DTahoma=20
> > size=3D3D2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;<BR>&gt; &gt;=20
> > &gt;&lt;DIV&gt;&lt;FONT face=3D3DTahoma size=3D3D2&gt;2 issues=20
> > here:&lt;/FONT&gt;&lt;/DIV&gt;<BR>&gt; &gt; &gt;&lt;DIV&gt;&lt;FONT=20
> > face=3D3DTahoma =
> >size=3D3D2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;<BR>&gt; &gt;=20
> > &gt;&lt;DIV&gt;&lt;FONT face=3D3DTahoma =
> >size=3D3D2&gt;1.&amp;nbsp;Connection to=20
> > the =3D<BR>&gt; &gt; &gt;server&amp;nbsp;shows as ok,=3D20<BR>&gt; =
> >&gt; &gt;even=20
> > when the server itself was switched-off ?!!=20
> > Output:&lt;/FONT&gt;&lt;/DIV&gt;<BR>&gt; &gt;
&gt;&lt;DIV&gt;&lt;FONT=20
> > face=3D3DTerminal size=3D3D2&gt;Connecting to the EJB=3D20<BR>&gt; =
> >&gt;=20
> > &gt;Server&lt;BR&gt;----------------------------&lt;BR&gt;Successfully
=
> >
> > connected to =3D<BR>&gt; &gt; &gt;server at=3D20<BR>&gt; &gt;=20
> > &gt;iiop://pcintegr2:9000&lt;/FONT&gt;&lt;/DIV&gt;<BR>&gt; &gt;=20
> > &gt;&lt;DIV&gt;&lt;FONT face=3D3DTerminal=20
> > size=3D3D2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;<BR>&gt; &gt;=20
> > &gt;&lt;DIV&gt;&lt;FONT face=3D3DTerminal=3D20<BR>&gt; &gt;<BR>&gt;=20
> > =
>
>&gt;size=3D3D2&gt;Properties&lt;BR&gt;----------&lt;BR&gt;INITIAL_CONTEXT=
> >_FACTORY=3D3Dcom.sybase=3D<BR>&gt;=20
> > &gt;<BR>&gt;=20
> > =
>
>&gt;.ejb.InitialContextFactory&lt;BR&gt;PROVIDER_URL=3D3Diiop://pcintegr2=
> >:9000&lt;BR&gt;SEC=3D<BR>&gt;=20
> > &gt;=20
> > =
>
>&gt;URITY_PRINCIPAL=3D3Djagadmin&lt;BR&gt;SECURITY_CREDENTIALS=3D3D&lt;/F=
> >ONT&gt;&lt;/DIV&gt;<BR>&gt;=20
> > &gt; &gt;&lt;DIV&gt;&lt;FONT face=3D3DTahoma=20
> > size=3D3D2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;<BR>&gt; &gt;=20
> > &gt;&lt;DIV&gt;&lt;FONT face=3D3DTahoma size=3D3D2&gt;If it's not =
> >actually=20
> > connecting to the<BR>&gt; =3D<BR>&gt; &gt; &gt;server,=3D20<BR>&gt; =
> >&gt; &gt;what=20
> > does it really do?&lt;/FONT&gt;&lt;/DIV&gt;<BR>&gt; &gt;=20
> > &gt;&lt;DIV&gt;&lt;FONT face=3D3DTahoma=20
> > size=3D3D2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;<BR>&gt; &gt;=20
> > &gt;&lt;DIV&gt;&lt;FONT face=3D3DTahoma size=3D3D2&gt;2. The LookUp of
=
> >the EJB=20
> > Home (for<BR>&gt; an=3D20<BR>&gt; &gt; &gt;up-and-running server ;-)) =
> >fails.=20
> > Output:&lt;/FONT&gt;&lt;/DIV&gt;<BR>&gt; &gt;
&gt;&lt;DIV&gt;&lt;FONT=20
> > face=3D3DTahoma =
> >size=3D3D2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;<BR>&gt; &gt;=20
> > &gt;&lt;DIV&gt;&lt;FONT face=3D3DTerminal size=3D3D2&gt;Looking Up =
> >An=3D20<BR>&gt;=20
> > &gt; &gt;EJB&lt;BR&gt;-----------------&lt;BR&gt;Exception raised: =
> >Failed to=20
> > lookup the<BR>&gt; EJB:=3D20<BR>&gt; &gt;<BR>&gt;=20
> > =
>
>&gt;be.sofico.basecamp.sess.sessionmgmt.SessionMgmtSessionHome&lt;BR&gt;b=
> >e.sofico.b=3D<BR>&gt;=20
> > &gt;=20
> > =
>
>&gt;asecamp.sess.sessionmgmt.SessionMgmtSessionHome&lt;/FONT&gt;&lt;/DIV&=
> >gt;<BR>&gt;=20
> > &gt; &gt;&lt;DIV&gt;&lt;FONT face=3D3DTahoma=20
> > size=3D3D2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;<BR>&gt; &gt;=20
> > &gt;&lt;DIV&gt;&lt;FONT face=3D3DTahoma size=3D3D2&gt;When =
> >investigating the=20
> > server<BR>&gt; (jaguar=3D20<BR>&gt; &gt; &gt;administrator) i see that
=
> >the=20
> > installed ejb for the HelloWorld example =3D<BR>&gt; &gt; =
> >&gt;(using=3D20<BR>&gt;=20
> > &gt; &gt;the ear) is installed on the server as a Application, while =
> >the other=20
> > =3D<BR>&gt; &gt; &gt;EJBs are=3D20<BR>&gt; &gt; &gt;installed as a =
> >package but not=20
> > as a application. Where's the difference?<BR>&gt; =3D<BR>&gt; &gt; =
> >&gt;<BR>&gt;=20
> > &gt; &gt;&lt;/FONT&gt;&lt;/DIV&gt;<BR>&gt; &gt; =
> >&gt;&lt;DIV&gt;&lt;FONT=20
> > face=3D3DTahoma size=3D3D2&gt;Could this be related to the lookup =
> >=3D<BR>&gt; &gt;=20
> > &gt;failing? why?=3D20<BR>&gt; &gt; =
> >&gt;&lt;/FONT&gt;&lt;/DIV&gt;<BR>&gt; &gt;=20
> > &gt;&lt;DIV&gt;&lt;FONT face=3D3DTahoma size=3D3D2&gt;As always, any =
> >help is=20
> > =3D<BR>&gt; &gt; &gt;appreciated!&lt;/FONT&gt;&lt;/DIV&gt;<BR>&gt; =
> >&gt;=20
> > &gt;&lt;DIV&gt;&lt;FONT face=3D3DTahoma=20
> > size=3D3D2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;<BR>&gt; &gt;=20
> > &gt;&lt;DIV&gt;&lt;FONT face=3D3DTahoma=20
> > =
>
>size=3D3D2&gt;Ben.&lt;/FONT&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;<BR>=
> >&gt;=20
> > &gt; &gt;<BR>&gt; &gt;=20
> > &gt;------=3D_NextPart_000_0119_01C36578.A0779BE0--<BR>&gt; &gt; =
> >&gt;<BR>&gt;=20
> > &gt;<BR>&gt; &gt; Jim O'Neil<BR>&gt; &gt; Principal Technical
Support=20
> > Engineer<BR>&gt; &gt; Sybase, Inc.<BR>&gt; &gt; Concord, MA<BR>&gt; =
> ><BR>&gt;=20
> > </FONT></BLOCKQUOTE></BODY></HTML>
> >
> >------=_NextPart_000_0033_01C3672D.CEC76870--
> >
>
> Jim O'Neil
> Principal Technical Support Engineer
> Sybase, Inc.
> Concord, MA