-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Mike,
Mike LI wrote: > Data Access Failure JDBC exception on Hibernate data access; nested > exception is org.hibernate.exception .SQLGrammarException: could not > insert: [com.cmn.model.User] Can you post more of this stack trace? I wonder if the real problem is "cannot connect to database", and not "SQL syntax error", as suggested by the exception class. Can you verify that you can reach the hibernate database from your app server? There may be a firewall or other barrier between the two machines. > 2) How does Tomcat decide to load *hbm.xml from my lib > cmnweb-dao.jar, but not all .jar in WEB-INF/lib/ ? Tomcat "loads" JAR files whenever a class is requested that resides in the JAR file. They might not all be processed at once. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHIi/a9CaO5/Lv0PARAtedAJ0bKrCMSazZTalpfmH145kOrwsStACfb2Co OTMS4tdR9ATaX/HeFmPZtss= =3rG9 -----END PGP SIGNATURE----- --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]