Hi all,
I have a problem with Hibernate 2.0 and Oracle 9i.
I use Websphere 5 and have configured the WebSphere Data Source to use Oracle. I have tested the connection with an other app that does not use hibernate, and the connection works as expected.
I also have used the hibernate with DB2 in the same application, with no problems. So in theory the application should be ok. But when I change the hibernate to use Oracle, I somehow don't get the connection. I get the following exception when I try to use the database:
Code:
2004.06.14 14:10:43.020 E x.x.x.x.action.MyAction error
net.sf.hibernate.HibernateException: Could not find datasource
at net.sf.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:48)
at net.sf.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:83)
at net.sf.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:64)
at net.sf.hibernate.cfg.Configuration.buildSettings(Configuration.java:1132)
at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:766)
So I quess there is some errors in the hibernate configuration.
I use net.sf.hibernate.dialect.Oracle9Dialect. I haven't made any other oracle specific configurations in hibernate.properties while the Websphere JNDI should provide all the database connection info (it does at least with DB2).
Does anyone know what bugging here?
Thanks!
-- Peeamm