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.
subject: Hibernate :No suitable driver found for jdbc:sqlserver://localhost:1433;DatabaseName=XXX