• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

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

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Nothing? Or something? Like this tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic