----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------

Solaris 2.7
Oracle 8.1.6
JDBC 1.1.1
standard JSDK

I have a class that compiles perfectly and works from the command line (with a 
suitable main method etc) but fails when called from a servlet.

It contains the lines:

Class.forName ("oracle.jdbc.driver.OracleDriver");
con = DriverManager.getConnection 
("jdbc:oracle:thin:@hostname:1526:dbname","login","password");

In Bourne I get results for my SQL queries.

In the browser I get the error:

"Couldn't load database driver oracle.jdbc.driver.OracleDriver"

I have other servlets working OK - just not JDBC-based ones: what could I be 
overlooking?

TIA! 

-- 
best, Mark Sealey - Web Developer
The Getty, Los Angeles CA
(+1 310) 440 6526  www.getty.edu



--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to