----------------------------------------------------------------
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!!!
----------------------------------------------------------------
Anuj
The driver needs to be in either your classpath or your wrapper.classpath
or in the correct directory in your repository.
The error message is tell in you that the JDBC driver class file cannot be
found.
hth
Chris
On 13 Oct 2000 13:03:13 -0700, [EMAIL PROTECTED] 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!!!
>----------------------------------------------------------------
>
>Hello,
>
>I have written a servlet to connectto a PostgreSQL database on Linux 6.2.
>
>I am using JdbcOdbcDriver. When I am running the servlet from JSWDK on Windows NT ,
>it works fine .
>
>But when I try to run it from JSWDK on Linux , it gives an exception "No Suitable
>Driver".
>
>My code is like this:
>
>Class.forName("sun.jdbc.odbc.JdbcOdbcDriver")
>DriverManager.getConnection("jdbc:odbc:cards","anuj","")
>
>the .odbc.ini file is kept in "/" directory and it is:
>
>[ODBC Data Sources]
>cards = PostgreSQL
>
>[cards]
>Driver = /usr/local/pgsql/lib/libpgsqlodbc.so.1
>Database = cards
>UID = anuj
>Servername = localhost
>Port = 5432
>
>The error is coming in when I try to do getConnection.
>If anybody could help me in this, please.
>I believe there must be something wrong in Configuration,as the same code works from
>JWSDK on NT.
>
>TIA,
>Anuj.
>
>Anuj Paul
>_______________________________________
>Click here to get your free domain name
>and personal portal from NAMEzero(TM):
>http://www.namezero.com
>
>
>--
>--------------------------------------------------------------
>Please read the FAQ! <http://java.apache.org/faq/>
>To subscribe: [EMAIL PROTECTED]
>To unsubscribe: [EMAIL PROTECTED]
>Search Archives:
><http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
>Problems?: [EMAIL PROTECTED]
>
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search Archives:
<http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]