Struts has detected an unhandled exception:
Messages: ?Could not obtain transaction-synchronized Session for current thread
File: org/springframework/orm/hibernate5/SpringSessionContext.java
Line number: 132
Stacktraces
org.hibernate.HibernateException: Could not obtain transaction-synchronized Session for current thread
org springframework orm hibernate5 springsessioncontext currentsession springsessioncontext java : 132 )
org hibernate internal sessionfactoryimpl getcurrentsession sessionfactoryimpl java : 687 )
com com service departmentdao getseesion departmentdao java : 20 )
com com service departmentdao getall departmentdao java : 26 )
com com service departmentservice getall departmentservice java : 19 )
com.actions.DepartmentAction.list(DepartmentAction.java:28)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:498)
ognl.OgnlRuntime.invokeMethod(OgnlRuntime.java:870)
ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1293)
The original target path is: Com.com.service in
expression="execution(* com.*.*(..))"/>
This error occurs.
Modify the target path to: Com.service after the
expression="execution(* com.service.*.*(..))"/>
Solve.
From for notes (Wiz)
The transaction is not configured to cause:? Could not obtain transaction-synchronized Session for current thread