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.

Connecting to Jaguar

3 posts in General Discussion (old) Last posting was on 2000-03-22 17:51:38.0Z
Ken Halbert Posted on 2000-03-22 13:15:01.0Z
Newsgroups: sybase.public.easerver
Reply-To: "Ken Halbert" <kenbh@abac.com>
From: "Ken Halbert" <kenbh@abac.com>
Subject: Connecting to Jaguar
Date: Wed, 22 Mar 2000 06:15:01 -0700
Lines: 49
Organization: TCI
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
NNTP-Posting-Host: 71.pao-den900.pool.eni.net 155.229.132.71
Message-ID: <347_aODhrCAl$GA.298@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:25941
Article PK: 155969

I have Jaguar 3.5 running on NT 4.0 SP5. I can connect to Jaguar via
PowerBuilder and C++ clients running on the same machine, as well as via ASP
in IIS (by exporting/registering a typelib...). However, when trying to
connect via a Java applet or application, the follwing SystemException is
thrown:
"org.omg.CORBA.INV_OBJREF: Bad URL - iiop://localhost:9000" (application)
"org.omg.CORBA.INV_OBJREF: Bad URL - iiop://:9000" (applet)

Here's the code:

// Connect to ORB.
private boolean instantiateCORBAComponent(String userID, String
userPassword)
{
String args[] = null;
java.util.Properties props = new java.util.Properties();
NamingContext namingContext = null;
org.omg.CORBA.Object objRef = null;

props.put("org.omg.CORBA.ORBClass", this.corbaORB);
try
{
ORB orb = ORB.init(args, props);
objRef = orb.resolve_initial_references(this.corbaIOR);
namingContext = NamingContextHelper.narrow(objRef);
NameComponent compNc[] = {new NameComponent(this.componentName, "")};
Factory compFactory =
FactoryHelper.narrow(namingContext.resolve(compNc));
this.corbaComponent =
HTMLDataWindow.n_jaguar_serverHelper.narrow(compFactory.create(userID,
userPassword));
}
catch(NotFound nfe)
{
.
.
.

Possible clue: I cannot connect to Jaguar in PowerJ (running on the same
machine as Jaguar) when trying to deploy an EJB.

Ken Halbert
Analysts International
kenbh@abac.com


Dave Wolf [Sybase] Posted on 2000-03-22 17:51:38.0Z
Newsgroups: sybase.public.easerver
From: "Dave Wolf [Sybase]" <dwolf@sybase.com>
Subject: Re: Connecting to Jaguar
Date: Wed, 22 Mar 2000 12:51:38 -0500
Lines: 65
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
NNTP-Posting-Host: vpn-eme-071.sybase.com 130.214.8.71
Message-ID: <347_JIgllfCl$GA.285@forums.sybase.com>
References: <347_aODhrCAl$GA.298@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:25910
Article PK: 155938

In short you need to make sure

1) You set the ORB property

com.sybase.CORBA.NameServiceURL = iiop://localhost:9000

2) Wen you resolve_initial_references you need to resolve "NameService"

Dave Wolf
Internet Applications Division

"Ken Halbert" <kenbh@abac.com> wrote in message
news:aODhrCAl$GA.298@forums.sybase.com...
> I have Jaguar 3.5 running on NT 4.0 SP5. I can connect to Jaguar via
> PowerBuilder and C++ clients running on the same machine, as well as via
ASP
> in IIS (by exporting/registering a typelib...). However, when trying to
> connect via a Java applet or application, the follwing SystemException is
> thrown:
> "org.omg.CORBA.INV_OBJREF: Bad URL - iiop://localhost:9000" (application)
> "org.omg.CORBA.INV_OBJREF: Bad URL - iiop://:9000" (applet)
>
> Here's the code:
>
> // Connect to ORB.
> private boolean instantiateCORBAComponent(String userID, String
> userPassword)
> {
> String args[] = null;
> java.util.Properties props = new java.util.Properties();
> NamingContext namingContext = null;
> org.omg.CORBA.Object objRef = null;
>
> props.put("org.omg.CORBA.ORBClass", this.corbaORB);
> try
> {
> ORB orb = ORB.init(args, props);
> objRef = orb.resolve_initial_references(this.corbaIOR);
> namingContext = NamingContextHelper.narrow(objRef);
> NameComponent compNc[] = {new NameComponent(this.componentName, "")};
> Factory compFactory =
> FactoryHelper.narrow(namingContext.resolve(compNc));
> this.corbaComponent =
> HTMLDataWindow.n_jaguar_serverHelper.narrow(compFactory.create(userID,
> userPassword));
> }
> catch(NotFound nfe)
> {
> .
> .
> .
>
> Possible clue: I cannot connect to Jaguar in PowerJ (running on the same
> machine as Jaguar) when trying to deploy an EJB.
>
> Ken Halbert
> Analysts International
> kenbh@abac.com
>
>
>
>
>


Dave Wolf [Sybase] Posted on 2000-03-22 17:50:48.0Z
Newsgroups: sybase.public.easerver
From: "Dave Wolf [Sybase]" <dwolf@sybase.com>
Subject: Re: Connecting to Jaguar
Date: Wed, 22 Mar 2000 12:50:48 -0500
Lines: 60
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
NNTP-Posting-Host: vpn-eme-071.sybase.com 130.214.8.71
Message-ID: <347_Y7T2HfCl$GA.201@forums.sybase.com>
References: <347_aODhrCAl$GA.298@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:25911
Article PK: 155939

Can I see the code where you initialize the ORB and can I see the instance
members you refere to like this.corbaIOR?

Dave Wolf
Internet Applications Division

"Ken Halbert" <kenbh@abac.com> wrote in message
news:aODhrCAl$GA.298@forums.sybase.com...
> I have Jaguar 3.5 running on NT 4.0 SP5. I can connect to Jaguar via
> PowerBuilder and C++ clients running on the same machine, as well as via
ASP
> in IIS (by exporting/registering a typelib...). However, when trying to
> connect via a Java applet or application, the follwing SystemException is
> thrown:
> "org.omg.CORBA.INV_OBJREF: Bad URL - iiop://localhost:9000" (application)
> "org.omg.CORBA.INV_OBJREF: Bad URL - iiop://:9000" (applet)
>
> Here's the code:
>
> // Connect to ORB.
> private boolean instantiateCORBAComponent(String userID, String
> userPassword)
> {
> String args[] = null;
> java.util.Properties props = new java.util.Properties();
> NamingContext namingContext = null;
> org.omg.CORBA.Object objRef = null;
>
> props.put("org.omg.CORBA.ORBClass", this.corbaORB);
> try
> {
> ORB orb = ORB.init(args, props);
> objRef = orb.resolve_initial_references(this.corbaIOR);
> namingContext = NamingContextHelper.narrow(objRef);
> NameComponent compNc[] = {new NameComponent(this.componentName, "")};
> Factory compFactory =
> FactoryHelper.narrow(namingContext.resolve(compNc));
> this.corbaComponent =
> HTMLDataWindow.n_jaguar_serverHelper.narrow(compFactory.create(userID,
> userPassword));
> }
> catch(NotFound nfe)
> {
> .
> .
> .
>
> Possible clue: I cannot connect to Jaguar in PowerJ (running on the same
> machine as Jaguar) when trying to deploy an EJB.
>
> Ken Halbert
> Analysts International
> kenbh@abac.com
>
>
>
>
>