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.

Applet Client ORB Problems

9 posts in General Discussion (old) Last posting was on 2000-02-17 13:23:06.0Z
Arthur Fitt Posted on 2000-02-14 21:09:03.0Z
Newsgroups: sybase.public.easerver
Reply-To: "Arthur Fitt" <arthur.fitt@netregulus.com>
From: "Arthur Fitt" <arthur.fitt@netregulus.com>
Subject: Applet Client ORB Problems
Date: Mon, 14 Feb 2000 14:09:03 -0700
Lines: 24
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
NNTP-Posting-Host: 204.233.193.126
Message-ID: <347_M4fgLBzd$GA.327@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:28719
Article PK: 154707

I have a java applet connecting to EAServer using com.Sybase.CORBA.ORB and
the SessionMannager.Session objects.

I am using EAServer as my web server and have placed all of my objects in
the %Jaguar%/html/classes directory. The applet works great when a connect
from a web browser on my machine (the machine that EAServer is on). We are
using Sun 1.2.2 java plugin.

When a client from another machine tries to connect they get the following
error. org.omg.CORBA.INITIALIZE: can't instantiate default ORB
implementation com.Sybase.CORBA.ORB minor code: 0 completed: No.

Any ideas?

One more note I use %jaguar%/html/classes as the code base for my applet. Is
it correct that that path already includes all of the classes needed to run
my applet?

Arthur Fitt
Senior Application Developer
netRegulus
arthur.fitt@netregulus.com


Dave Wolf [Sybase] Posted on 2000-02-14 23:42:51.0Z
Newsgroups: sybase.public.easerver
From: "Dave Wolf [Sybase]" <dwolf@sybase.com>
Subject: Re: Applet Client ORB Problems
Date: Mon, 14 Feb 2000 18:42:51 -0500
Lines: 35
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
NNTP-Posting-Host: 158.159.8.63
Message-ID: <347_ROz#yW0d$GA.184@forums.sybase.com>
References: <347_M4fgLBzd$GA.327@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:28698
Article PK: 160821

Can I see your code please.

Dave Wolf
Internet Applications Division

Arthur Fitt <arthur.fitt@netregulus.com> wrote in message
news:M4fgLBzd$GA.327@forums.sybase.com...
> I have a java applet connecting to EAServer using com.Sybase.CORBA.ORB and
> the SessionMannager.Session objects.
>
> I am using EAServer as my web server and have placed all of my objects in
> the %Jaguar%/html/classes directory. The applet works great when a connect
> from a web browser on my machine (the machine that EAServer is on). We are
> using Sun 1.2.2 java plugin.
>
> When a client from another machine tries to connect they get the following
> error. org.omg.CORBA.INITIALIZE: can't instantiate default ORB
> implementation com.Sybase.CORBA.ORB minor code: 0 completed: No.
>
> Any ideas?
>
> One more note I use %jaguar%/html/classes as the code base for my applet.
Is
> it correct that that path already includes all of the classes needed to
run
> my applet?
>
> Arthur Fitt
> Senior Application Developer
> netRegulus
> arthur.fitt@netregulus.com
>
>


lliyang Posted on 2000-02-17 03:14:24.0Z
Newsgroups: sybase.public.easerver
From: "lliyang" <addd@21cn.com>
Subject: Applet Client ORB Problems
X-Newsreader: Microsoft Internet News 4.70.1155
Date: Wed, 16 Feb 2000 22:14:24 -0500
Lines: 6
NNTP-Posting-Host: gnet124.szptt.net.cn 202.96.191.124
Message-ID: <347_01bf78f4$23ad3350$0ddedede@a>
References: <347_M4fgLBzd$GA.327@forums.sybase.com> <347_ROz#yW0d$GA.184@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:28533
Article PK: 160681

I want to use IBM visual age java connect to Jaguar,
and the jaguar example has something like this:
import com.sybase.corba.*
But I can't find it in viausa age,is there any other way
to connect to jaguar with visual age?


Dave Wolf [Sybase] Posted on 2000-02-17 13:23:06.0Z
Newsgroups: sybase.public.easerver
From: "Dave Wolf [Sybase]" <dwolf@sybase.com>
Subject: Re: Applet Client ORB Problems
Date: Thu, 17 Feb 2000 08:23:06 -0500
Lines: 16
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
NNTP-Posting-Host: 157.133.176.60
Message-ID: <347_SGRTgqUe$GA.184@forums.sybase.com>
References: <347_M4fgLBzd$GA.327@forums.sybase.com> <347_ROz#yW0d$GA.184@forums.sybase.com> <347_01bf78f4$23ad3350$0ddedede@a>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:28521
Article PK: 160672

Just make sure that the %JAGUAR%\html\classes is in the CLASSPATH being used
by VisualAge.

Dave Wolf
Internet Applications Division

