这两天练习ssh整合,做了一个小例子遇到了问题。
环境: myeclipse8.6 + tomcat7+ struts2.1 + spring 3.2 + hibernate4
下面是配置:

struts.xml

applicationContext.xml



注册页面

输入内容

当按下注册键后出现问题

真是伤心,郁闷的很啊。上网找了几天没解答,请大家帮助 解决下。
谢谢 哈

ssh hibernate struts spring JAVAweb
<s:form action="/registPro">用这个试一下异常用文字贴出来,图片的有的看不见而且也不好复制粘贴
这个是因为出现了这个异常org.springframe.orm.hibernate4.SessionHolder cannot be cast to org.springframe.orm.hibernate3.SessionHolder
而你用的是4是吧,出现混乱的根源暂时未知,但至少可以先试下将可能存在于classpath(安放jar包的地方)中org.springframe.orm.hibernate3.SessionHolder类所属的jar包去掉