It could either be

- the CLASSPATH
- a Firewall between Apache and Oracle
- Valid UID, PWD
- Oracle install (We use the ThinClient driver which doesn't require SQL*NET (Client 
Side DLL's or .SO files))

What is the println producing ?

Bill Lindsay
Retirement Group - VP
Online Services

-----Original Message-----
From: Brian Moynihan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 02, 2002 10:37 AM
To: [EMAIL PROTECTED]
Subject: Problem loading oracle jdbc driver in servlet under Tomcat

Hi all,

When running servlets under Apache Tomcat 4.0, attempting to load the oracle
jdbc driver is crashing. The code I am using is as follows:

          // Try and connect to the database
          // Load the Oracle JDBC driver
          try {
            DriverManager.registerDriver(new
oracle.jdbc.driver.OracleDriver());
          }
          catch (SQLException se) {
            System.out.println("Could not load jdbc driver: " + se);
          }

This produces an html error page when the servlet is accessed. This code
works fine in a standalone java program. Can anyone help define the
difference in what a standalone program needs and a servlet needs to load
the jdbc driver.

Any help is appreciated ...


**********************************************************************
Privileged, confidential and/or copyright information may be contained
in this e-mail. This e-mail is for the use only of the intended
addressee. If you are not the intended addressee, or the person
responsible for delivering it to the intended addressee, you may not
copy, forward, disclose or otherwise use it or any part of it in any
way whatsoever. To do so is prohibited and may be unlawful.

If you receive this e-mail by mistake please advise the sender
immediately by using the reply facility in your e-mail software.

Orygen (Ireland) Limited may monitor the content of e-mails sent and
received via its network for the purposes of ensuring compliance with
its policies and procedures.

This message is subject to and does not create or vary any contractual
relationship between Orygen (Ireland) Limited and you.
**********************************************************************

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to