• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

WebSphere 5.0 EJB JNDI LOOKUP

 
Ranch Hand
Posts: 548
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello All,


1. Can anybody tell me what are the path and classpath settings for running a standlone java client that does
jndi lookup of an EJB deployed inside WSAD 5.1.2's WebSphere 5.0 Test Environment. I would appreciate how the classpath
settings differ from using IBM JDK/JRE and Sun JDK/JRE


2. Also, I am trying to run a standlone java client that does jndi lookup of an EJB deployed inside
WSAD 5.1.2's WebSphere 5.0 Test Environment

set classpath=D:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v5\java\jre\lib\rt.jar;D:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v5\lib\j2ee.jar;D:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v5\lib\ivjejb35;D:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v5\lib\vaprt.jar;D:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v5\lib\utils.jar;D:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v5\lib\namingclient.jar;D:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1.2\runtimes\base_v5\lib\namingserver.jar;


java program code snippet :

---------------------------------------------------------
java.util.Hashtable env = new java.util.Hashtable();

env.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY, "com.ibm.websphere.naming.WsnInitialContextFactory");
env.put(javax.naming.Context.PROVIDER_URL, "iiop://localhost:2809/");

javax.naming.Context ctx = new javax.naming.InitialContext(env);

Object homeObject = ctx.lookup("ejb/Demo");
---------------------------------------------------------

However when I run my client program I am getting below error

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


Please suggest ...




Thanks & Regards,
Kumar.
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Kumar,
Please don't cross-post the same question
reply
    Bookmark Topic Watch Topic
  • New Topic