Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: JDBC Driver Connection problems

Re: JDBC Driver Connection problems

From: C. Ferguson <c_ferguson_at_rationalconcepts.com>
Date: Sat, 04 Sep 1999 13:50:57 -0700
Message-ID: <37D18631.60216580@rationalconcepts.com>


Hi,
  Is the oracle driver in the classpath of the servlet? Can you configure your servlet engine to "pick up" the classes111.zip or classes12.zip file also. If not, try unzipping the classes111.zip or classes12.zip file in the servlet class directory.

Hope that helps,
Cindy

jove1111_at_my-deja.com wrote:

> I'm trying to connect to a database from a servlet.
>
> I would like to use :
> Class.forName("oracle.jdbc.driver.OracleDriver");
>
> followed by :
> "con=DriverManager.getConnection
> ("jdbc:oracle:thin:@DBNAME:1533", "user","password");
>
> but I can only use "sun.jdbc.odbc.JdbcOdbcDriver"
> followed by :
> con = DriverManager.getConnection("jdbc:odbc:DB","User", "Password");
>
> why is that?
> the error massage is "could not load driver..."
>
> Sent via Deja.com http://www.deja.com/
> Share what you know. Learn what you don't.
Received on Sat Sep 04 1999 - 15:50:57 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US