aspose file tools*
The moose likes Object Relational Mapping and the fly likes Could not open or inject a Hibernate Session in ValueStack Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Could not open or inject a Hibernate Session in ValueStack" Watch "Could not open or inject a Hibernate Session in ValueStack" New topic
Author

Could not open or inject a Hibernate Session in ValueStack

tyte kyat
Ranch Hand

Joined: May 17, 2011
Posts: 40
Hi, seniors

I got a problem which I could not figure it out.

I got a simple application, which use hibernate 3.xx and struts 2.xx

Every thing is working fine. but one problem, which is when I restart my application for the first time or after some time when there is gap between the previous request of the page and the future coming request, I am having the following error.




after reading some similar problems, it is assumed (I guest) because of the connection which is dead after some period. and suggest to use connection pooling. So, I tried but not succeed yet.

So, if someone already come across to this point or know how to figure it out. please let me know.

This post is uploaded after reading similar problems and uploaded after this post.
Thanks in advance.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Could not open or inject a Hibernate Session in ValueStack