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.

PB UO Deployment in Jaguar Problems

3 posts in General Discussion (old) Last posting was on 2000-03-22 21:13:05.0Z
Ulises Loubriel Posted on 2000-03-22 21:00:59.0Z
Newsgroups: sybase.public.easerver
Reply-To: "Ulises Loubriel" <jloubriel@hotmail.com>
From: "Ulises Loubriel" <jloubriel@hotmail.com>
Subject: PB UO Deployment in Jaguar Problems
Date: Wed, 22 Mar 2000 14:00:59 -0700
Lines: 60
Organization: Bridge Resources
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.131.108.118
Message-ID: <347_9ZhCDKEl$GA.285@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:25890
Article PK: 155925

I'm having problems creating the java object of a PB UO deployed in Jaguar.
I have no problem creating the HTML Datawindow or any of the sample
application components, just the one I created.

This is the error I get, followed by the steps I took to deploy the UO:

ERROR: Creating Jaguar componentException thrown:
java.lang.ClassNotFoundException: JagAppPK/n_jagappsHelper in method
loadClass of class DynamoClassLoader. Unable to find class:
JagAppPK/n_jagappsHelperUnable to narrow the component to the required
interface: "JagAppPK/n_jagappsHelper".

What I did:

1- I created a PB UO and deployed it to my jaguar server as JagAppPK
package.
It shows installed under the jaguar server.
2- Generated the stubs.
3- Compiled the stubs into classes.
4- Copy the stubs to jaguar server directory.

Directory of D:\WebApps\Classes\JagAppPK

03/22/00 01:51p <DIR> .
03/22/00 01:51p <DIR> ..
03/07/00 08:37a 324 n_jagapps.class
03/07/00 08:37a 1,018 n_jagappsHelper.class
03/07/00 08:37a 390 n_jagappsHolder.class
03/07/00 08:37a 1,903 _st_n_jagapps.class

5- Changed the Classpath env. var in my jaguar server to:

Bq@;C:\Program Files\Sybase\Shared\PowerBuilder\classes.zip;C:\Program
Files\Sybase\Shared\PowerBuilder\classes111.zip;C:\Program
Files\Sybase\Shared\Sun\JDK118\lib\classes.zip;D:\WebApps\Classes\JagAppPK;C
:\Program Files\Sybase\Jaguar CTS 3.0\html\classes;.

6- Rebooted server

This is my dynascript that fails:

<!--SCRIPT
var jagError;

var jagConn = java.CreateComponent( "JagAppPK/n_jagapps",
"iiop://myserver:9000", "jagadmin", "","JagAppPK/n_jagapps");
if (jagConn == null)
{
jagError = site.GetErrorInfo ();
HTDW_DocWrite ("ERROR: Creating Jaguar component" + jagError +
"<BR>\n");
}

-->

Thank you for looking into this.
Ulises
uloubrie@gmgw.com


