Cannot load JDBC driver class 'net.sourceforge.jtds.jdbc.Driver'

user1466436 picture user1466436 · Jun 19, 2012 · Viewed 9.3k times · Source

I have some problems with jtds.

I'm using Hibernate, Tomcat 5.5 on Linux Red Hat Server, SQL Server 2005 with WIndows Server

I save the library into Web-iNF/lib and i'm using the version jtds-1.2.2

I got the Error Message

16:56:17,561 ERROR JDBCExceptionReporter:78 - Cannot load JDBC driver class 'net.sourceforge.jtds.jdbc.Driver'

can some one explain what i'm doing wrong?

Here the connection definition.

<Resource name="pr/jdbc/dsConn" auth="Container" type="javax.sql.DataSource" maxActive="100" maxIdle="30" maxWait="10000" username="example" password="test1234" driverClassName="net.sourceforge.jtds.jdbc.Driver" url="jdbc:jtds:sqlserver://localhost:1433/example" /> 

Can someone help me with this issue?

best regards

Answer