• Post Reply Bookmark Topic Watch Topic
  • New Topic

JNDI look up problem...urgent  RSS feed

 
Parthiv Patel
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Can anyone suggest me whats wrong here..
Properties p = new Properties();
/** Perform a lookup for the appropriate bean and start SQL operations
*/
try{
p.put(javax.naming.Context.PROVIDER_URL, "iiop://9.43.232.130:900");
p.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY, "com.ibm.websphere.naming.WsnInitialContextFactory");

InitialContext initContext = new InitialContext(p);


java.lang.Object homeStub = initContext.lookup("/PLEX1/BBOASR2/ConnSysTest1.0/ConnSysTest1/RelRecdata10/com.ibm.w93.dfsms10.beans.RelRecdata10Home");
if(homeStub!=null)
{
RelRecdata10Home home = (RelRecdata10Home) javax.rmi.PortableRemoteObject.narrow(homeStub, RelRecdata10Home.class);
RelRecdata10 remote = home.create();

remote.runSQL(jndiname, rrnarray, selectsql, isDirect, randomno);
}
}catch(NamingException e){
e.printStackTrace();
} catch(Exception e){
e.printStackTrace();
}
and I get the following exception...
since I run on Websphere for z/OS, I have its libs in the classpath, java bin directory and also the EJB jar files..
/usr/lpp/connsystest/ConnSysTest1.0Client.jar:ConnSysTest1.0EJB.jar:/usr/lpp/vsa
m/V1R1M0/vsamjdbc.jar::/usr/lpp/Printsrv/classes:/usr/lpp/WebSphere/lib/ws390crt
.jar:/usr/lpp/db2/db2710/classes/
none:WEB.PIDPTF9.SBBOLD2:WEB.PIDPTF9.SBBOULIB
Could not load dll : /usr/lpp/java/java130/IBM/J1.3/bin/libjitc.so
: EDC5157I An internal error has occurred.
Warning: JIT compiler "jitc" not found. Will use interpreter.
Could not load dll : /usr/lpp/java/java130/IBM/J1.3/bin/libawt.so
: EDC5157I An internal error has occurred.
Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/lpp/java/java130
/IBM/J1.3/bin/libawt.so: EDC5157I An internal error has occurred.
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1835)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1711)
at java.lang.Runtime.loadLibrary0(Runtime.java:780)
at java.lang.System.loadLibrary(System.java:865)
at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:66)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.NativeLibLoader.loadLibraries(NativeLibLoader.java:63)
at sun.awt.DebugHelper.<clinit>(DebugHelper.java:38)
at java.awt.Component.<clinit>(Component.java:373)
at java.lang.Class.forName1(Native Method)
at java.lang.Class.forName(Class.java:142)
at com.ibm.ws.naming.util.GlobalORBFactoryWrapper.class$(GlobalORBFactoryWrapper.java:41)
at com.ibm.ws.naming.util.GlobalORBFactoryWrapper.<clinit>(GlobalORBFactoryWrapper.java:61)
at com.ibm.ws.naming.util.Helpers.getOrb(Helpers.java:151)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContext(WsnInitCtxFactory.java:120)
at com.ibm.websphere.naming.WsnInitialContextFactory.getInitialContext(WsnInitialContextFactory.java:89)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:674)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:255)
at javax.naming.InitialContext.init(InitialContext.java:231)
at javax.naming.InitialContext.<init>(InitialContext.java:207)
at com.ibm.w93.dfsms10.client.Clientapplication.main(Clientapplication.java:817)
 
ma huina
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can change character '.' to '/'.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!