I thought I saw the OP had an exception error of javax.naming.NamingException.
in part of the thread, this was posted. Zdeněk Vráblík escribió: > Hi, > > There is error in driverClassName. > > Try use this: > driverClassName="oracle.jdbc.driver.OracleDriver" > Thanks, but I already have tested that with the same results. > Zdenek > > On 7/18/07, "Julio J. Suárez Salinero" <[EMAIL PROTECTED]> wrote: >> I'm Trying to connect a JSP tomcat-based application to Oracle using >> OracleConnectionPoolDataSource and related classes. I have used >> javax.sql.DataSource an it did work fine. I have made changes I need for >> using that classes and when I get the DataSource it throws exception >> "javax.naming.NamingException: Cannot create resource instance". >> >> Changes I have made are these: >> That's why I thought he needed to import that package. -----Original Message----- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 18, 2007 8:12 PM To: Tomcat Users List Subject: Re: OracleConnectionPoolDataSource -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Barry, Propes, Barry L wrote: > are you importing the following packages? > > You maybe should. > > import javax.naming.Context; > import javax.naming.InitialContext; > import javax.naming.NamingException; Erm.... if he weren't importing those packages, his code wouldn't compile. The OP has a problem with /configuration/: >>> I'm Trying to connect a JSP tomcat-based application to Oracle >>> using OracleConnectionPoolDataSource and related classes. I have >>> used javax.sql.DataSource an it did work fine. I have made >>> changes I need for using that classes and when I get the >>> DataSource it throws exception "javax.naming.NamingException: >>> Cannot create resource instance". Something is wrong in here: >>> <Resource >>> name="jdbc/test" auth="Container" >>> type="oracle.jdbc.pool.OracleConnectionPoolDataSource" I wonder if Tomcat doesn't really know what to do with this "type". Why do you want to use the OracleConnectionPoolDataSource specifically? >>> driverClassName="oracle.jdbc.pool.OracleConnectionPoolDataSource" This is probably wrong. This class is the same as the one you used for "type", which probably extends javax.sql.DataSource. You want something that implements java.sql.Driver. Re-check the Oracle documentation to see what driver class you should really be using. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGnrp09CaO5/Lv0PARAmwgAJ9015dCPWCJvYjYwLBSkPKcAYWuCgCgtrCm ef63dCd2d0OJUHKoxR0X9Xc= =u7e9 -----END PGP SIGNATURE----- --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]