ejb 的 jndi是ejb/net/gbicc/loan/basic/ejb/CortrolEngineEJBHome???
不会吧 是不是ejb.net.gbicc.loan.basic.ejb.CortrolEngineEJBHome很明显不是你的ejb没有部署上 就是ejb的jndi的名字写错了
不会吧 是不是ejb.net.gbicc.loan.basic.ejb.CortrolEngineEJBHome很明显不是你的ejb没有部署上 就是ejb的jndi的名字写错了
解决方案 »
- 求一个简单的JDBC知识,谢谢大家,只剩20分了,谢谢大家
- 动态修改 hibernate的hbm.xml文件
- 如何在eclipse中导入一个j2EE工程啊?
- tomcat的安装与启动
- 请教用hibernet 连接 sqlserver2000 的代码,谢谢!
- 读xml数据报错
- 上海复旦光华信息科技股份有限公司 怎么样?
- 小妹急啊!在线jbuilder9中用tomcat5.0出现"index.jsp": java.lang.NoClassDefFoundError: org/apache/jasper/JspC,
- Eclipse整合Tomcat做第一个Struts遇到的问题
- 关于tomcat中的Environment Entries问题,请教..
- 请问如何用java编程实现在excel插入图片呀?
- [JBoss][web-console]查看EJB信息的时候出错。
2.你的jndi名字有误,不是"ejb/net/gbicc/loan/basic/ejb/CortrolEngineEJBHome";
先确定你的ejb发布已经成功,在确定你的jndi名字就是这个!!
Properties props = System.getProperties();
InitialContext ctx = new InitialContext(props);
也可能有问题
String dbjndi="ejb/net/gbicc/loan/basic/ejb/CortrolEngineEJBRemote" //是Remote
//不是Home
InitialContext ctx = new InitialContext(props);
Object obj = ctx.lookup(dbjndi);
CortrolEngineEJBHome ceeh = (CortrolEngineEJBHome)PortableRemoteObject.narrow(obj,CortrolEngineEJBHome.class);