Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Oracle OCIConnectionPool and Tomcat DataSource

Status
Not open for further replies.

pssmikew

Programmer
Sep 24, 2003
1
US
I am trying to use Oracle's Proxy Authentication implementation with my app. running on Tomcat 4.1.x. I have configured the /conf/server.xml file to create a DataSource when the container is initialized. When using the default java.sql.DataSource, this works fine. This is my problem:

<!-- Here is where we define the database driver. -->
<Context path=&quot;/proven&quot; docBase=&quot;proven&quot;
debug=&quot;5&quot; reloadable=&quot;false&quot; crossContext=&quot;true&quot;
privileged=&quot;true&quot;>

<Logger className=&quot;org.apache.catalina.logger.FileLogger&quot;
prefix=&quot;datasource_proven.&quot;
suffix=&quot;.log&quot;
timestamp=&quot;true&quot;/>

<Resource name=&quot;jdbc/provenDS&quot; auth=&quot;Container&quot;
type=&quot;oracle.jdbc.pool.OracleConnectionPoolDataSource&quot; />
<ResourceParams name=&quot;jdbc/provenDS&quot;>
<parameter>
<name>factory</name>
<value>oracle.jdbc.pool.OracleDataSourceFactory</value>
</parameter>
<parameter>
<name>url</name>
<value>jdbc:eek:racle:eek:ci8:proven_app_owner/xxxxx@provendev2</value>
</parameter>
</ResourceParams>
</Context>

This is my entry for the jndi DataSource using an oracle.jdbc.pool.OracleOCIConnectionPool. I get a null pointer when i use this configuration. The jndi DataSource works fine when i used an oracle.jdbc.pool.OracleConnectionPoolDataSource object. So i know that I have the OCI driver working fine. Any help would be much appreciated.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top