报这个异常java.lang.ClassCastException: 哪里错了啊 Action action = (Action) factory.getBean("TheAction");看下你这句强制转换的 类型到底匹配不? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 FileInputStream is = new FileInputStream("bean.xml") Action action = (Action) factory.getBean("TheAction");查看TheAction类是否继承了Action类在 XmlBeanFactory factory = new XmlBeanFactory((Resource) is); Action action = (Action) factory.getBean("TheAction");每行之前打印测试消息看是那行转换失败 InputStream is = new FileInputStream("bean.xml");这个错了 XmlBeanFactory factory = new XmlBeanFactory((Resource) is);这个错了 Action action = (Action) factory.getBean("TheAction"); 类型转换失败 问一下,Java做图形图像在行吗? 运行HIBERNATE 的unique的报错 大家介绍几本学习SPRING的好书???? j2ee实现网站流量统计系统 饼状图的画法 来者给分,不够再加 用dom4j解析xml 不能修改 localhost和127.0.0.1 private Log log = LogFactory......这些是什么意思? 请指出该代码的错误,感激不尽,请帮帮新人 可以用HTTPClient模拟EJB的方法调用吗? hibernate多表插入问题 用接口的实例它的子类用什么作用。还用接口的主要作用是什么?
查看TheAction类是否继承了Action类在 XmlBeanFactory factory = new XmlBeanFactory((Resource) is);
Action action = (Action) factory.getBean("TheAction");
每行之前打印测试消息看是那行转换失败
这个错了
这个错了
类型转换失败