I'm having some difficulty creating a DataSource using the default Tyrex factory provided in Tomcat 4. In the DefaultContext, I have: <ResourceParams name="jdbc/SomeDB"> <parameter> <name>user</name> <value>username</value> </parameter> <parameter> <name>password</name> <value>pass</value> </parameter> <parameter> <name>driverClassName</name> <value>com.jnetdirect.jsql.JSQLDriver</value> </parameter> <parameter> <name>driverName</name> <value>jdbc:JSQLConnect://dbhost/database=somedata</value> </parameter> </ResourceParams> And in my code I: Context initCtx = new InitialContext(); Context envCtx = (Context) initCtx.lookup("java:comp/env"); DataSource ds = (DataSource) envCtx.lookup("jdbc/SomeDB"); Connection conn = ds.getConnection(); However, at runtime, I get the following error on the third line of the above code fragment: java.lang.ClassCastException: tyrex.jdbc.xa.EnabledDataSource I do not have the Tyrex jar in my classpath at compile time, and I don't believe I should have to. Is this a problem with Tomcat, Tyrex, or something I'm doing? Thanks for your help, in advance, -- J. Daniel Powell Sr. Systems Architect Wellogic, Inc.