Filter execution threw an exception 错误

Filter execution threw an exception 错误,我在web.xml中配置了一个filter用spring来解决懒加载的问题,为什么就会包这个错

java.lang.NoSuchMethodError: org.hibernate.SessionFactory.openSession()Lorg/hibernate/classic/Session;

  <filter>
    <filter-name>OpenSessionInViewFilter</filter-name>
    <filter-class>com.jbit.auction.tool.OpenSessionInViewFilter</filter-class>
</filter>
<filter-mapping>
    <filter-name>OpenSessionInViewFilter</filter-name>
    <url-pattern>*.action</url-pattern>
</filter-mapping>

 

posted @ 2016-11-02 11:14  LuoBaiLin  阅读(1691)  评论(0编辑  收藏  举报