----------------------------------------------------------------
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!!!
----------------------------------------------------------------

Jon,

 I did not try putting in a main since I figured that with sun's javaweb
server it can query the db fine with the same code on the same machine. 
However, the connect code looks like this: (I believe it's similar to the
one in the java servlet programming book from oreilly)

...  
static final String driver_class = "oracle.jdbc.driver.OracleDriver";
...
      try
      {
        if (conn == null)
        {
          // Load the JDBC driver
          //output.appendText ("Loading JDBC driver " + driver_class +
"...\n"); 
          Class.forName(driver_class);
        
          //output.appendText("Connecting...\n");

         DriverManager.registerDriver (new oracle.jdbc.driver.OracleDriver
()); 
          
          conn =
DriverManager.getConnection("jdbc:oracle:thin:@tt44br01:1526:prs",
"pradm", "prsadm");
        }
...

I will try and put a main function to see if that can give me an idea.

Thanks,
 Anthony

On
Mon, 7 Feb 2000, jon * wrote: 

> ----------------------------------------------------------------
> 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!!!
> ----------------------------------------------------------------
> 
> on 2/7/00 3:37 PM, quon <[EMAIL PROTECTED]> wrote:
> 
> > This is the error I'm getting after about 5 minutes of wait time from my
> > browser. Also, I have the following on my jserv properties line:
> > 
> > 
> > wrapper.classpath=/usr/oracle/jdbc/lib/classes111.zip
> > 
> > I forgot to include that in my previous post that I have included in this
> > message as well.
> 
> You also forgot to show us your connect code. You also forgot to tell us
> whether or not you have tried to run this code as a simple Main() to see if
> it is a problem with your Oracle setup.
> 
> -jon
> 
> -- 
> Come to the first official Apache Software Foundation
> Conference!  <http://ApacheCon.Com/>
> 
> 
> 
> 
> --
> --------------------------------------------------------------
> 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]
> 
> 



--
--------------------------------------------------------------
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