Wednesday, May 14, 2003 02:56 AM
Hi Friends ,
I am getting one small in look up .
My question Is. I have written one small bean usually HelloWorld bean in WebSphere. While looking up that bean I am getting problem.
My code goes like this.
Properties props= new Properties();
Context ctx = new InitialContext(props);
while running this code i am gettting the following runtime eror.
Run time Error it is throwing is
Error Is :
Cannot instantiate class: com.ibm.websphere.naming.WsnInitialContextFactory
What is the reason.. I put all jar files in classpath.
Thanks in advance.
Re: Lookup Problem In WebSphere
Monday, June 2, 2003 06:18 AM
Wednesday, May 21, 2003 06:40 AM
If you are running in WAS 5.0, do not try to run it asan application.Try to run it in a container,and you do not need to supply the env properties.You can create the Initial Context without any parameters.Hope this helps.