Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 652
  • Last Modified:

CORBA Problem: Class org.omg.PortableServer.POA not found in import

hi,
I am new in CORBA programming and I have a project to develop a CORBA client application to get authentication from another CORBA server program.
This Client program will be loaded into Oracle database and link together with the database.
When I load all the jar files from server classes into the database, there are few classes return the error below:
Class org.omg.PortableServer.POA not found in import
The Oracle database is 9i with Java version 1.3.
What is the additional classes need to be load into the database to import the POA class??
Please help, thanks a lot.
0
ivonne1094
Asked:
ivonne1094
  • 7
  • 5
1 Solution
 
girionisCommented:
> Class org.omg.PortableServer.POA not found in import

In which jar file does this class reside? Is it in your classpath? Can you post the full error message?
0
 
ivonne1094Author Commented:
Hi,
In my java program, I use the import below:

public abstract class ObjectInfoPOA
      extends org.omg.PortableServer.Servant
      implements org.omg.CORBA.portable.InvokeHandler, com.amd.jcs.siview.code.ObjectInfoOperations
{

when I compiled the code, I get error:
17:33:35  [0:0] com/amd/jcs/siview/code/ObjectInfoPOA:10: Superclass org.omg.PortableServer.Servant of class com.amd.jcs.siview.code.ObjectInfoPOA not found.

I do not use the classpath but I load all the jar files (self-developed classes) into database, so I can directly call the java stored procedure from Oracle.

0
 
girionisCommented:
>  do not use the classpath but I load all the jar files (self-developed classes) into database,

I am not sure I understand what you mean here? Do you store all the jar files as binary stream in the database?

> so I can directly call the java stored procedure from Oracle.

You call a stored procedure from java without the need to have the jar files in the database. Only requirement is that there is a stored procedure defined in the database and the db is accessible.

> Superclass org.omg.PortableServer.Servant of class com.amd.jcs.siview.code.ObjectInfoPOA not found.

In which file does the Servant class reside?
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
ivonne1094Author Commented:
Hi,
I will call the Java Client program from PL/SQL (oracle) to get objects from Server Program.
To enable me to call the CORBA server program, I need to load jar file (from server program).
In server program, there are few object need to be initiated from orb and we need use java class, POA to activate the POA manager.
I need to find out what is the java class to import POA.
Thanks.
0
 
girionisCommented:
The problem is not when you run the programme but when you try to compile it, so loading up the classes from the server hasn't got to do with the problem.

Can you please give me some more help here:

>> Superclass org.omg.PortableServer.Servant of class com.amd.jcs.siview.code.ObjectInfoPOA not found.
>
>In which file does the Servant class reside?
0
 
ivonne1094Author Commented:
Hi,
Thanks for your help, the POA is default CORBA java class and I am having this problem when loading into database.
I need to know what is the Java 1.4 class can provide the POA class.
Thanks.
0
 
girionisCommented:
If you look here:

http://java.sun.com/j2se/1.4.2/docs/api/org/omg/PortableServer/POAPackage/package-summary.html

you see that there is an implementation in jdk1.4.2 in a package org.omg.PortableServer.POAPackage but I am not exactly sure which class you need. Better take a look and see if the link helps.

The thing is that you already have the class com.amd.jcs.siview.code.ObjectInfoPOA to provide POA implementation. This class extends the org.omg.PortableServer.Servant class but when you try to compile it cannot find the Servant class. To solve your problem you need to find out in which jar/zip file the Servant class is and add it in your classpath.
0
 
ivonne1094Author Commented:
Hi,
The org.orb.PortableServer.Servant class should be come with Java 1.4.
But Oracle 9i come with Java 1.3, is it the POA classes not included inside Java 1.3?
I have read the link provided but cannot find the link to download the POA class.
Thanks.
0
 
girionisCommented:
> The org.orb.PortableServer.Servant class should be come with Java 1.4.

Wait, is the problem with org.ORB classes or org.OMG classes? JDK provides protable classes in the package org.omg.PortableServer and not org.orb.PortableServer.
0
 
ivonne1094Author Commented:
Sorry for the typo error.
It should be org.omg.PortableServer...
how about Java 1.3??
If not, then any link to download the POA classes?
0
 
girionisCommented:
I am afraid jdk1.3 does not support the org.omg.PortableServer. Take a look here: http://babbage.clarku.edu/java/docs/guide/idl/index.html and pay attention to the line:

"New! package org.omg.PortableServer - provides classes and interfaces for making the server side of your applications portable across multivendor ORBs"

under the

"Essential Java IDL API"

paragraph.

You will need to download jdk1.4 in order to compile your classes as I am not sure if it comes independently of jdk1.4
0
 
girionisCommented:
:)
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 7
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now