lliyang <addd@21cn.com> wrote in message
news:01bf78f4$23ad3350$0ddedede@a...
> I want to use IBM visual age java connect to Jaguar,
> and the jaguar example has something like this:
> import com.sybase.corba.*
> But I can't find it in viausa age,is there any other way
> to connect to jaguar with visual age?
>


Arthur Fitt Posted on 2000-02-15 14:24:19.0Z
Newsgroups: sybase.public.easerver
Reply-To: "Arthur Fitt" <arthur.fitt@netregulus.com>
From: "Arthur Fitt" <arthur.fitt@netregulus.com>
Subject: Re: Applet Client ORB Problems
Date: Tue, 15 Feb 2000 07:24:19 -0700
Lines: 246
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
NNTP-Posting-Host: 204.233.193.126
Message-ID: <347_EG1BtD8d$GA.324@forums.sybase.com>
References: <347_M4fgLBzd$GA.327@forums.sybase.com> <347_ROz#yW0d$GA.184@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:28663
Article PK: 160793

Here the code that connects the applet

/**
* @(#) ServerAccess.java
*/

package com.netregulus.client;

import java.util.Properties;
import com.netregulus.client.stubs.*;
import org.omg.CORBA.ORB;
import SessionManager.Manager;
import SessionManager.Session;
import SessionManager.ManagerHelper;


public class ServerAccess
{
static Session session;

/**
* Private constructor so class can not be instiated
*/

private void ServerAccess()
{
}

/**
* Return a CRFImpl object the reference an object on the application
server
*/
/*
public static CRFImpl getCRFImpl( )
{
return null;
}
*/
/**
* Indicates whether this object is connected to the application server.
*/
public static boolean isConnected( )
{
if (session == null)
return false;
else
return true;
}

/**
* Disconnect from the application server
*/
public static void logoff( )
{
session = null;
}

/**
* Connect to the application server
*/
public static void logon( String userName, String password, String url )
throws ServerAccessException
{
String args[] = null;
Properties props = new Properties();

// Initilized ORB
props.put("org.omg.CORBA.ORBClass","com.sybase.CORBA.ORB");
props.put("com.sybase.CORBA.RetryDelay", "1");
ORB orb = ORB.init(args, props);

try
{
Manager manager = ManagerHelper.narrow(orb.string_to_object(url));
session = manager.createSession(userName, password);
}
catch (org.omg.CORBA.COMM_FAILURE cf)
{
// The server is likely down or has run
// out of connections. You can retry the
// connection if desired.
// ... report the error ...
throw(new ServerAccessException("Server Down"));
}
catch (org.omg.CORBA.NO_PERMISSION np)
{
// Tell the user they are not authorized
//...
throw(new ServerAccessException("Not Authorized"));
}
catch (org.omg.CORBA.SystemException se)
{
// Catch-all clause for any CORBA system
// exception that was not explicitly caught
// above. Report the error but don't bother
// retrying.
throw(new ServerAccessException("Uncaught Error"));
}
}



public static CrfController getCrfController() throws
ServerAccessException
{
CrfController crfController = null;

if (!isConnected())
{
throw(new ServerAccessException("No Connection"));
}

try
{
CrfControllerHome home =
rfControllerHomeHelper.narrow( session.lookup("CrfController") );
crfController = home.create();
}
catch (org.omg.CORBA.OBJECT_NOT_EXIST one)
{
// Tell the user to contact the server
// administrator
//... report the error ...
throw(new ServerAccessException("Object does not exist"));
}
catch (org.omg.CORBA.NO_PERMISSION np)
{
// Tell the user they are not authorized
// ... report the error ...
throw(new ServerAccessException("Not authorized"));
}
catch (org.omg.CORBA.SystemException se)
{
// Catch-all clause for any CORBA system
// exception that was not explicitly caught
// above.
//... report the error ...
throw(new ServerAccessException("Uncaught Error"));
}
catch (CtsComponents.CreateException ce)
{
throw(new ServerAccessException("Create error"));
}

return crfController;
}
}

*************************************

And the web page - the codebase is %Jagauar%/html/classes

<!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN">

<HTML>
<HEAD>
<TITLE>Clinical Regulatory Enterprise System</TITLE>
<META NAME="author" CONTENT="netRegulus Copyright (c) 1998-2000">
<META NAME="description" CONTENT="">
<META NAME="keywords" CONTENT="">
</HEAD>

<BODY>
<CENTER>

<OBJECT CLASSID="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
WIDTH="630" HEIGHT="450" ALIGN="baseline"

