ssh中,我用了spring+strut2+hibernate(原生hibernate API ,就是dao类中不用spring的hibernateTemplate或hibernateDaoSupport类) 出现了
org.hibernate.HibernateException:xxx is not valid without active transaction.
查了下网,结果是 不妨把hibernate 属性定义的
<property name="current_session_context_class">thread</property>
去掉
good luck!:>