Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: JDBC Driver Connection problems
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
![]() |
![]() |