Forums Register Login

URGENT: problem with JdbcOdbcDriver

+Pie Number of slices to send: Send
Hi
i'm using a datasource object to get a connection. But it gives me 'No Suitable Driver'. Following is a part of server.xml in Tomcat 4.1.
******************************************************************
<parameter>
<name>url</name>
<value>jdbc dbc:TeamDataSource</value>
</parameter>
<parameter>
<name>driverClassName</name>
<value>sun.jdbc.odbc.JdbcOdbcDriver</value>
</parameter>
*********************************************************************

But if i use DriverManager.getConnection with the same Database URL & the Driver, i'm able to get the Connection ...

Please help
Thank you in Advance
regards,
Augg
+Pie Number of slices to send: Send
Augg Augg-
Please don't post the same thread in multiple forums -- it's a bit confusing a wastes people time. Please continue the discussion in the original thread in JDBC.
Also, Welcome to the JavaRanch! We like to keep a nice professional lookin' image... (we don't want anyone to show up the Moose). So, can you please adjust your displayed name to match the JavaRanch Naming Policy? Basically it should be a believeable and not obviously fictitious first and last name.
You can change it here.
Thanks! and again welcome to the JavaRanch!
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


Reply locked
This thread has been viewed 499 times.
Similar Threads
URGENT - connection using JdbcOdbcDriver
URGENT: problem with JdbcOdbcDriver
Tomcat DataSource
Context in Virtual Hosts
JDBC driver for MS Access
JNDI Connection with Oracle (Problem with NullPointerException)
Tomcat 5.x - Cannot create PoolableConnectionFactory
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 05:26:19.