Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

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

share|improve this question
7  
Sounds like you're just missing the jar file from your classpath. Unfortunately you haven't told us anything about that side of things. – Jon Skeet Jun 19 '12 at 12:45
4  
If your directory is really called Web-iNF/lib, that may cause problems. It should be WEB-INF/lib – Disco 3 Jun 19 '12 at 12:48
Not related to your problem: But are you aware that Tomcat 5.5 is end-of-live September 2012. You should really think about upgrading. There is also a newer version of jTDS available (1.2.5) – a_horse_with_no_name Jun 19 '12 at 12:55
Had you added this .jar file to your Tomcat's classpath before continuing ? – nIcE cOw Jun 19 '12 at 13:15
if you think you added the jar, you could check if this driver class (net.sourceforge.jtds.jdbc.Driver) actually is inside the jar – Tom Jun 19 '12 at 13:41

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.