Upon attempting to start my web application. I get the exception "javax.persistence.PersistenceException: [PersistenceUnit: persistence_unit] Unable to build Hibernate SessionFactory".
I expect that this exception is caused by some incorrect configuration somewhere in the persistence.xml file and some incorrect configuration in my JPA-annotated code. But, i want to know what exactly is it. The problem however is that the exception message doens't say much.
What should i do if i want to be able to perilously find out what's causing the exception.
Note: I am using Spring REST + JPA (Hibernate implementation) connecting to a mysql database on a tomcatservlet container.
Toni Lane wrote:That's the last cause exception.
The resulting exceptions were about how spring can't create "entityManager" bean.
I am now researching hibernate logging. Any guides on that are appreciated.
The reason that no SessionFactory could be built was because the prerequisite EntityManager could not be created.
I know that stack traces are long, dreary and boring, and believe me, we get buried in enough excessive detail on questions that we do appreciate it when people try and keep it short, but in this case, we really do need you to copy and paste the entire stack trace from the log.