• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Probelm in recognising com.bim.websphere.naming.WsnInitialContextFactory

 
Avancha Mallikarjun
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
import="java.util.*"
import="java.sql.*"
import="javax.sql.*"
import="javax.naming.*"

Hashtable parms = new Hashtable();
parms.put(Context.INITIAL_CONTEXT_FACTORY,
"com.ibm.websphere.naming.WsnInitialContextFactory");
Context ctx = new InitialContext(parms);
ds = (DataSource)ctx.lookup(source);
conn = ds.getConnection(user, password);
HI above one is the part of my code and if i run this program as a stand also i am getting error as follows
/* */
Exception in thread "main" java.lang.NoClassDefFoundError: com/ibm/rmi/iiop/ORB
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at com.ibm.websphere.naming.WsnInitialContextFactory.getInitialContext(W
snInitialContextFactory.java:72)
at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.init(Unknown Source)
at javax.naming.InitialContext.<init>(Unknown Source)
at DADXmlExtenderDBHandler.<init>(DADXmlExtenderDBHandler.java:25)
at GenXml.main(GenXml.java:8)

/* */
i have included all jar files for WsnInitialContextFactory in che class path..
regards
Malli
 
Jun Hong
Ranch Hand
Posts: 181
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Run JDK1.3 from IBM.
Jun Hong
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic