I am getting this error from the web application I’m working right now:
Initial SessionFactory creation failed.org.hibernate.InvalidMappingException: Could not parse mapping document from resource com/mygwtapp/shared/DTO/Account.hbm.xml
Starting Jetty on port 8888
[WARN] Exception while dispatching incoming RPC call
com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract void com.mygwtapp.client.service.UserService.createUser(com.mygwtapp.shared.DTO.Account)' threw an unexpected exception: java.lang.ExceptionInInitializerError
Here is my Account.java
Here is my Account.hbm.xml and hibernate.cfg.xml
It turns out that it is missing a JAR file:
mysql-connector-java-5.1.18-bin.jarWhich is needed to be in
/WEB-INF/libfolderAnd that the Account.hbm.xml class name tag:
Should be: