ClassNotFoundException

Hi All,

I am having trouble getting a connection to the database.

When i try and connect, i get the exception ClassNotFoundException com.informix.jdbc.IfxDriver.

I know that the ifx driver is in my lib directory and loaded on startup.

The line of code it fails on is:

Class.forName("com.informix.jdbc.IfxDriver");

Curiously, if i remove this line of code - the connection works.

I am using this in a web app running under Websphere 6.1

Any help would be appreciated.

[522 byte] By [chellbellea] at [2007-11-27 11:22:27]
# 1

> I know that the ifx driver is in my lib directory and loaded on startup.

To be honest, but the exception says something else. I rather rely on the exception than on your "knowledge". Where is the lib directory? What's the classpath? What's the runtime environment used? Are you using the classpath of *that* runtime environment?

BalusCa at 2007-7-29 14:54:58 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...