CODEBASE="http://java.sun.com/products/plugin/1.2.2/jinstall-1_2_2-win.cab#V
ersion=1,2,2,0">
<PARAM NAME="code" VALUE="CRES.class">
<PARAM NAME="codebase" VALUE="../classes">
<PARAM NAME="type" VALUE="application/x-java-applet;version=1.2.2">
<PARAM NAME="scriptable" VALUE="true">
<PARAM NAME="SplashScreen" VALUE="">
<PARAM NAME="NameServer" VALUE="">
<PARAM NAME="Language" VALUE="">
<PARAM NAME="Country" VALUE="">
<PARAM NAME="Variant" VALUE="">
No JDK 1.2 support for APPLET!!
</OBJECT>
</CENTER>
</BODY>
</HTML>

Dave Wolf [Sybase] <dwolf@sybase.com> wrote in message
news:ROz#yW0d$GA.184@forums.sybase.com...
> Can I see your code please.
>
> Dave Wolf
> Internet Applications Division
>
> Arthur Fitt <arthur.fitt@netregulus.com> wrote in message
> news:M4fgLBzd$GA.327@forums.sybase.com...
> > I have a java applet connecting to EAServer using com.Sybase.CORBA.ORB
and
> > the SessionMannager.Session objects.
> >
> > I am using EAServer as my web server and have placed all of my objects
in
> > the %Jaguar%/html/classes directory. The applet works great when a
connect
> > from a web browser on my machine (the machine that EAServer is on). We
are
> > using Sun 1.2.2 java plugin.
> >
> > When a client from another machine tries to connect they get the
following
> > error. org.omg.CORBA.INITIALIZE: can't instantiate default ORB
> > implementation com.Sybase.CORBA.ORB minor code: 0 completed: No.
> >
> > Any ideas?
> >
> > One more note I use %jaguar%/html/classes as the code base for my
applet.
> Is
> > it correct that that path already includes all of the classes needed to
> run
> > my applet?
> >
> > Arthur Fitt
> > Senior Application Developer
> > netRegulus
> > arthur.fitt@netregulus.com
> >
> >
>
>


Dave Wolf [Sybase] Posted on 2000-02-15 15:48:12.0Z
Newsgroups: sybase.public.easerver
From: "Dave Wolf [Sybase]" <dwolf@sybase.com>
Subject: Re: Applet Client ORB Problems
Date: Tue, 15 Feb 2000 10:48:12 -0500
Lines: 258
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
NNTP-Posting-Host: dwolf-nt.sybase.com 157.133.40.74
Message-ID: <347_vm4aOy8d$GA.223@forums.sybase.com>
References: <347_M4fgLBzd$GA.327@forums.sybase.com> <347_ROz#yW0d$GA.184@forums.sybase.com> <347_EG1BtD8d$GA.324@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:28652
Article PK: 154699

What I find curious is that the HTML page doesnt show the CODEBASE is set to
%JAGUAR%\html\classes.

Dave Wolf
Internet Applications Division

