• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic