-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: JDBC Driver class not found: com.microsoft.jdbc.sqlserver.SQ
PostPosted: Wed Dec 21, 2005 1:03 pm 
Newbie

Joined: Wed Dec 21, 2005 12:51 pm
Posts: 4
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

_________________
simmi


Top
 Profile  
 
 Post subject: add as a library
PostPosted: Wed Dec 21, 2005 6:35 pm 
Expert
Expert

Joined: Fri Jul 22, 2005 2:42 pm
Posts: 670
Location: Seattle, WA
The JDBC driver should be known as a library to the IDE and your project should include the library.
See adding user libraries section here:
http://www.keelframework.org/release/2. ... lipse.html

_________________
--------------
Konstantin

SourceLabs - dependable OpenSource systems


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.