Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Context give: Cannot load JDBC driver class 'com.microsoft.sqlserver.jdbc.SQLServerDriver'

 
Anders Boje Larsen
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I have in many years use a JDBC Driver 2000, but now we are moved to a MS SQL Server 2008. That's why I now are trying to make e connection with sqljdbc4.jar from MS.

Normally we use "context" to make the connection.


But now i give me a exception.


It works with a connection make like this:


I use jakarta-tomcat-5.5.9 and Eclipse, with JDBC Driver SQL 4.0.

I have placed the jar file the workspace WEB-INF/lib and on TOMCAT: C:\jakarta-tomcat-5.5.9\common\lib

Please help me to get the context to work

THANKS
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That looks like you may be running a JVM that is too old to support the classes in the new driver.
 
Anders Boje Larsen
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You may have right in that conclusion.

I tried to run some code with the connection that works and get this error that I think tell the same story as you.



I can read that JVM is a way to execution some code on my machine, is that right?
And who can i update and solved this problem?
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I can read that JVM is a way to execution some code on my machine, is that right?

Yes. Upgrade your JRE/JDK (as appropriate).
 
Anders Boje Larsen
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I solved the problem with use sqljdbc.jar instead of sqljdbc4.jdbc.
There are to different in the same version. I are not allow to update the java version we are running here.

Thanks for the help.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic