我在web项目中访问EJb出错,救命啊!!!
在WSAD5.1.0中开发,平台是Windows2000 Server,错误信息是:
javax.naming.ConfigurationException: The property com.ibm.ws.naming.wsn.factory.initial is not set. The most likely cause is that the jar which contains the file com/ibm/websphere/naming/jndiprovider.properties cannot be found by the class loader.
我的源码是:
Properties p = new Properties();
p.put(InitialContext.INITIAL_CONTEXT_FACTORY, "com.ibm.websphere.naming.WsnInitialContextFactory");
p.put(InitialContext.PROVIDER_URL, "iiop://localhost:2809");
initial = new InitialContext(p);
Object obj=initial.lookup(jndi);
请哪位帮我解决吧,我被它困扰一两天了!!谢谢