This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
You must have the class:
in your classpath. Database vendors usually provide drivers for Java. When you are using Hibernate in a standalone application you can load the driver's class manually:
OK, so change the file extension of this file from war to zip, extract it and take a look if the extracted folder WEB-INF/lib contains JAR with the driver.
However James Boswell has a good idea - the driver should be placed in the application server's lib folder.
James Boswell Thanks for your help. It worked for me!
I copied the Sqljdbc4.0.jar to E:\Servers\jboss-6.1.0.Final\server\default\lib and working fine.
I thought that the Server automatically will take care of the classpath uploads.
Lucas Smith Thanks for your suggestions and efforts.