File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
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.
 
wood burning stoves
 
subject: Could not open or inject a Hibernate Session in ValueStack