• Post Reply Bookmark Topic Watch Topic
  • New Topic

interoperability problem with ORB  RSS feed

 
Andr� Latour
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

i have the following problem.

Due to special Swing features i have to use a Java 1.5 version for a
standalone Java Application. This application should call a SessionBean (via IIOP) that is running within an WAS.
The Server JDK uses a 1.3 Runtime.

When in run the standalone application with Java 1.5 i get the following Exception:

Cannot use a 1.3.x ORB with a 1.4.x JDK
java.lang.Exception: javax.naming.NamingException: Failed to initialize the ORB [Root exception is java.lang.reflect.InvocationTargetException]

But when i use WebSphere v5 EE JRE (that is acually also a Java 1.4) instead of Java 1.5 everything works (except for my GUI features)

Is it possible to run this setup (Standalone Java 1.5 Applikation against WAS (Java 1.3) Server)? Or are there only specified jars that i have to put on my Java 1.5 classpath?

Best Regards
Andr�
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My guess would be that your problem is probably WAS, not the different version numbers. IBM have their own JRE. It is not possible to write a stand alone client in Sun's JDK1.4 and have it connect to a WAS 6.0 instance, unless you bootstrap some IBM classes (they have to load before the standard Sun ones do). Off the top of my head I can't remember what these are, but there is something in the Info Centre docs which covers this. Have a hunt around you should be able to find it.
 
Andr� Latour
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Paul,

thank you for your advice. But i do not really understand why it is a problem. My Java application does not do very much of "IBM-Java-specific-things". The Bean Stub-Classes can be compiled with Java 1.5 without any problems. Then there is an simple NameService lookup and a remote call.
I do not really know, where i get the conflict with the IBM Java version.
Excuse me, if this is a silly question, but what do you mean with "Info-Center"?

Thank you very much

Andr�
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Info Center - i.e. all WebSphere's online documentation.

The problem (as I remember it) is how IBM implements JNDI. You need to bootstrap some classes otherwise you end up with conflicts such as you are seeing. Sorry I can't remember exactly how to fix this, but you do need to add some extra WAS jars with the -Djava.ext.dirs property. The information is in the Info Center somewhere though.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!