Filter execution threw an exception 錯誤

Filter execution threw an exception 錯誤,我在web.xml中配置了一個filter用spring來解決懶加載的問題,爲何就會包這個錯java

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

  <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>spring

 

相關文章
相關標籤/搜索