Visakh,

The user that you have the web server running as probably does not have the
CLASSPATH set correctly else it would be able to find the jdbc drivers.

Regards,
Jonathan

BTW - You didn't mention what platform you are on (NT/Unix?) ...


-----Original Message-----
From: Visakh Menon [mailto:[EMAIL PROTECTED]]
Sent: 24 April, 2000 12:16 PM
To: [EMAIL PROTECTED]
Subject: DB connection problem with NES/Jrun


Hi folks

I'm using NES 3.6 webserver and Jrun 2.3.3 servlet engine.
I'm trying to connect to a oracle database in a remote machine
using JDBC (using Oracle thin driver). I can connect if I run the
program from command prompt. but If I try to run as a servlet
I get an error.

java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
[oracle.jdbc.driver.OracleDriver] java.sql.SQLException: No suitable driver

Code :
Class.forName ("oracle.jdbc.driver.OracleDriver");
DriverManager.getConnection    ("jdbc:oracle:thin:@server-ip:1521:orcl",
"username", "pwd");

I have set oracle.jar (driver)  file in my Class path.

Do I need to make some changes in NES/Jrun setup for accessing Oracle DB?

Thanks

Vis..

________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to