Tomcat 4.1.2 uses the Commons-dbcp connection pool.  You can download it
at 

http://jakarta.apache.org/builds/jakarta-commons/nightly/commons-dbcp/

It does not have a release build yet.


-Andrew

-----Original Message-----
From: Pedro Salazar [mailto:[EMAIL PROTECTED]] 
Sent: Friday, July 05, 2002 7:00 AM
To: [EMAIL PROTECTED]
Subject: tomcat 4.0.4, JNDI, Datasource.getConnection() -> No suitable
driver, [Oracle]


Greetings,

I'm moving a webservice from tomcat 4.1.2 (WSDP 1.0) --> tomcat 4.0.4
because I want to go to production environment and instead of using the
tomcat bundled with WebServiceDevelopmentPack 1.0 (WSDP 1.0), I want to
use a conventional/isolated tomcat. I choose the tomcat 4.0.4 (latest
stable version).

I added a default context in tomcat isolated service section on
conf/server.xml with my jdbc resources, and I deploy my oracle driver
package in common/lib/ directory (renamed as a jar file).

PROBLEM:
----------
I'm having problems using a connection manager from JNDI! I'm getting an
exception "java.sql.SQLException: No suitable driver" when I try to get
a connection from datasource:

ds = (DataSource)initCtx.lookup("java:comp/env/jdbc/crumpetdb");
ds.getConnection(); //EXCEPTION!!


It appears that tomcat 4.0.4 uses tyrex connection manager
(tyrex-0.9.7.0.jar). What is connection manager of tomcat 4.1.2 (WSDP
1.0)? I tried the tyrex's latest version (1.0), but still have the same
problem. In tomcat 4.1.2 I didn't have this problem!

Please, anyone figures what is my problem?

PS. By the way, how to insert a zip file with classes to a tomcat's lib
directory but without renaming it to a jar file? What should I change in
catalina startup script?

thanks,
Pedro Salazar





--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to