Return-Path: X-Original-To: apmail-cocoon-users-archive@www.apache.org Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 15C2E17C4C for ; Fri, 27 Mar 2015 14:03:49 +0000 (UTC) Received: (qmail 60833 invoked by uid 500); 27 Mar 2015 14:03:33 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 60795 invoked by uid 500); 27 Mar 2015 14:03:33 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 60783 invoked by uid 99); 27 Mar 2015 14:03:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Mar 2015 14:03:32 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE X-Spam-Check-By: apache.org Received-SPF: error (athena.apache.org: local policy) Received: from [98.139.213.158] (HELO nm2-vm1.bullet.mail.bf1.yahoo.com) (98.139.213.158) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Mar 2015 14:03:27 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.de; s=s2048; t=1427464900; bh=5bBi+TxK0N3fyhKlgmIpuwot9QSvbhu5yHRqsFpJaxA=; h=Date:From:Reply-To:To:In-Reply-To:References:Subject:From:Subject; b=uL0xwWMNZ1LCBi5ItGQClBuVC8QtQjyNCTl/LguF04UAJR3fiv9bCP0W36AJ6KfeufHf2jTnJhd/rtcwskgbXtg/TD+gxh+xhdlN/hqMjwDtc7zEgy/N6ve+wrubk800dDP/x0HvSThs0U9tWtKh/DWiXOeLyAfKxe0kPLql40it8/9oaasQlgr6UzQkhM4xkkPogHR6Ns8HH6aznspiYRaYd+O/S0T1T4gdlJrYW0eH7A/u/Sn9MJHUUR9frfKDpsTyHOJv47MZrISsYg5i54s0ZwmOW1gxOZQlX+1Wwu0JVlR28oznDsA+g0xLT/xnarTaTHrdB9OVC6Bb9MCocA== Received: from [98.139.215.142] by nm2.bullet.mail.bf1.yahoo.com with NNFMP; 27 Mar 2015 14:01:40 -0000 Received: from [98.139.212.219] by tm13.bullet.mail.bf1.yahoo.com with NNFMP; 27 Mar 2015 14:01:40 -0000 Received: from [127.0.0.1] by omp1028.mail.bf1.yahoo.com with NNFMP; 27 Mar 2015 14:01:40 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 199777.25102.bm@omp1028.mail.bf1.yahoo.com X-YMail-OSG: I1X6vnkVM1lOeGCv85ve2lfMxbWtHDcXsoECnAdWHf2_TwhxFPp19Hpm1Ks99u3 rEjLC0dd2GzJETd8iiQJGGrCJ2PxdBuR777VG3EuDpOe.xsUqFZVKOFQsatgb2GOAVeveHodmm6M b7adnJMM.vAoPal776hk6ub40RAJZoqUBZ0BHImm_vMzylfQBGvMfz1ANXoj6ql5_eGXc3v4cmqu 9rLY_IBBtuDANS9YQOR7YkESS0eBFji1o5sl0HoKXQShKj3OXEV2NE2ecfEEpp_h1Ny8TIlQ6onT nqckRQCMtp..Pp.sLVkGmNa4XrXW4L9jP87A5Ha6e.4H0eyrtBSJ73QfZ.xLrUIMmhH0L_oajyOz 211v3GAXaHhhcS2PGxiqzJRk5nnPpaenfbnMqKAxVf0lVFA._T4ZP9HfBtHkZIuiPEV8S19eC7lu 2EiZ9HkKGaaNTtFaV6m3QZrXZxbKViZ4_C9d9aGUgDe9SAzuypZnLhpaCfLmie1VATA5ukadSA_a AvwD0lWXLLKxu508CopEIgA-- Received: by 212.82.98.115; Fri, 27 Mar 2015 14:01:39 +0000 Date: Fri, 27 Mar 2015 14:01:38 +0000 (UTC) From: Hans-Heinrich Braun Reply-To: Hans-Heinrich Braun To: "users@cocoon.apache.org" Message-ID: <1616093126.4128088.1427464898748.JavaMail.yahoo@mail.yahoo.com> In-Reply-To: References: Subject: cocoon ProgessService and Hibernate MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_4128087_1369908356.1427464898743" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_4128087_1369908356.1427464898743 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I am using cocoon 3.0 with Hibernate.To enable Lazy Loading I insert in= web.xml=C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 lazyLoadingF= ilter=C2=A0 =C2=A0 =C2=A0 =C2=A0 org.apache.coc= oon.tools.rcl.wrapper.servlet.ReloadingServletFilter=C2=A0 = =C2=A0 filter-classorg.sp= ringframework.orm.hibernate4.support.OpenSessionInViewFilter<= /init-param>=C2=A0 =C2=A0=C2=A0 =C2=A0 =C2=A0 =C2= =A0 lazyLoadingFilter=C2=A0 =C2=A0 =C2=A0 =C2=A0= /*=C2=A0 =C2=A0 Which is Ok wi= th a normal RestController.But with ProgressService I get still =C2=A0the e= rror org.hibernate.LazyInitializationException: could not initialize proxy - no = Session=C2=A0when I use Lazy Loading Best regardsHeiner ------=_Part_4128087_1369908356.1427464898743 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


I am usi= ng cocoon 3.0 with Hibernate.
To enable = Lazy Loading I insert in web.xml
&nbs= p;<filter>
        <filter-name>laz= yLoadingFilter</filter-name>
        <= filter-class>org.apache.cocoon.tools.rcl.wrapper.servlet.ReloadingServle= tFilter</filter-class>
    <init-param>
=
<param-name>filter-class</param-name>
<param-valu= e>org.springframework.orm.hibernate4.support.OpenSessionInViewFilter<= /param-value>
</init-param>
</filter>
<= div dir=3D"ltr" id=3D"yui_3_16_0_1_1427464235051_3263" class=3D"" style=3D"= ">   <filter-mapping>
        &= lt;filter-name>lazyLoadingFilter</filter-name>
  &nbs= p;     <url-pattern>/*</url-pattern>
  &= nbsp; </filter-mapping>
Whic= h is Ok with a normal RestController.
= But with ProgressService I get still  the error

org.hibernate.LazyInit= ializationException: could not initialize proxy - no Session
 = when I use Lazy Loading

Best regards
Heiner<= /div>

------=_Part_4128087_1369908356.1427464898743--