These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Oracle "Could not find datasource" exception URGEN
PostPosted: Mon Jun 14, 2004 8:55 am 
Newbie

Joined: Mon Jun 14, 2004 8:39 am
Posts: 1
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


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 14, 2004 11:42 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Should work recheck your typo (hibernate cfg and WAS DS)

_________________
Emmanuel


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.