Arthur Fitt <arthur.fitt@netregulus.com> wrote in message
news:EG1BtD8d$GA.324@forums.sybase.com...
> Here the code that connects the applet
>
> /**
> * @(#) ServerAccess.java
> */
>
> package com.netregulus.client;
>
> import java.util.Properties;
> import com.netregulus.client.stubs.*;
> import org.omg.CORBA.ORB;
> import SessionManager.Manager;
> import SessionManager.Session;
> import SessionManager.ManagerHelper;
>
>
> public class ServerAccess
> {
> static Session session;
>
> /**
> * Private constructor so class can not be instiated
> */
>
> private void ServerAccess()
> {
> }
>
> /**
> * Return a CRFImpl object the reference an object on the application
> server
> */
> /*
> public static CRFImpl getCRFImpl( )
> {
> return null;
> }
> */
> /**
> * Indicates whether this object is connected to the application server.
> */
> public static boolean isConnected( )
> {
> if (session == null)
> return false;
> else
> return true;
> }
>
> /**
> * Disconnect from the application server
> */
> public static void logoff( )
> {
> session = null;
> }
>
> /**
> * Connect to the application server
> */
> public static void logon( String userName, String password, String url )
> throws ServerAccessException
> {
> String args[] = null;
> Properties props = new Properties();
>
> // Initilized ORB
> props.put("org.omg.CORBA.ORBClass","com.sybase.CORBA.ORB");
> props.put("com.sybase.CORBA.RetryDelay", "1");
> ORB orb = ORB.init(args, props);
>
> try
> {
> Manager manager = ManagerHelper.narrow(orb.string_to_object(url));
> session = manager.createSession(userName, password);
> }
> catch (org.omg.CORBA.COMM_FAILURE cf)
> {
> // The server is likely down or has run
> // out of connections. You can retry the
> // connection if desired.
> // ... report the error ...
> throw(new ServerAccessException("Server Down"));
> }
> catch (org.omg.CORBA.NO_PERMISSION np)
> {
> // Tell the user they are not authorized
> //...
> throw(new ServerAccessException("Not Authorized"));
> }
> catch (org.omg.CORBA.SystemException se)
> {
> // Catch-all clause for any CORBA system
> // exception that was not explicitly caught
> // above. Report the error but don't bother
> // retrying.
> throw(new ServerAccessException("Uncaught Error"));
> }
> }
>
>
>
> public static CrfController getCrfController() throws
> ServerAccessException
> {
> CrfController crfController = null;
>
> if (!isConnected())
> {
> throw(new ServerAccessException("No Connection"));
> }
>
> try
> {
> CrfControllerHome home =
> rfControllerHomeHelper.narrow( session.lookup("CrfController") );
> crfController = home.create();
> }
> catch (org.omg.CORBA.OBJECT_NOT_EXIST one)
> {
> // Tell the user to contact the server
> // administrator
> //... report the error ...
> throw(new ServerAccessException("Object does not exist"));
> }
> catch (org.omg.CORBA.NO_PERMISSION np)
> {
> // Tell the user they are not authorized
> // ... report the error ...
> throw(new ServerAccessException("Not authorized"));
> }
> catch (org.omg.CORBA.SystemException se)
> {
> // Catch-all clause for any CORBA system
> // exception that was not explicitly caught
> // above.
> //... report the error ...
> throw(new ServerAccessException("Uncaught Error"));
> }
> catch (CtsComponents.CreateException ce)
> {
> throw(new ServerAccessException("Create error"));
> }
>
> return crfController;
> }
> }
>
> *************************************
>
> And the web page - the codebase is %Jagauar%/html/classes
>
> <!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN">
>
> <HTML>
> <HEAD>
> <TITLE>Clinical Regulatory Enterprise System</TITLE>
> <META NAME="author" CONTENT="netRegulus Copyright (c) 1998-2000">
> <META NAME="description" CONTENT="">
> <META NAME="keywords" CONTENT="">
> </HEAD>
>
> <BODY>
> <CENTER>
>
> <OBJECT CLASSID="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
> WIDTH="630" HEIGHT="450" ALIGN="baseline"
>
>
CODEBASE="http://java.sun.com/products/plugin/1.2.2/jinstall-1_2_2-win.cab#V
> ersion=1,2,2,0">
> <PARAM NAME="code" VALUE="CRES.class">
> <PARAM NAME="codebase" VALUE="../classes">
> <PARAM NAME="type" VALUE="application/x-java-applet;version=1.2.2">
> <PARAM NAME="scriptable" VALUE="true">
> <PARAM NAME="SplashScreen" VALUE="">
> <PARAM NAME="NameServer" VALUE="">
> <PARAM NAME="Language" VALUE="">
> <PARAM NAME="Country" VALUE="">
> <PARAM NAME="Variant" VALUE="">
> No JDK 1.2 support for APPLET!!
> </OBJECT>
> </CENTER>
> </BODY>
> </HTML>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> Dave Wolf [Sybase] <dwolf@sybase.com> wrote in message
> news:ROz#yW0d$GA.184@forums.sybase.com...
> > Can I see your code please.
> >
> > Dave Wolf
> > Internet Applications Division
> >
> > Arthur Fitt <arthur.fitt@netregulus.com> wrote in message
> > news:M4fgLBzd$GA.327@forums.sybase.com...
> > > I have a java applet connecting to EAServer using com.Sybase.CORBA.ORB
> and
> > > the SessionMannager.Session objects.
> > >
> > > I am using EAServer as my web server and have placed all of my objects
> in
> > > the %Jaguar%/html/classes directory. The applet works great when a
> connect
> > > from a web browser on my machine (the machine that EAServer is on). We
> are
> > > using Sun 1.2.2 java plugin.
> > >
> > > When a client from another machine tries to connect they get the
> following
> > > error. org.omg.CORBA.INITIALIZE: can't instantiate default ORB
> > > implementation com.Sybase.CORBA.ORB minor code: 0 completed: No.
> > >
> > > Any ideas?
> > >
> > > One more note I use %jaguar%/html/classes as the code base for my
> applet.
> > Is
> > > it correct that that path already includes all of the classes needed
to
> > run
> > > my applet?
> > >
> > > Arthur Fitt
> > > Senior Application Developer
> > > netRegulus
> > > arthur.fitt@netregulus.com
> > >
> > >
> >
> >
>
>


Arthur Fitt Posted on 2000-02-15 19:24:05.0Z
Newsgroups: sybase.public.easerver
Reply-To: "Arthur Fitt" <arthur.fitt@netregulus.com>
From: "Arthur Fitt" <arthur.fitt@netregulus.com>
Subject: Re: Applet Client ORB Problems
Date: Tue, 15 Feb 2000 12:24:05 -0700
Lines: 276
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
NNTP-Posting-Host: 204.233.193.126
Message-ID: <347_vld#Nr#d$GA.184@forums.sybase.com>
References: <347_M4fgLBzd$GA.327@forums.sybase.com> <347_ROz#yW0d$GA.184@forums.sybase.com> <347_EG1BtD8d$GA.324@forums.sybase.com> <347_vm4aOy8d$GA.223@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:28636
Article PK: 160772

