Hibernate ClassCastException in GWT hosted mode only
Hello and thanks for watching ;-) Our problem/error is: javax.persistence.PersistenceException: [PersistenceUnit: PUname] Unable to build EntityManagerFactory ... Caused by: org.hibernate.HibernateException: Could not instantiate dialect class ... Caused by: java.lang.ClassCastException: org.hibernate.dialect.MySQLDialect cannot be cast to org.hibernate.dialect.Dialect ... (see full stack trace at the bottom) It occurs in a GWT based web application using the following technologies: Maven Hibernate EntityManager /JPA Guice GWT GWT-P GWT Maven Plugin ... The fact to stress is that it does work