Re: About connections
Thanks Chuck 2006/10/23, Caldarale, Charles R [EMAIL PROTECTED]: From: Juanjo Cuadrado [mailto:[EMAIL PROTECTED] Subject: About connections When I try to recover a connection, I use the Tomcat's pool connections, that it work fine too if I previously have put the Oracle's jar into 'common' directory. I have put the jar (classes12) into lib directory of application You can't do both. If you're using DBCP, the jar must go in common/lib - and only in common/lib. If you're not using Tomcat's connection pooling, the jar may go in common/lib, shared/lib, or WEB-INF/lib of each application - but it must not appear in more than one layer of the classloading hiearchy: Bootstrap | System | Common / \ Catalina Shared / \ Webapp1 Webapp2 ... Its presence in multiple layers will cause the kinds of errors you're seeing. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
About connections
Hi I'm trying to deploy an app and it needs to use the Oracle's drivers ( classes12.jar). When I try to recover a connection, I use the Tomcat's pool connections, that it work fine too if I previously have put the Oracle's jar into 'common' directory. If by some razon, I didn't recover a connection through the pool, the application would try to recover a direct connection (Class.forname) Is in this point when I don't achieve that the app recover a connection. I have put the jar (classes12) into lib directory of application, but it don't work fine for me and it give me a error message it don't find the Oracle's class driver . Any idea? Sorry for me English.
RE: About connections
From: Juanjo Cuadrado [mailto:[EMAIL PROTECTED] Subject: About connections When I try to recover a connection, I use the Tomcat's pool connections, that it work fine too if I previously have put the Oracle's jar into 'common' directory. I have put the jar (classes12) into lib directory of application You can't do both. If you're using DBCP, the jar must go in common/lib - and only in common/lib. If you're not using Tomcat's connection pooling, the jar may go in common/lib, shared/lib, or WEB-INF/lib of each application - but it must not appear in more than one layer of the classloading hiearchy: Bootstrap | System | Common / \ Catalina Shared / \ Webapp1 Webapp2 ... Its presence in multiple layers will cause the kinds of errors you're seeing. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]