wood burning stoves 2.0*
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


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
Author

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

Avancha Mallikarjun
Greenhorn

Joined: Sep 28, 2001
Posts: 4
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

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