Solved

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

Posted on 2004-08-03
14
556 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
Comment Utility
> 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
Comment Utility
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
Comment Utility
>  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
 

Author Comment

by:ivonne1094
Comment Utility
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
Comment Utility
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
Comment Utility
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
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 35

Expert Comment

by:girionis
Comment Utility
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
Comment Utility
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
Comment Utility
> 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
Comment Utility
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
Comment Utility
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
Comment Utility
:)
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

762 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now