Dear Team,
I'm new with Tomcat & Hibernate. We have a weird problem: When I test our website locally with Tomcat & MySQL, everything is OK. But after I copy our webapp under Tomcat to remote web hosting, I can only access the JSP pages, not able to access data from database. The error on page is below, Data Access Failure JDBC exception on Hibernate data access; nested exception is org.hibernate.exception .SQLGrammarException: could not insert: [com.cmn.model.User] I did Google search and someone said the hibernate mapping maybe not good. In my local Tomcat, I can see bunch of * hbm.xml under work/Catalina/localhost/cmnweb /loader/com/cmn/model/ But I'm not sure the remote Tomcat since it's a shared hosting. My questions: 1) Any idea about above Hibernate Data Access Failure? 2) How does Tomcat decide to load *hbm.xml from my lib cmnweb-dao.jar, but not all .jar in WEB-INF/lib/ ? Thanks a lot! -Mike __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com