type Exception report
message could not initialize proxy - no Session - Class: org.hibernate.proxy.AbstractLazyInitializer
description The server encountered an internal error that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: could not initialize proxy - no Session - Class: org.hibernate.proxy.AbstractLazyInitializer
File: AbstractLazyInitializer.java
Method: initialize
解决方法:
在Struts过滤器之前加上openSessionInView过滤器
<filter>
<filter-name>openSessionInView</filter-name>
<filter-class>org.springframework.orm.hibernate3.support.OpenSessionInViewFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>openSessionInView</filter-name>
<url-pattern>*.action</url-pattern>
</filter-mapping>