Hi,
Not sure what your problem is, but this syntax works for me in my tests
with Resin 4.0.14
-----------
<database jndi-name='jdbc/app'>
<driver
type="oracle.jdbc.pool.OracleConnectionPoolDataSource">
<url>jdbc:oracle:thin:@db.server.com:port:db</url>
<user>db-user</user>
<password>db-pass</password>
</driver>
</database>
-----------
S!
D.
El 28/01/2011 10:22, Halvor Utby escribió:
> Hi,
>
> I'm trying to upgrade one of our applications from running
> resin-pro-4.0.12 to resin-prod-4.0.14.
> However, we get an error regarding ojdbc settings.
>
> Within the<web-app ...> tag in resin.xml, we have:
>
> <!-- Oracle lib -->
> <class-loader>
> <library-loader path="/path/to/lib/ojdbc6-11.2.0.1.0.jar"/>
> </class-loader>
> <!-- Oracle settings -->
> <resin:include path="/path/to/app/conf/app-jdbc.conf"/>
>
>
> These files worked fine for resin-pro-4.0.12 and earlier.
>
> Now, however, we get the error message in resin-debug.log:
> [2011-01-28 09:27:13.930] {resin-18} /path/to/app/conf/app-jdbc.conf:1:
> com.caucho.sql.DBPool.init(): com.caucho.sql.SQLExceptionWrapper:
> com.caucho.config.ConfigException: '#text' is an unknown attribute of
> 'oracle.jdbc.pool.
> OracleConnectionPoolDataSource'
>
> 1:<database>
> 2:<jndi-name>jdbc/app</jndi-name>
> 3:<driver>
>
>
>
> The /path/to/app/conf/app-jdbc.conf is on the form:
> <database>
> <jndi-name>jdbc/app</jndi-name>
> <driver>
> <type>oracle.jdbc.pool.OracleConnectionPoolDataSource</type>
> <url>jdbc:oracle:thin:@db.server.com:port:db</url>
> <user>db-user</user>
> <password>db-pass</password>
> </driver>
> <prepared-statement-cache-size>500</prepared-statement-cache-size>
> <ping>true</ping>
> <ping-interval>600</ping-interval>
> </database>
>
>
> I have also tried to upgrade another app which uses ojdbc14-10.2.0.4.jar
> instead of ojdbc6-11.2.0.1.0.jar, but the same error occurs.
>
> Is this a bug, or is there a configuration change I have missed?
> Both 4.0.12 and 4.0.14 has been compiled with 64bit Java. I have also
> tried 4.0.13, which resulted in the same error as above.
>
--
-------------------------------------------
Daniel Lopez Janariz ([email protected])
Web Services
Centre for Information and Technology
Balearic Islands University
(SPAIN)
-------------------------------------------
_______________________________________________
resin-interest mailing list
[email protected]
http://maillist.caucho.com/mailman/listinfo/resin-interest