cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hans-Heinrich Braun <hansheinrichbr...@yahoo.de>
Subject cocoon ProgessService and Hibernate
Date Fri, 27 Mar 2015 14:01:38 GMT

    I am using cocoon 3.0 with Hibernate.To enable Lazy Loading I insert in web.xml <filter> 
      <filter-name>lazyLoadingFilter</filter-name>        <filter-class>org.apache.cocoon.tools.rcl.wrapper.servlet.ReloadingServletFilter</filter-class> 
  <init-param><param-name>filter-class</param-name><param-value>org.springframework.orm.hibernate4.support.OpenSessionInViewFilter</param-value></init-param></filter> 
 <filter-mapping>        <filter-name>lazyLoadingFilter</filter-name> 
      <url-pattern>/*</url-pattern>    </filter-mapping>Which is Ok
with a normal RestController.But with ProgressService I get still  the error
org.hibernate.LazyInitializationException: could not initialize proxy - no Session when I
use Lazy Loading
Best regardsHeiner
  
Mime
View raw message