Re: struts2+hibernate+spring - lazyInitaializationException

2010-07-19 Thread Greg Stasica
> unnecessary within the OSIV scope; but they are there for consistency). > > /robert > - Original Message - From: "Brian Thompson" > > To: "Struts Users Mailing List" ; < > lukasz.len...@gmail.com> > Sent: Monday, July 19, 2010 1:22 PM

Re: struts2+hibernate+spring - lazyInitaializationException

2010-07-19 Thread Robert Taylor
are there for consistency). /robert - Original Message - From: "Brian Thompson" To: "Struts Users Mailing List" ; Sent: Monday, July 19, 2010 1:22 PM Subject: Re: struts2+hibernate+spring - lazyInitaializationException Looks to me like the session is being cl

Re: struts2+hibernate+spring - lazyInitaializationException

2010-07-19 Thread Greg Stasica
hi, thanks for your replies lukasz i'm not sure where the problem exactly is but after my additional test i don't think it's s2 related... i'll try to check hibernate brian i've done tests with your changes but to no avail... still the same problem even when my dao implementation class has a tra

Re: struts2+hibernate+spring - lazyInitaializationException

2010-07-19 Thread Brian Thompson
Looks to me like the session is being closed in the scope of hibernateTemplate.get(). I don't see a transactionManager mentioned in the XML ... you could try adding something like this in the XML configuration file: n.b. I haven't tested the above con

Re: struts2+hibernate+spring - lazyInitaializationException

2010-07-19 Thread Lukasz Lenart
Hi, I really don't see how Struts2 can messed it up. Would you try to write a unit test to check that? Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ Kapituła Javarsovia 2010 http://javarsovia.pl - To unsubscribe

struts2+hibernate+spring - lazyInitaializationException

2010-07-18 Thread Greg Stasica
hi, i've been testing very simply scenario using aforementioned technologies but all i get is LazyInitializationException while trying to access my entity collection. I've included some code snippets below to make myself very clear. I don't think there is anything wrong with the attached code as m