Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Root exception is java.lang.ClassNotFoundException: com.ibm.websphere.naming.WsnInitialContextFactory

321 views
Skip to first unread message

Sundar

unread,
Apr 8, 2011, 1:08:37 AM4/8/11
to
Hello Everyone,

One day or the other most of you have come across this error. I am
hoping this error could be solved. I am banging my head for past one
week!

I am trying to access itim which is hosted remotely ( I am not sure
about on what web server that has been deployed ) . I am trying to
hit the server using an iiop url with the required credentials. Please
find below the code

-------------------------------------------------------------------------------------------------------------------------------------

java.util.Hashtable env = new java.util.Hashtable();
env.put(com.ibm.itim.apps.InitialPlatformContext.CONTEXT_FACTORY, "com.ibm.itim.apps.impl.websphere.WebSpherePlatformContextFactory");
env.put(com.ibm.itim.apps.PlatformContext.PLATFORM_URL,
"iiop://<<myserver>>:2809");
env.put(com.ibm.itim.apps.PlatformContext.PLATFORM_PRINCIPAL,
"<<userName>>");
env.put(com.ibm.itim.apps.PlatformContext.PLATFORM_CREDENTIALS,
"<<Password>>");
com.ibm.itim.apps.PlatformContext platform = new
com.ibm.itim.apps.InitialPlatformContext(
env);
System.out.println("Platform platform : " + platform.toString());

----------------------------------------------------------------------------------------------------------------------------------------
These (api_ejb.jar, itim_api.jar, itim_server.jar, j2ee.jar,
naming.jar, namingclient.jar, sas.jar, wssec.jar, xalan.jar) jars are
in place.

Please can somebody help me!

Thanks in advance.

-Sundar

0 new messages