Hi,

I am trying to connect to Oracle 10g using Resin 3.0.14. My jdk version is
1.5.0.13. I am getting the following error while trying to lookup the
datasource configured in resin.conf.

Caused by: org.hibernate.HibernateException: Could not find datasource at
org.hibernate.connection.DatasourceConnectionProvider.configure(
DatasourceConnectionProvider.java:56) at
org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(
ConnectionProviderFactory.java:124) at
org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(
ConnectionProviderFactory.java:56) at
org.hibernate.cfg.SettingsFactory.createConnectionProvider(
SettingsFactory.java:385) at org.hibernate.cfg.SettingsFactory.buildSettings
(SettingsFactory.java:61) at org.hibernate.cfg.Configuration.buildSettings(
Configuration.java:1928) at
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1211)
at com.thc.common.util.HibernateFactory.currentSession(HibernateFactory.java:38)
... 18 more

*Caused by: java.lang.ClassCastException: com.caucho.naming.ContextImpl at
org.hibernate.connection.DatasourceConnectionProvider.configure(
DatasourceConnectionProvider.java:52) ... 25 more *

My database configuration in resin.conf is,

    <database>
        <jndi-name>jdbc/RO_DS1</jndi-name>
        <driver>
                <type>oracle.jdbc.pool.OracleConnectionPoolDataSource</type>
                <url>jdbc:oracle:thin:@localhost:1521:xxxxx</url>
                <user>username</user>
                <password>password</password>
        </driver>
                <max-connections>20</max-connections>
                <max-idle-time>30</max-idle-time>
                <max-active-time>6</max-active-time>
                <max-pool-time>24</max-pool-time>
                <connection-wait-time>30</connection-wait-time>
                <ping-table>dual</ping-table>
                <spy>false</spy>
    </database>

Any help in this regard is greatly appreciated.


Thanks,
KG
_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest

Reply via email to