Org. hibernate. hibernateexception: No currentsessioncontext configured!
At org. hibernate. impl. sessionfactoryimpl. getcurrentsession (sessionfactoryimpl. Java: 620)
At com. Ken. hibernate. model. hibernateormappingtest. saveusertest (hibernateormappingtest. Java: 36)
At sun. Reflect. nativemethodaccessorimpl. invoke0 (native method)
At sun. Reflect. nativemethodaccessorimpl. Invoke (nativemethodaccessorimpl. Java: 39)
At sun. Reflect. delegatingmethodaccessorimpl. Invoke (delegatingmethodaccessorimpl. Java: 25)
At java. Lang. Reflect. method. Invoke (method. Java: 597)
At org. JUnit. Runners. model. frameworkmethod $1. runreflectivecall (frameworkmethod. Java: 45)
At org. JUnit. Internal. Runners. model. reflectivecallable. Run (reflectivecallable. Java: 15)
At org. JUnit. Runners. model. frameworkmethod. invokeexplosively (frameworkmethod. Java: 42)
At org. JUnit. Internal. Runners. Statements. invokemethod. Evaluate (invokemethod. Java: 20)
At org. JUnit. Runners. parentrunner. runleaf (parentrunner. Java: 263)
At org. JUnit. Runners. blockjunit4classrunner. runchild (blockjunit4classrunner. Java: 68)
At org. JUnit. Runners. blockjunit4classrunner. runchild (blockjunit4classrunner. Java: 47)
At org. JUnit. Runners. parentrunner $ 3.run( parentrunner. Java: 231)
At org. JUnit. Runners. parentrunner $1. Schedule (parentrunner. Java: 60)
At org. JUnit. Runners. parentrunner. runchildren (parentrunner. Java: 229)
At org. JUnit. Runners. parentrunner. Access $000 (parentrunner. Java: 50)
At org. JUnit. Runners. parentrunner $2. Evaluate (parentrunner. Java: 222)
At org. JUnit. Internal. Runners. Statements. runbefores. Evaluate (runbefores. Java: 28)
At org. JUnit. Internal. Runners. Statements. runafters. Evaluate (runafters. Java: 30)
At org. JUnit. Runners. parentrunner. Run (parentrunner. Java: 300)
At org. Eclipse. jdt. Internal. junit4.runner. junit4testreference. Run (junit4testreference. Java: 50)
At org. Eclipse. jdt. Internal. JUnit. Runner. testexecution. Run (testexecution. Java: 38)
At org. Eclipse. jdt. Internal. JUnit. Runner. remotetestrunner. runtests (remotetestrunner. Java: 467)
At org. Eclipse. jdt. Internal. JUnit. Runner. remotetestrunner. runtests (remotetestrunner. Java: 683)
At org. Eclipse. jdt. Internal. JUnit. Runner. remotetestrunner. Run (remotetestrunner. Java: 390)
At org. Eclipse. jdt. Internal. JUnit. Runner. remotetestrunner. Main (remotetestrunner. Java: 197)
Originally: In session-factory in hibernate. cfg. xml
<! -- Enable hibernate's automatic Session Context Management
<Property name = "current_session_context_class"> thread </property>
-->
Commented out. Open it.