Hi All,
I am very new with Hibernate.Here i am trying to excute some example of hibernate 3.0 version ON Eclipse IDE with java 1.4.8 n databse is Microsoft SQLServer.
I am getting error like "JDBC Driver class not found: com.microsoft.jdbc.sqlserver.SQLServerDriver"
here is the hibernate.cfg.xml file:
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="hibernate.connection.driver_class">com.microsoft.jdbc.sqlserver.SQLServerDriver</property>
<property name="hibernate.connection.url">jdbc:microsoft:sqlserver://localhost/hibernatetutorial</property>
<property name="hibernate.connection.username">sa</property>
<property name="hibernate.connection.password">sa</property>
<property name="hibernate.connection.pool_size">10</property>
<property name="show_sql">true</property>
<property name="dialect">org.hibernate.dialect.SQLServerDialect</property>
<property name="hibernate.hbm2ddl.auto">update</property>
<!-- Mapping files -->
<mapping resource="contact.hbm.xml"/>
</session-factory>
</hibernate-configuration>
=====================================
N i copied all database jar files into the lib directory of the project like msbase.jar,mssqlserver.jar,msutil.jar....................I am not getting where is the mistake.
So could anybody help me on this.i will appreciate ur response.........
Warm Regards,
simmi
|