Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java Open Source > Apache Tomcat
|
Apache Tomcat General discussion of the Apache Tomcat servlet container. For discussions specific to the Professional Apache Tomcat book, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Apache Tomcat section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 28th, 2007, 12:15 AM
Registered User
 
Join Date: Nov 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to zhuchunlai
Default SQLException no suitable driver

with B/S pattern, I develop a web application, during connect to oracle DB, there is a SQLException no suitable driver .
I don't know why!

some codes as follows :
   Class.forName("oracle.jdbc.driver.OracleDriver");
   DriverManager.getConnection("jdbc:oracle:thin:@loc alhost:1521:accp","scott","tiger");

I have set project properties, load oracle driver package(classes12.jar).

if someone have free time, please give me some help!Thanks very much!

waiting for reply!

 
Old November 28th, 2007, 11:20 AM
Friend of Wrox
 
Join Date: Mar 2007
Posts: 373
Thanks: 0
Thanked 1 Time in 1 Post
Default

The jar file should be part of your build [in WEB-INF/lib directory]. Check its available while deploying the application or not.


- Rakesh
 
Old November 29th, 2007, 10:51 AM
Registered User
 
Join Date: Nov 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to zhuchunlai
Default

Thank you very much for your help! But the jar file exists in WEB-INF/lib .






Similar Threads
Thread Thread Starter Forum Replies Last Post
SQLException in using odbc excel driver lironnezers Java Databases 2 December 20th, 2010 08:02 AM
java.sql.SQLException: [Microsoft][ODBC Driver Man pvsharinath@gmail.com Java Databases 1 May 5th, 2005 02:40 AM
java.sql.SQLException: Error loading JDBC Driver jdphjp Java Databases 1 August 5th, 2004 12:46 AM
suitable mysql driver mrkhairy JSP Basics 3 August 1st, 2003 12:32 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.