This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes JSF and the fly likes JSF 2 : hibernate session problem in manadged beans Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSF
Bookmark "JSF 2 : hibernate session problem in manadged beans" Watch "JSF 2 : hibernate session problem in manadged beans" New topic
Author

JSF 2 : hibernate session problem in manadged beans

Samuel Romero
Greenhorn

Joined: Nov 09, 2010
Posts: 2
Hello.

I am working with JSF 2 (and primeFaces) and JPA. My problem appears when I want to call a service (to make a search) from a manadged bean; I have the following exception when I try to get the hibernate current session : org.hibernate.SessionException : session is closed.

So, I would like to know if it miss me a special filter dor JSF 2 or primeFaces in my file web.xml, because I currently use the Spring OpenEntityManagerInViewFilter filter.
I hope you will be able to help me.
Thanks in advance.

pom.xml


web.xml


faces-config.xml
Samuel Romero
Greenhorn

Joined: Nov 09, 2010
Posts: 2
I just found the problem : the managed bean was created in my flow (I work with Spring WebFlow too) and not in my Spring context.

The topic is now closed! yes!
Regards.
 
GeeCON Prague 2014
 
subject: JSF 2 : hibernate session problem in manadged beans