Re: CORRECT portlet+spring+hibernate configuration (Two options, what's right?)

2009-09-12 Thread Gonzalo Aguilar Delgado
Hi again! I'm really lost on this toppic. It seems to not work. First of all. Can someone post a complete configuration of a wicket portlet + spring, please? I found several ways to do it but none seems to be correct. Thank you. El mar, 18-08-2009 a las 09:53 +0200, nino martinez wael escr

Re: CORRECT portlet+spring+hibernate configuration (Two options, what's right?)

2009-09-12 Thread Gonzalo Aguilar Delgado
Hi again! I'm really lost on this toppic. It seems to not work. First of all. Can someone post a complete configuration of a wicket portlet + spring, please? I found several ways to do it but none seems to be correct. Thank you. El mar, 18-08-2009 a las 09:53 +0200, nino martinez wael es

Re: CORRECT portlet+spring+hibernate configuration (Two options, what's right?)

2009-08-18 Thread nino martinez wael
Happy to help, please see further answers below. 2009/8/17 Gonzalo Aguilar Delgado : > > >> I have several suggestions. >> >> The order of the web filters are important. You could also try with >> with the wicket spring managed apps, im not sure how that applies. > > Will check. I didn't know abou

Re: CORRECT portlet+spring+hibernate configuration (Two options, what's right?)

2009-08-17 Thread Gonzalo Aguilar Delgado
> I have several suggestions. > > The order of the web filters are important. You could also try with > with the wicket spring managed apps, im not sure how that applies. Will check. I didn't know about filter order... Will also check it. Thanks! > > And are you sure that your filter ( /hibe

Re: CORRECT portlet+spring+hibernate configuration (Two options, what's right?)

2009-08-17 Thread nino martinez wael
Hmm I have several suggestions. The order of the web filters are important. You could also try with with the wicket spring managed apps, im not sure how that applies. And are you sure that your filter ( /hibernate/*), get's hit? What's your wicket filter url, the same or? 2009/8/17 Gonzalo Agui

Re: CORRECT portlet+spring+hibernate configuration (Two options, what's right?)

2009-08-17 Thread Gonzalo Aguilar Delgado
Ok. Maybe I don't understand... Let me show the situation. I have Spring + portlet + hibernate config with transactions working with the current configuration: I have my DAO objects under package com.level2crm.hibernate.enterprise.dao.contact And model under com.level2crm.model I configured one

Re: CORRECT portlet+spring+hibernate configuration (Two options, what's right?)

2009-08-17 Thread nino martinez wael
n view or more preferred >> AFAIK detachable models. >> >> 2009/8/14 Russell Simpkins : >> > >> > Errors like those are caused when the hibernate session is closed too soon. >> > https://www.hibernate.org/43.html >> > Russ >> > >

Re: CORRECT portlet+spring+hibernate configuration (Two options, what's right?)

2009-08-17 Thread Gonzalo Aguilar Delgado
; > Errors like those are caused when the hibernate session is closed too soon. > > https://www.hibernate.org/43.html > > Russ > > > >> Subject: Re: CORRECT portlet+spring+hibernate configuration (Two options, > >> what's right?) > >> From: g...@

Re: CORRECT portlet+spring+hibernate configuration (Two options, what's right?)

2009-08-14 Thread nino martinez wael
tlet+spring+hibernate configuration (Two options, >> what's right?) >> From: g...@aguilardelgado.com >> To: users@wicket.apache.org >> Date: Fri, 14 Aug 2009 11:01:05 +0200 >> >> About the error I mentioned the exception it throws is: >> >&

RE: CORRECT portlet+spring+hibernate configuration (Two options, what's right?)

2009-08-14 Thread Russell Simpkins
Errors like those are caused when the hibernate session is closed too soon. https://www.hibernate.org/43.html Russ > Subject: Re: CORRECT portlet+spring+hibernate configuration (Two options, > what's right?) > From: g...@aguilardelgado.com > To: users@wicket.apache.org > Da

Re: CORRECT portlet+spring+hibernate configuration (Two options, what's right?)

2009-08-14 Thread Gonzalo Aguilar Delgado
About the error I mentioned the exception it throws is: Caused by: org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: com.level2crm.hibernate.generated.User.contactBasicDetails, no session or session was closed at org.hibernate.collection.AbstractP

CORRECT portlet+spring+hibernate configuration (Two options, what's right?)

2009-08-14 Thread Gonzalo Aguilar Delgado
Hi again, For a shake of completeness y will provide two of the working configurations I've found to work. I would know what's the one correct and why. Someone can throw a little bit light on this issue, please? -=[ First Choice ]=- - web.xml -