当出现错误
org.hibernate.InvalidMappingException: Could not parse mapping document from resource com/aa.hbm.xml
at org.hibernate.cfg.Configuration.addResource(Configuration.java:671)
at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1679)
at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1647)
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1626)
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1600)
at org.hibernate.cfg.Configuration.configure(Configuration.java:1520)
at com.govweb.orm.HibernateSessionFactory.<clinit>(HibernateSessionFactory.java:30)
at com.govweb.access.dao.AdminLoginDAOImpl.isExist(AdminLoginDAOImpl.java:14)
at com.govweb.access.action.LoginAction.execute(LoginAction.java:189)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
这种错误必须认真检查javabean和hbm.xml的对应性,尤其是大小写,很容易被忽略!!!