vinodbabuc chandramohan

Greenhorn
+ Follow
since May 10, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by vinodbabuc chandramohan

Hi,
I am also facing the same problem in websphere6.1. Please do help us.
We are getting the following error while migrating from websphere6.0 to websphere6.1.
junit] java.lang.ClassNotFoundException:
[junit] com.ibm.websphere.naming.WsnInitialContextFactory
[junit]
[junit] at java.lang.Class.forName(Class.java:160)
[junit] at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:57)
[junit] at com.actiontech.jmetro.server.config.Jndi.getContext(Jndi.java:114)
[junit] at com.actiontech.jmetro.client.Config$ServiceLocator.getContext(Config.java:127)
[junit] at com.actiontech.jmetro.client.Config$ServiceLocator.(Config.java:118)
[junit] at com.actiontech.jmetro.client.Config$ServiceLocator.(Config.java:106)
[junit] at java.lang.J9VMInternals.initializeImpl(Native Method)
[junit] at java.lang.J9VMInternals.initialize(J9VMInternals.java:177)

The code which we are running is
java.util.Hashtable appContext = new java.util.Hashtable();
appContext.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY,"com.ibm.websphere.naming.WsnInitialContextFactory");
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\com.ibm.ws.runtime_6.1.0.jar which contains com.ibm.websphere.naming.WsnInitialContextFactory in the websphere6.1 cclasspath but still we get the same error.
Can somebody help us in fixing the above error.
Thanks in advance,
Vinod
17 years ago
Hi,
We are getting the following error while migrating from websphere6.0 to websphere6.1.
junit] java.lang.ClassNotFoundException:
[junit] com.ibm.websphere.naming.WsnInitialContextFactory
[junit]
[junit] at java.lang.Class.forName(Class.java:160)
[junit] at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:57)
[junit] at com.actiontech.jmetro.server.config.Jndi.getContext(Jndi.java:114)
[junit] at com.actiontech.jmetro.client.Config$ServiceLocator.getContext(Config.java:127)
[junit] at com.actiontech.jmetro.client.Config$ServiceLocator.<init>(Config.java:118)
[junit] at com.actiontech.jmetro.client.Config$ServiceLocator.<clinit>(Config.java:106)
[junit] at java.lang.J9VMInternals.initializeImpl(Native Method)
[junit] at java.lang.J9VMInternals.initialize(J9VMInternals.java:177)

The code which we are running is
java.util.Hashtable appContext = new java.util.Hashtable();
appContext.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY,"com.ibm.websphere.naming.WsnInitialContextFactory");
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\com.ibm.ws.runtime_6.1.0.jar which contains com.ibm.websphere.naming.WsnInitialContextFactory in the websphere6.1 cclasspath but still we get the same error.
Can somebody help us in fixing the above error.
Thanks in advance,
Vinod
17 years ago