All,
I am running Tomcat 4.0.4 and I am trying to use Jakarta DBCP. I
have download the necessary jar files and placed them in
%CATALINA_HOME%/common/lib. I am receiving the following error:
javax.naming.NamingException: Cannot create resource instance
at
org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.
java)
at
javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java)
at org.apache.naming.NamingContext.lookup(NamingContext.java)
at org.apache.naming.NamingContext.lookup(NamingContext.java)
at org.apache.naming.NamingContext.lookup(NamingContext.java)
at org.apache.naming.NamingContext.lookup(NamingContext.java)
When I list bindings on the resource below, It appears that the JNDI
resource exists but when I try to look it up I receive the error above. Any
thoughts or advice?
Snapshot from web.xml:
<resource-ref>
<res-ref-name>jdbc/prod_d</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
Snapshot from server.xml:
<Resource name="jdbc/prod_d" auth="Container"
type="javax.sql.DataSource"/>
<ResourceParams name="jdbc/prod_d">
<parameter>
<name>user</name>
<value>jappel</value>
</parameter>
<parameter>
<name>password</name>
<value>jappel</value>
</parameter>
<parameter>
<name>driverClassName</name>
<value>oracle.jdbc.driver.OracleDriver</value>
</parameter>
<parameter>
<name>url</name>
<value>jdbc:oracle:thin:@hpcat159.qwest.net:1521:prod_d</value>
</parameter>
<parameter>
<name>factory</name>
<value>ora.apache.commons.dbcp.BasicDataSourceFactory</value>
</parameter>
</ResourceParams>
Thanks,
Jeremy Appel
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]