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="/proven" docBase="proven"
debug="5" reloadable="false" crossContext="true"
privileged="true">
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="datasource_proven."
suffix=".log"
timestamp="true"/>
<Resource name="jdbc/provenDS" auth="Container"
type="oracle.jdbc.pool.OracleConnectionPoolDataSource" />
<ResourceParams name="jdbc/provenDS">
<parameter>
<name>factory</name>
<value>oracle.jdbc.pool.OracleDataSourceFactory</value>
</parameter>
<parameter>
<name>url</name>
<value>jdbcracleci8roven_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.
<!-- Here is where we define the database driver. -->
<Context path="/proven" docBase="proven"
debug="5" reloadable="false" crossContext="true"
privileged="true">
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="datasource_proven."
suffix=".log"
timestamp="true"/>
<Resource name="jdbc/provenDS" auth="Container"
type="oracle.jdbc.pool.OracleConnectionPoolDataSource" />
<ResourceParams name="jdbc/provenDS">
<parameter>
<name>factory</name>
<value>oracle.jdbc.pool.OracleDataSourceFactory</value>
</parameter>
<parameter>
<name>url</name>
<value>jdbcracleci8roven_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.