This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Websphere and the fly likes ClassNotFoundException: WsnInitialContextFactory Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "ClassNotFoundException: WsnInitialContextFactory" Watch "ClassNotFoundException: WsnInitialContextFactory" New topic

ClassNotFoundException: WsnInitialContextFactory

vinodbabuc chandramohan

Joined: May 10, 2005
Posts: 2
We are getting the following error while migrating from websphere6.0 to websphere6.1.
junit] java.lang.ClassNotFoundException:
[junit] at java.lang.Class.forName(
[junit] at com.sun.naming.internal.VersionHelper12.loadClass(
[junit] at com.actiontech.jmetro.server.config.Jndi.getContext(
[junit] at com.actiontech.jmetro.client.Config$ServiceLocator.getContext(
[junit] at com.actiontech.jmetro.client.Config$ServiceLocator.<init>(
[junit] at com.actiontech.jmetro.client.Config$ServiceLocator.<clinit>(
[junit] at java.lang.J9VMInternals.initializeImpl(Native Method)
[junit] at java.lang.J9VMInternals.initialize(

The code which we are running is
java.util.Hashtable appContext = new java.util.Hashtable();
appContext.put(javax.naming.Context.PROVIDER_URL, "iiop://localhost:2809");
Context context = new InitialContext(appContext);
Object objref = context.lookup("AdminSessionBean");
Object obj = PortableRemoteObject.narrow(objref, com.actiontech.jmetro.server.ejb.AdminSessionHome.class);
EJBHome home = (EJBHome) obj;

we have added the plugins\ which contains in the websphere6.1 cclasspath but still we get the same error.
Can somebody help us in fixing the above error.
Thanks in advance,
bigamy bilk

Joined: Jun 06, 2009
Posts: 2
try with naming.jar
Don't get me started about those stupid light bulbs.
subject: ClassNotFoundException: WsnInitialContextFactory
Similar Threads
Initial Context Factory
ServiceLocator - issue when shared between two web app.
calling Websphere EJB from Jboss EJB
classloader question
Interesting session exception