This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
This is my first time trying out hibernate. I am attempting to insert a new record via a servlet call in IE. This servlet would in turn invoke a javabean that does the actual work of insertion.
I believe there is something wrong with my deployment. Pls help to check
Details: ------------ App Server: Tomcat 4 Database: SQL Server 2000 Hibernate ver: 2 Error Msg: could not insert: [spectra.commons.hibernate.AppLabs#2]
File Breakdown ---------------- AppLabs.java: This is the persistent POJO hibernate.cfg.xml: This is located in my tomcat web-inf/classes Additional remarks: All other library files are located in web-inf/classes
Also check your web server console to see if you get a stack trace of an exception, that might give you more information like something like "inserted value for field to long", It should be an SQLException in cases like that.