wood burning stoves 2.0*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSF 2 : hibernate session problem in manadged beans
 
Similar Threads
When trying to deploy my JSF 2.0 JSP page I get this:
javax.faces.application.ViewExpiredException
issues integrating seam2.1.1 and facelets 1.1.14 to myfaces 1.25, spring 2.5 and hibernate 3.4 app
Error JSF 2.1: java.io.FileNotFoundException:*/*.xhtml Not Found in ExternalContext
a4j is not found