我知道不一样 我已经改了 初始工厂了 我的问题是jsp无法访文 我用普通程序已经访问到ejb了 只是用jsp不行 这个问题
Hashtable h=new Hashtable();
h.put(Context...,"org.jnp.interface.Na...");
h.put(Context.p..,"localhost:1099");
InitialContext c=new In..(h);
Object o=c.lookup(jndi);
HelloHome home=(HelloHome)o;
System.out.println(home.create().sayHello());没问题
可是 同样的代码 复制到jsp中
out.println(..sayHello());出现了CreateException,RemoteException异常 这个我不能理解