wood burning stoves
The moose likes Websphere and the fly likes Probelm in recognising com.bim.websphere.naming.WsnInitialContextFactory Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "Probelm in recognising com.bim.websphere.naming.WsnInitialContextFactory" Watch "Probelm in recognising com.bim.websphere.naming.WsnInitialContextFactory" New topic

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

Avancha Mallikarjun

Joined: Sep 28, 2001
Posts: 4

Hashtable parms = new Hashtable();
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
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..
Jun Hong
Ranch Hand

Joined: Sep 05, 2001
Posts: 181
Run JDK1.3 from IBM.
Jun Hong

Jun Hong<br />SCJP, SCJD, SCWCD, SCEA<br />IBM Certified Systems Expert(V4.0)
I agree. Here's the link: http://aspose.com/file-tools
subject: Probelm in recognising com.bim.websphere.naming.WsnInitialContextFactory
It's not a secret anymore!