This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds and have James Denton on-line!
See this thread for details.
Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Servlets with JDBC -Driver problem  RSS feed

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I am working with Servlets and JDBC right now. I am facing a problem. I hope any of you people can help me out. I worked with Servlets program and JDBC program. Both r working fine. When I club the JDBC program into the Servlets program appropriately and run the servlet in a web browser, I am getting an error saying that "No Suitable Driver". Do I need to register my driver with the webbrowser? I mean do I need to do any browser settings for the driver? I am using I-net Sprinta2000 type-4 JDBC driver. And I am using SQL-Server 7 for back-end. Hope I will get around with my problem with all of ur help. Thank you.
Kiran
 
mister krabs
Ranch Hand
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The browser has nothing to do with JDBC since the JDBC is running on the server. Check the code and make sure that you are properly loading the driver and properly specifying the correct URL in the getConnection.
 
kiran bayyana
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank u very much for ur reply. I think the problem is not with my code because I did everything properly. I got the answer for my previous problem. I am using JavaWebServer2.0. Because it has it's own classpath settings, the problem originated. It is not recognizing the driver. I copied all the driver classes in the servlets directory of the server where it can recognize. Now the message is changed saying that Inet Sprinta 2000 driver need JVM1.2 or higher. I am using JDK1.2. How to know the JVM version and how to solve this problem? Thanks again.
Kiran
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!