EJB3.0问题!急 Object objref =(Object)ict.lookup("CalculatorBean/remote");(CalculatorBean) PortableRemoteObject.narrow(objref, CalculatorBean.class); 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 Object objref =(Object)ict.lookup("CalculatorBean/remote");(CalculatorBean) cal = PortableRemoteObject.narrow(objref, CalculatorBean.class); 哦,谢谢,知道问题了!原来这里Calculator cal=(CalculatorBean)ict.lookup("CalculatorBean/remote");应该这样写Calculator cal=(Calculator)ict.lookup("CalculatorBean/remote");不能强制转化为Bean,应转化为接口 resin部署,不能加载hibernate.cfg.xml 学习java中遇到的问题? 第一次用Eclipse调试jsp网页 求助关于SSH框架的学习!!! struts的html:text怎么加入css? JTable中怎么设置某一列的宽度? Struts里iterate标签的问题~急 遇到到的一些问题!大家都来看看,能回答几个算几个。 高手帮忙,关于myeclipse +tomcat + db2,谢谢了。 strutst:return mapping.findForward("welcome1111")时出错 自定义的java软件包放在哪里啊? EJB的一个问题。
(CalculatorBean) cal = PortableRemoteObject.narrow(objref,
CalculatorBean.class);
应该这样写Calculator cal=(Calculator)ict.lookup("CalculatorBean/remote");
不能强制转化为Bean,应转化为接口