Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

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

Posted on 2004-08-03
14
585 Views
Last Modified: 2013-12-29
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
Comment
Question by:ivonne1094
  • 7
  • 5
14 Comments
 
LVL 35

Expert Comment

by:girionis
ID: 11701960
> 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
 

Author Comment

by:ivonne1094
ID: 11702100
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
 
LVL 35

Expert Comment

by:girionis
ID: 11702132
>  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
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 

Author Comment

by:ivonne1094
ID: 11702219
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
 
LVL 35

Expert Comment

by:girionis
ID: 11702334
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
 

Author Comment

by:ivonne1094
ID: 11712620
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
 
LVL 35

Expert Comment

by:girionis
ID: 11712768
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
 

Author Comment

by:ivonne1094
ID: 11713001
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
 
LVL 35

Expert Comment

by:girionis
ID: 11713076
> 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
 

Author Comment

by:ivonne1094
ID: 11713177
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
 
LVL 35

Accepted Solution

by:
girionis earned 200 total points
ID: 11713353
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
 
LVL 35

Expert Comment

by:girionis
ID: 11900392
:)
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

790 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question