It is set with this parameter
<PARAM NAME="codebase" VALUE="../classes">

my html page appears in %Jaguar%/html/cres.html

Arthur

Dave Wolf [Sybase] <dwolf@sybase.com> wrote in message
news:vm4aOy8d$GA.223@forums.sybase.com...
> What I find curious is that the HTML page doesnt show the CODEBASE is set
to
> %JAGUAR%\html\classes.
>
> Dave Wolf
> Internet Applications Division
>
> Arthur Fitt <arthur.fitt@netregulus.com> wrote in message
> news:EG1BtD8d$GA.324@forums.sybase.com...
> > Here the code that connects the applet
> >
> > /**
> > * @(#) ServerAccess.java
> > */
> >
> > package com.netregulus.client;
> >
> > import java.util.Properties;
> > import com.netregulus.client.stubs.*;
> > import org.omg.CORBA.ORB;
> > import SessionManager.Manager;
> > import SessionManager.Session;
> > import SessionManager.ManagerHelper;
> >
> >
> > public class ServerAccess
> > {
> > static Session session;
> >
> > /**
> > * Private constructor so class can not be instiated
> > */
> >
> > private void ServerAccess()
> > {
> > }
> >
> > /**
> > * Return a CRFImpl object the reference an object on the application
> > server
> > */
> > /*
> > public static CRFImpl getCRFImpl( )
> > {
> > return null;
> > }
> > */
> > /**
> > * Indicates whether this object is connected to the application
server.
> > */
> > public static boolean isConnected( )
> > {
> > if (session == null)
> > return false;
> > else
> > return true;
> > }
> >
> > /**
> > * Disconnect from the application server
> > */
> > public static void logoff( )
> > {
> > session = null;
> > }
> >
> > /**
> > * Connect to the application server
> > */
> > public static void logon( String userName, String password, String
url )
> > throws ServerAccessException
> > {
> > String args[] = null;
> > Properties props = new Properties();
> >
> > // Initilized ORB
> > props.put("org.omg.CORBA.ORBClass","com.sybase.CORBA.ORB");
> > props.put("com.sybase.CORBA.RetryDelay", "1");
> > ORB orb = ORB.init(args, props);
> >
> > try
> > {
> > Manager manager = ManagerHelper.narrow(orb.string_to_object(url));
> > session = manager.createSession(userName, password);
> > }
> > catch (org.omg.CORBA.COMM_FAILURE cf)
> > {
> > // The server is likely down or has run
> > // out of connections. You can retry the
> > // connection if desired.
> > // ... report the error ...
> > throw(new ServerAccessException("Server Down"));
> > }
> > catch (org.omg.CORBA.NO_PERMISSION np)
> > {
> > // Tell the user they are not authorized
> > //...
> > throw(new ServerAccessException("Not Authorized"));
> > }
> > catch (org.omg.CORBA.SystemException se)
> > {
> > // Catch-all clause for any CORBA system
> > // exception that was not explicitly caught
> > // above. Report the error but don't bother
> > // retrying.
> > throw(new ServerAccessException("Uncaught Error"));
> > }
> > }
> >
> >
> >
> > public static CrfController getCrfController() throws
> > ServerAccessException
> > {
> > CrfController crfController = null;
> >
> > if (!isConnected())
> > {
> > throw(new ServerAccessException("No Connection"));
> > }
> >
> > try
> > {
> > CrfControllerHome home =
> > rfControllerHomeHelper.narrow( session.lookup("CrfController") );
> > crfController = home.create();
> > }
> > catch (org.omg.CORBA.OBJECT_NOT_EXIST one)
> > {
> > // Tell the user to contact the server
> > // administrator
> > //... report the error ...
> > throw(new ServerAccessException("Object does not exist"));
> > }
> > catch (org.omg.CORBA.NO_PERMISSION np)
> > {
> > // Tell the user they are not authorized
> > // ... report the error ...
> > throw(new ServerAccessException("Not authorized"));
> > }
> > catch (org.omg.CORBA.SystemException se)
> > {
> > // Catch-all clause for any CORBA system
> > // exception that was not explicitly caught
> > // above.
> > //... report the error ...
> > throw(new ServerAccessException("Uncaught Error"));
> > }
> > catch (CtsComponents.CreateException ce)
> > {
> > throw(new ServerAccessException("Create error"));
> > }
> >
> > return crfController;
> > }
> > }
> >
> > *************************************
> >
> > And the web page - the codebase is %Jagauar%/html/classes
> >
> > <!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN">
> >
> > <HTML>
> > <HEAD>
> > <TITLE>Clinical Regulatory Enterprise System</TITLE>
> > <META NAME="author" CONTENT="netRegulus Copyright (c) 1998-2000">
> > <META NAME="description" CONTENT="">
> > <META NAME="keywords" CONTENT="">
> > </HEAD>
> >
> > <BODY>
> > <CENTER>
> >
> > <OBJECT CLASSID="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
> > WIDTH="630" HEIGHT="450" ALIGN="baseline"
> >
> >
>
CODEBASE="http://java.sun.com/products/plugin/1.2.2/jinstall-1_2_2-win.cab#V
> > ersion=1,2,2,0">
> > <PARAM NAME="code" VALUE="CRES.class">
> > <PARAM NAME="codebase" VALUE="../classes">
> > <PARAM NAME="type" VALUE="application/x-java-applet;version=1.2.2">
> > <PARAM NAME="scriptable" VALUE="true">
> > <PARAM NAME="SplashScreen" VALUE="">
> > <PARAM NAME="NameServer" VALUE="">
> > <PARAM NAME="Language" VALUE="">
> > <PARAM NAME="Country" VALUE="">
> > <PARAM NAME="Variant" VALUE="">
> > No JDK 1.2 support for APPLET!!
> > </OBJECT>
> > </CENTER>
> > </BODY>
> > </HTML>
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > Dave Wolf [Sybase] <dwolf@sybase.com> wrote in message
> > news:ROz#yW0d$GA.184@forums.sybase.com...
> > > Can I see your code please.
> > >
> > > Dave Wolf
> > > Internet Applications Division
> > >
> > > Arthur Fitt <arthur.fitt@netregulus.com> wrote in message
> > > news:M4fgLBzd$GA.327@forums.sybase.com...
> > > > I have a java applet connecting to EAServer using
com.Sybase.CORBA.ORB
> > and
> > > > the SessionMannager.Session objects.
> > > >
> > > > I am using EAServer as my web server and have placed all of my
objects
> > in
> > > > the %Jaguar%/html/classes directory. The applet works great when a
> > connect
> > > > from a web browser on my machine (the machine that EAServer is on).
We
> > are
> > > > using Sun 1.2.2 java plugin.
> > > >
> > > > When a client from another machine tries to connect they get the
> > following
> > > > error. org.omg.CORBA.INITIALIZE: can't instantiate default ORB
> > > > implementation com.Sybase.CORBA.ORB minor code: 0 completed: No.
> > > >
> > > > Any ideas?
> > > >
> > > > One more note I use %jaguar%/html/classes as the code base for my
> > applet.
> > > Is
> > > > it correct that that path already includes all of the classes needed
> to
> > > run
> > > > my applet?
> > > >
> > > > Arthur Fitt
> > > > Senior Application Developer
> > > > netRegulus
> > > > arthur.fitt@netregulus.com
> > > >
> > > >
> > >
> > >
> >
> >
>
>