Jim O'Neil [Sybase] Posted on 2000-03-22 21:10:50.0Z
Newsgroups: sybase.public.easerver
Date: Wed, 22 Mar 2000 16:10:50 -0500
From: "Jim O'Neil [Sybase]" <joneil@sybase.com>
Organization: Sybase, Inc.
X-Mailer: Mozilla 4.7 [en]C-CCK-MCD (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
Subject: Re: PB UO Deployment in Jaguar Problems
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 62
NNTP-Posting-Host: joneil-nt.sybase.com 204.167.42.111
Message-ID: <347_38D936DA.A14B70C0@sybase.com>
References: <347_9ZhCDKEl$GA.285@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:25888
Article PK: 155923


Ulises Loubriel wrote:

> I'm having problems creating the java object of a PB UO deployed in Jaguar.
> I have no problem creating the HTML Datawindow or any of the sample
> application components, just the one I created.
>
> This is the error I get, followed by the steps I took to deploy the UO:
>
> ERROR: Creating Jaguar componentException thrown:
> java.lang.ClassNotFoundException: JagAppPK/n_jagappsHelper in method
> loadClass of class DynamoClassLoader. Unable to find class:
> JagAppPK/n_jagappsHelperUnable to narrow the component to the required
> interface: "JagAppPK/n_jagappsHelper".
>
> What I did:
>
> 1- I created a PB UO and deployed it to my jaguar server as JagAppPK
> package.
> It shows installed under the jaguar server.
> 2- Generated the stubs.
> 3- Compiled the stubs into classes.
> 4- Copy the stubs to jaguar server directory.
>
> Directory of D:\WebApps\Classes\JagAppPK
>
> 03/22/00 01:51p <DIR> .
> 03/22/00 01:51p <DIR> ..
> 03/07/00 08:37a 324 n_jagapps.class
> 03/07/00 08:37a 1,018 n_jagappsHelper.class
> 03/07/00 08:37a 390 n_jagappsHolder.class
> 03/07/00 08:37a 1,903 _st_n_jagapps.class
>
> 5- Changed the Classpath env. var in my jaguar server to:
>
> Bq@;C:\Program Files\Sybase\Shared\PowerBuilder\classes.zip;C:\Program
> Files\Sybase\Shared\PowerBuilder\classes111.zip;C:\Program
> Files\Sybase\Shared\Sun\JDK118\lib\classes.zip;D:\WebApps\Classes\JagAppPK;C
> :\Program Files\Sybase\Jaguar CTS 3.0\html\classes;.
>
> 6- Rebooted server
>
> This is my dynascript that fails:
>
> <!--SCRIPT
> var jagError;
>
> var jagConn = java.CreateComponent( "JagAppPK/n_jagapps",
> "iiop://myserver:9000", "jagadmin", "","JagAppPK/n_jagapps");
> if (jagConn == null)
> {
> jagError = site.GetErrorInfo ();
> HTDW_DocWrite ("ERROR: Creating Jaguar component" + jagError +
> "<BR>\n");
> }
>
> -->
>
> Thank you for looking into this.
> Ulises
> uloubrie@gmgw.com

Conventionally, you'd copy the classes into html/classes directory on the server
so you'd have them in %JAGUAR%/html/classes/JagAppPK and wouldn't need to change
your CLASSPATH. In your example, try using D:\WebApps\Classes on the CLASSPATH
versus going down to the JagAppPK directory.
--
Jim O'Neil
Senior Technical Support Engineer
Sybase, Inc


Ulises Loubriel Posted on 2000-03-22 21:13:05.0Z
Newsgroups: sybase.public.easerver
Reply-To: "Ulises Loubriel" <jloubriel@hotmail.com>
From: "Ulises Loubriel" <jloubriel@hotmail.com>
Subject: Re: PB UO Deployment in Jaguar Problems (Thanks)
Date: Wed, 22 Mar 2000 14:13:05 -0700
Lines: 82
Organization: Bridge Resources
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.131.108.118
Message-ID: <347_ifLN3QEl$GA.201@forums.sybase.com>
References: <347_9ZhCDKEl$GA.285@forums.sybase.com> <347_38D936DA.A14B70C0@sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:25885
Article PK: 155920

Thanks Jim.

Jim O'Neil [Sybase] <joneil@sybase.com> wrote in message
news:38D936DA.A14B70C0@sybase.com...
> Ulises Loubriel wrote:
>
> > I'm having problems creating the java object of a PB UO deployed in
Jaguar.
> > I have no problem creating the HTML Datawindow or any of the sample
> > application components, just the one I created.
> >
> > This is the error I get, followed by the steps I took to deploy the UO:
> >
> > ERROR: Creating Jaguar componentException thrown:
> > java.lang.ClassNotFoundException: JagAppPK/n_jagappsHelper in method
> > loadClass of class DynamoClassLoader. Unable to find class:
> > JagAppPK/n_jagappsHelperUnable to narrow the component to the required
> > interface: "JagAppPK/n_jagappsHelper".
> >
> > What I did:
> >
> > 1- I created a PB UO and deployed it to my jaguar server as JagAppPK
> > package.
> > It shows installed under the jaguar server.
> > 2- Generated the stubs.
> > 3- Compiled the stubs into classes.
> > 4- Copy the stubs to jaguar server directory.
> >
> > Directory of D:\WebApps\Classes\JagAppPK
> >
> > 03/22/00 01:51p <DIR> .
> > 03/22/00 01:51p <DIR> ..
> > 03/07/00 08:37a 324 n_jagapps.class
> > 03/07/00 08:37a 1,018 n_jagappsHelper.class
> > 03/07/00 08:37a 390 n_jagappsHolder.class
> > 03/07/00 08:37a 1,903 _st_n_jagapps.class
> >
> > 5- Changed the Classpath env. var in my jaguar server to:
> >
> > Bq@;C:\Program Files\Sybase\Shared\PowerBuilder\classes.zip;C:\Program
> > Files\Sybase\Shared\PowerBuilder\classes111.zip;C:\Program
> >
Files\Sybase\Shared\Sun\JDK118\lib\classes.zip;D:\WebApps\Classes\JagAppPK;C
> > :\Program Files\Sybase\Jaguar CTS 3.0\html\classes;.
> >
> > 6- Rebooted server
> >
> > This is my dynascript that fails:
> >
> > <!--SCRIPT
> > var jagError;
> >
> > var jagConn = java.CreateComponent( "JagAppPK/n_jagapps",
> > "iiop://myserver:9000", "jagadmin", "","JagAppPK/n_jagapps");
> > if (jagConn == null)
> > {
> > jagError = site.GetErrorInfo ();
> > HTDW_DocWrite ("ERROR: Creating Jaguar component" + jagError +
> > "<BR>\n");
> > }
> >
> > -->
> >
> > Thank you for looking into this.
> > Ulises
> > uloubrie@gmgw.com
>
> Conventionally, you'd copy the classes into html/classes directory on the
server
> so you'd have them in %JAGUAR%/html/classes/JagAppPK and wouldn't need to
change
> your CLASSPATH. In your example, try using D:\WebApps\Classes on the
CLASSPATH
> versus going down to the JagAppPK directory.
> --
> Jim O'Neil
> Senior Technical Support Engineer
> Sybase, Inc
>
>