liferay « Tomcat « JPA Q&A





1. Why does Liferay need Hibernate session when Tomcat is shutting down?    liferay.com

Liferay could not open Hibernate Session for transaction when Tomcat 5.5 is shutting down. The following appears in the Liferay log every time: 11:13:26,274 INFO [[/liferay]:646] Closing Spring root WebApplicationContext 11:13:26,450 ERROR [MainServlet:816] org.springframework.transaction.CannotCreateTransactionException: Could not open Hibernate Session for transaction; nested exception is java.lang.reflect.UndeclaredThrowableException org.springframework.transaction.CannotCreateTransactionException: Could not open Hibernate Session for transaction; nested exception is java.lang.reflect.UndeclaredThrowableException ...