在eclipse里面run on server之后,可以正确显示界面,但当填写表单点击按钮后出现了这个报错
Struts Problem Report
Struts has detected an unhandled exception:
Messages: 1.org.hibernate.SessionFactory.openSession()Lorg/hibernate/classic/Session;
2.Method "execute" failed for object com.action.LoginAction@5582c63b
File: org/springframework/orm/hibernate3/SessionFactoryUtils.java
Line number: 328
Stacktraces
ognl.MethodFailedException: Method "execute" failed for object com.action.LoginAction@5582c63b [java.lang.NoSuchMethodError: org.hibernate.SessionFactory.openSession()Lorg/hibernate/classic/Session;]
ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1305)
ognl.ObjectMethodAccessor.callMethod(ObjectMethodAccessor.java:68)
com.opensymphony.xwork2.ognl.accessor.XWorkMethodAccessor.callMethodWithDebugInfo(XWorkMethodAccessor
......
这个是什么问题啊??
一、准备struts2+spring+hibernate所需要的jar包:
新建web项目并将jar包引入到工程项目中。
二、搭建struts2环境
a.在web项目的web.xml中加入struts2的过......
答案就在这里:整合struts2+spring+hibernate
----------------------Hi,地球人,我是问答机器人小S,上面的内容就是我狂拽酷炫叼炸天的答案,除了赞同,你还有别的选择吗?