Dave Wolf [Sybase] Posted on 2000-02-15 19:47:30.0Z
Newsgroups: sybase.public.easerver
From: "Dave Wolf [Sybase]" <dwolf@sybase.com>
Subject: Re: Applet Client ORB Problems
Date: Tue, 15 Feb 2000 14:47:30 -0500
Lines: 290
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
NNTP-Posting-Host: dwolf-nt.sybase.com 157.133.41.127
Message-ID: <347_g1Cm83#d$GA.149@forums.sybase.com>
References: <347_M4fgLBzd$GA.327@forums.sybase.com> <347_ROz#yW0d$GA.184@forums.sybase.com> <347_EG1BtD8d$GA.324@forums.sybase.com> <347_vm4aOy8d$GA.223@forums.sybase.com> <347_vld#Nr#d$GA.184@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:28635
Article PK: 160770

What if you do /classes instead of ../classes? We purposely forbid calls to
.. from root which is where youre HTML page is.

Dave Wolf
Internet Applications Division

Arthur Fitt <arthur.fitt@netregulus.com> wrote in message
news:vld#Nr#d$GA.184@forums.sybase.com...
> It is set with this parameter
> <PARAM NAME="codebase" VALUE="../classes">
>
> my html page appears in %Jaguar%/html/cres.html
>
> Arthur
>
> Dave Wolf [Sybase] <dwolf@sybase.com> wrote in message
> news:vm4aOy8d$GA.223@forums.sybase.com...
> > What I find curious is that the HTML page doesnt show the CODEBASE is
set
> to
> > %JAGUAR%\html\classes.
> >
> > Dave Wolf
> > Internet Applications Division
> >
> > Arthur Fitt <arthur.fitt@netregulus.com> wrote in message
> > news:EG1BtD8d$GA.324@forums.sybase.com...
> > > Here the code that connects the applet
> > >
> > > /**
> > > * @(#) ServerAccess.java
> > > */
> > >
> > > package com.netregulus.client;
> > >
> > > import java.util.Properties;
> > > import com.netregulus.client.stubs.*;
> > > import org.omg.CORBA.ORB;
> > > import SessionManager.Manager;
> > > import SessionManager.Session;
> > > import SessionManager.ManagerHelper;
> > >
> > >
> > > public class ServerAccess
> > > {
> > > static Session session;
> > >
> > > /**
> > > * Private constructor so class can not be instiated
> > > */
> > >
> > > private void ServerAccess()
> > > {
> > > }
> > >
> > > /**
> > > * Return a CRFImpl object the reference an object on the application
> > > server
> > > */
> > > /*
> > > public static CRFImpl getCRFImpl( )
> > > {
> > > return null;
> > > }
> > > */
> > > /**
> > > * Indicates whether this object is connected to the application
> server.
> > > */
> > > public static boolean isConnected( )
> > > {
> > > if (session == null)
> > > return false;
> > > else
> > > return true;
> > > }
> > >
> > > /**
> > > * Disconnect from the application server
> > > */
> > > public static void logoff( )
> > > {
> > > session = null;
> > > }
> > >
> > > /**
> > > * Connect to the application server
> > > */
> > > public static void logon( String userName, String password, String
> url )
> > > throws ServerAccessException
> > > {
> > > String args[] = null;
> > > Properties props = new Properties();
> > >
> > > // Initilized ORB
> > > props.put("org.omg.CORBA.ORBClass","com.sybase.CORBA.ORB");
> > > props.put("com.sybase.CORBA.RetryDelay", "1");
> > > ORB orb = ORB.init(args, props);
> > >
> > > try
> > > {
> > > Manager manager = ManagerHelper.narrow(orb.string_to_object(url));
> > > session = manager.createSession(userName, password);
> > > }
> > > catch (org.omg.CORBA.COMM_FAILURE cf)
> > > {
> > > // The server is likely down or has run
> > > // out of connections. You can retry the
> > > // connection if desired.
> > > // ... report the error ...
> > > throw(new ServerAccessException("Server Down"));
> > > }
> > > catch (org.omg.CORBA.NO_PERMISSION np)
> > > {
> > > // Tell the user they are not authorized
> > > //...
> > > throw(new ServerAccessException("Not Authorized"));
> > > }
> > > catch (org.omg.CORBA.SystemException se)
> > > {
> > > // Catch-all clause for any CORBA system
> > > // exception that was not explicitly caught
> > > // above. Report the error but don't bother
> > > // retrying.
> > > throw(new ServerAccessException("Uncaught Error"));
> > > }
> > > }
> > >
> > >
> > >
> > > public static CrfController getCrfController() throws
> > > ServerAccessException
> > > {
> > > CrfController crfController = null;
> > >
> > > if (!isConnected())
> > > {
> > > throw(new ServerAccessException("No Connection"));
> > > }
> > >
> > > try
> > > {
> > > CrfControllerHome home =
> > > rfControllerHomeHelper.narrow( session.lookup("CrfController") );
> > > crfController = home.create();
> > > }
> > > catch (org.omg.CORBA.OBJECT_NOT_EXIST one)
> > > {
> > > // Tell the user to contact the server
> > > // administrator
> > > //... report the error ...
> > > throw(new ServerAccessException("Object does not exist"));
> > > }
> > > catch (org.omg.CORBA.NO_PERMISSION np)
> > > {
> > > // Tell the user they are not authorized
> > > // ... report the error ...
> > > throw(new ServerAccessException("Not authorized"));
> > > }
> > > catch (org.omg.CORBA.SystemException se)
> > > {
> > > // Catch-all clause for any CORBA system
> > > // exception that was not explicitly caught
> > > // above.
> > > //... report the error ...
> > > throw(new ServerAccessException("Uncaught Error"));
> > > }
> > > catch (CtsComponents.CreateException ce)
> > > {
> > > throw(new ServerAccessException("Create error"));
> > > }
> > >
> > > return crfController;
> > > }
> > > }
> > >
> > > *************************************
> > >
> > > And the web page - the codebase is %Jagauar%/html/classes
> > >
> > > <!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN">
> > >
> > > <HTML>
> > > <HEAD>
> > > <TITLE>Clinical Regulatory Enterprise System</TITLE>
> > > <META NAME="author" CONTENT="netRegulus Copyright (c) 1998-2000">
> > > <META NAME="description" CONTENT="">
> > > <META NAME="keywords" CONTENT="">
> > > </HEAD>
> > >
> > > <BODY>
> > > <CENTER>
> > >
> > > <OBJECT CLASSID="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
> > > WIDTH="630" HEIGHT="450" ALIGN="baseline"
> > >
> > >
> >
>
CODEBASE="http://java.sun.com/products/plugin/1.2.2/jinstall-1_2_2-win.cab#V
> > > ersion=1,2,2,0">
> > > <PARAM NAME="code" VALUE="CRES.class">
> > > <PARAM NAME="codebase" VALUE="../classes">
> > > <PARAM NAME="type" VALUE="application/x-java-applet;version=1.2.2">
> > > <PARAM NAME="scriptable" VALUE="true">
> > > <PARAM NAME="SplashScreen" VALUE="">
> > > <PARAM NAME="NameServer" VALUE="">
> > > <PARAM NAME="Language" VALUE="">
> > > <PARAM NAME="Country" VALUE="">
> > > <PARAM NAME="Variant" VALUE="">
> > > No JDK 1.2 support for APPLET!!
> > > </OBJECT>
> > > </CENTER>
> > > </BODY>
> > > </HTML>
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > Dave Wolf [Sybase] <dwolf@sybase.com> wrote in message
> > > news:ROz#yW0d$GA.184@forums.sybase.com...
> > > > Can I see your code please.
> > > >
> > > > Dave Wolf
> > > > Internet Applications Division
> > > >
> > > > Arthur Fitt <arthur.fitt@netregulus.com> wrote in message
> > > > news:M4fgLBzd$GA.327@forums.sybase.com...
> > > > > I have a java applet connecting to EAServer using
> com.Sybase.CORBA.ORB
> > > and
> > > > > the SessionMannager.Session objects.
> > > > >
> > > > > I am using EAServer as my web server and have placed all of my
> objects
> > > in
> > > > > the %Jaguar%/html/classes directory. The applet works great when a
> > > connect
> > > > > from a web browser on my machine (the machine that EAServer is
on).
> We
> > > are
> > > > > using Sun 1.2.2 java plugin.
> > > > >
> > > > > When a client from another machine tries to connect they get the
> > > following
> > > > > error. org.omg.CORBA.INITIALIZE: can't instantiate default ORB
> > > > > implementation com.Sybase.CORBA.ORB minor code: 0 completed: No.
> > > > >
> > > > > Any ideas?
> > > > >
> > > > > One more note I use %jaguar%/html/classes as the code base for my
> > > applet.
> > > > Is
> > > > > it correct that that path already includes all of the classes
needed
> > to
> > > > run
> > > > > my applet?
> > > > >
> > > > > Arthur Fitt
> > > > > Senior Application Developer
> > > > > netRegulus
> > > > > arthur.fitt@netregulus.com
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>


