File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 REST with Spring (video course) this week in the Spring 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 Source)
at Source)
at$100(Unknown Source)
at$ Source)
at Method)
at 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 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>(
at GenXml.main(

/* */
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:
subject: Probelm in recognising com.bim.websphere.naming.WsnInitialContextFactory
It's not a secret anymore!