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

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: bean id=transactionManager

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

Re: struts2+hibernate+spring - lazyInitaializationException

2010-07-19 Thread Robert Taylor
; but they are there for consistency). /robert - Original Message - From: Brian Thompson elephant...@gmail.com To: Struts Users Mailing List user@struts.apache.org; lukasz.len...@gmail.com Sent: Monday, July 19, 2010 1:22 PM Subject: Re: struts2+hibernate+spring - lazyInitaializationException

Re: struts2+hibernate+spring - lazyInitaializationException

2010-07-19 Thread Greg Stasica
; but they are there for consistency). /robert - Original Message - From: Brian Thompson elephant...@gmail.com To: Struts Users Mailing List user@struts.apache.org; lukasz.len...@gmail.com Sent: Monday, July 19, 2010 1:22 PM Subject: Re: struts2+hibernate+spring - lazyInitaializationException

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