Carson Hager[Team Sybase] Posted on 2000-02-15 00:44:22.0Z
Newsgroups: sybase.public.easerver
From: chager@dyn-data.com (Carson Hager[Team Sybase])
Subject: Re: Applet Client ORB Problems
Date: Tue, 15 Feb 2000 00:44:22 GMT
Organization: Dynamic Data Solutions, Inc.
X-Newsreader: Forte Free Agent 1.21/32.243
Lines: 47
NNTP-Posting-Host: 63.86.26.206
Message-ID: <347_38a8a134.27572326@forums.sybase.com>
References: <347_M4fgLBzd$GA.327@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:28697
Article PK: 160823

Have you made the Sybase ORB classes visible to the applet? What did
you set its CODEBASE property to?


Carson

___________________________________________________________

Carson Hager
Team Sybase
Dynamic Data Solutions, Inc.
Enterprise Application Studio 3.0 Consulting and Training
http://www.dyn-data.com

DDS is now hiring EAServer consultants
to support its exploding EAServer business!
Please submit your resume to
hr@dyn-data.com!


On Mon, 14 Feb 2000 14:09:03 -0700, "Arthur Fitt"

<arthur.fitt@netregulus.com> wrote:

>I have a java applet connecting to EAServer using com.Sybase.CORBA.ORB and
>the SessionMannager.Session objects.
>
>I am using EAServer as my web server and have placed all of my objects in
>the %Jaguar%/html/classes directory. The applet works great when a connect
>from a web browser on my machine (the machine that EAServer is on). We are
>using Sun 1.2.2 java plugin.
>
>When a client from another machine tries to connect they get the following
>error. org.omg.CORBA.INITIALIZE: can't instantiate default ORB
>implementation com.Sybase.CORBA.ORB minor code: 0 completed: No.
>
>Any ideas?
>
>One more note I use %jaguar%/html/classes as the code base for my applet. Is
>it correct that that path already includes all of the classes needed to run
>my applet?
>
>Arthur Fitt
>Senior Application Developer
>netRegulus
>arthur.fitt@netregulus.com
>
>

___________________________________________________________

Carson Hager
Team Sybase
Dynamic Data Solutions, Inc.
Enterprise Application Studio 3.0 Consulting and Training

DDS Enterprise Application Framework
Available Now as Open Source!
http://www.dyn-data.com