readthefuckingmanual.net

[SOLVED] No CurrentSessionContext configured

Error added: 2009-01-03T02:20:26Z

0 people waiting for the answer...

1 answers found.

Answer 921 (0.0% helpful)

It\'s a simple configuration problem. You probably forgot to set the hibernate internal session context management in your hibernate.cfg.xml:

        <!-- Enable Hibernate\'s automatic session context management -->
        <property name=\"current_session_context_class\">thread</property>


After I set this it worked for me (and gave me another error, but that\'s the next problem to solve ;-)
Permalink

Add an answer/solution

If you know the answer, please add your own solution below.
If you don't know, but find out later, please come back and share your answer - there will be other people struggling with this too.


Please enter 61948 here

If you want to be notified via email when this is solved, enter your email address here: