Solved

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

Posted on 2004-08-03
14
591 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
[X]
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
  • 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
Technology Partners: 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!

 

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

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!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Crystal Reports Licensing Questions 4 60
spring maven example issues 3 40
restrict decimal places for double datatype 10 31
junit example issue 2 25
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

749 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