Hi Sridhar,
Thanks for your reply... but i didn't get you what are you looking for
Following is the print stack of error thorwn:
javax.naming.NoInitialContextException: Cannot instantiate class: com.ibm.websphere.naming.WsnInitialContextFactory . Root exception is java.lang.ClassNotFoundException: com.ibm.websphere.naming.WsnInitialContextFactory
at java.net.URLClassLoader.findClass(URLClassLoader.java:374)
at java.lang.ClassLoader.loadClass(ClassLoader.java:562)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:438)
at java.lang.ClassLoader.loadClass(ClassLoader.java:494)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:256)
at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.jav
a:59)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
61)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:256
)
at javax.naming.InitialContext.init(InitialContext.java:232)
at javax.naming.InitialContext.<init>(InitialContext.java:208)
at versata.vfc.XDAEJBConnector_WS.getInitialContext(XDAEJBConnector_WS.j
ava:96)
at versata.vfc.XDAEJBConnector_WS.getEJBHome(XDAEJBConnector_WS.java:140
)
at versata.vfc.XDAEJBConnector_WS.connectInternal(XDAEJBConnector_WS.jav
a:282)
at versata.vfc.XDAEJBConnector_EJB.connectJNDI(XDAEJBConnector_EJB.java:
129)
at versata.vfc.XDAEJBConnector.connect(XDAEJBConnector.java:70)
at versata.common.VSSession.connect(VSSession.java:652)
at com.ibm.rdc.fmw.cassette.gaa.server.GAABusinessClient.init(GAABusines
sClient.java:70)
at com.ibm.rdc.fmw.cassette.gaa.server.CoverageHandler.getBusinessClient
(CoverageHandler.java:260)
at com.ibm.rdc.fmw.cassette.gaa.server.CoverageHandler.executeTask(Cover
ageHandler.java:128)
at com.ibm.rdc.fmw.util.threads.PullThreadPool$WorkerThread.run(PullThre
adPool.java:213)
at java.lang.Thread.run(Thread.java:568)
I am getting this error at aVSSession.connect(); which is an object of VSSession. following are the lines of code:
String aVLSName = appMData.getVlsName();
String aPackageName = appMData.getVlsPackage();
String anApplicationName = appMData.getVlsApplication();
String aUserId = appMData.getVlsUserId();
String aPassword = appMData.getVlsPassword();
AppEnvironment anAppEnvironment = new AppEnvironment(aPackageName, anApplicationName, null, true, false );
private versata.security.SecurityObject secObj;
secObj = new versata.security.SecurityObject(aUserId, aPassword, aPackageName + "." + anApplicationName);
aVSSession = new VSSession(aVLSName,secObj, anAppEnvironment);
VSApplicationContext.setPackageName(aPackageName);
VSApplicationContext.setAppName(anApplicationName);
VSApplicationContext.setSession(aVSSession);
try {
aVSSession.connect();
System.out.println("************************** VSSESSION CONNECTED *************");
} catch (Throwable ex) {
ex.printStackTrace();
}
hope this will answer your question...
looking for your reply again...
thanks