datasource « Query « JPA Q&A





1. Hibernate - "Could not find datasource"    coderanch.com

Hi, I am writting an application using Hibernate and Tomcat5.0 as the app server. When I try to connect to the data base using jndi, I am getting error messgae like this net.sf.hibernate.HibernateException: Could not find datasource The same configuration settings work in other machines.(like server.xml, hibernate.cfg.xml and mapping resource xml ) Pls help in solving this issue Thanks Vidya

2. Could not find datasource    forum.hibernate.org

Hi, I get this strange error when hibernate is trying to fetch Datasource using JNDI Name java:/myXaDS. This is the datasource.xml myXaDS org.postgresql.xa.PGXADataSource myserver 5432 test myRealm 5 100 5000 15 true I am using EJB3Configuration class and setting this property hibernate.connection.datasource to java:myXaDS. I logged into jboss jmx console ...

3. Could not find datasource exception    forum.hibernate.org

Hi, I'm trying to connect to a database using a datasource that I provide in the hibernate configuration file. But, I get the following error: Code: [2010-08-02 09:54:59,171] [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] ERROR - TYPE=1;SEV=ERROR;ALERTKEY=server.dao.hibernate.PersistFactory:1;SUMMARY=Unable to get Session;CLASS=com.server.dao.hibernate.PersistFactory; -class com.server.dao.hibernate.PersistFactory 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) ...

4. Could not find datasource: jdbc/postgres    forum.hibernate.org

Newbie Joined: Tue Nov 16, 2010 1:14 am Posts: 2 I am trying to retrieve data from PostgreSql database through Hibernate. I am using the Hibernate Entity Manager 3.4.0.GA download but changed my persistence.xml to refer http://java.sun.com/xml/ns/persistence/ ... ce_1_0.xsd , as I was receiving an error with persistence_2.0.xsd (I submitted a different topic for that error). I am getting the below ...

5. Can't find JNDI datasource    forum.hibernate.org

6. Could not find datasource    forum.hibernate.org

Hallo, I get the following error message executing a little test programm (Tomcat, WSAD, MSSQL Server 2000): 500 [http8080-Processor4] INFO dialect.Dialect - Using dialect: net.sf.hibernate.dialect.SybaseDialect 500 [http8080-Processor4] INFO cfg.SettingsFactory - Use outer join fetching: false 500 [http8080-Processor4] INFO util.NamingHelper - JNDI InitialContext properties:{} 515 [http8080-Processor4] FATAL connection.DatasourceConnectionProvider - Could not find datasource: java:comp/env/jdbc/demo javax.naming.NameNotFoundException: Name jdbc is not bound in this ...

7. cannot find datasource in hibernate/weblogic startup class    forum.hibernate.org

Author Message scc Post subject: cannot find datasource in hibernate/weblogic startup class Posted: Wed Dec 03, 2003 12:25 pm Newbie Joined: Wed Dec 03, 2003 11:50 am Posts: 7 Location: Texas Hello All, I am trying to bind the Hibernate 2.0.3 session factory to weblogic 8.1 jndi. Over a period of 4 weeks, I think that I have read ...

8. "Could not find datasource" after reinstalling on    forum.hibernate.org

Hi, i've got a really strange problem: my application runs fine after a fresh start of the Tomcat (5.0.18), but when I remove and re-install the application using the manager webapp of tomcat, I get this: SEVERE: Could not find datasource: java:comp/env/jdbc/lt04jay javax.naming.NameNotFoundException: Name jdbc is not bound in this Context at org.apache.naming.NamingContext.lookup(NamingContext.java:814) at org.apache.naming.NamingContext.lookup(NamingContext.java:184) at org.apache.naming.NamingContext.lookup(NamingContext.java:825) at org.apache.naming.NamingContext.lookup(NamingContext.java:184) at org.apache.naming.NamingContext.lookup(NamingContext.java:825) ...

9. Cannot find the datasource exception    forum.hibernate.org

Hi, i'm getting the following exception when trying to access a datasource. FATAL [DatasourceConnectionProvider] Could not find datasource: java:/hibernate_test javax.naming.NameNotFoundException: hibernate_test not bound As i'm a begginer with Hibernate, i have a lot of doubts - some of them i already posted in this forum, but every step i make, i get a new exception :-( - Is the datasource the ...





10. Oracle "Could not find datasource" exception URGEN    forum.hibernate.org

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. ...

11. could not find the datasource in hibernate8ide    forum.hibernate.org

12. Problem with Quickstart Could not find datasource    forum.hibernate.org

I've already looks through the postings doing a search for quickstart but did not find anything helpful. Can someone help out a newbie here? Thanks in advance :) Hibernate version:2.1 Mapping documents: User.hbm.xml

13. Could not find datasource    forum.hibernate.org

Newbie Joined: Fri Jun 24, 2005 1:06 pm Posts: 3 All, I am new to hibernate so bear with me. I have a struts application running in websphere portal. This app works fine using url/driver connection/etc both locally (RAD) and on the portal server. When i switched from url/driver etc to using a datasource it again worked fine locally but when ...

14. MDB can't find datasource with Websphere and Hibernate 3    forum.hibernate.org

Hi, I'm having a problem with a MDB running on an IBM AIX machine with websphere 5.1.1.3 and hibernate 3. Here's a snippet from my hibernate.properties file: # Datasource from JNDI hibernate.connection.datasource = jdbc/interfacePool # Hibernate TransactionFactory # 1. delegates to JTA (if an existing transaction is underway the Session performs its # work in that context, otherwise a new transaction ...

15. How to handle query against multiple datasources?    forum.hibernate.org

^ i'm pretty sure that's not what he's trying to do. i think he wants to write one query and do selects from different databases in the same statement. i had to do this once, the solution i came up with was to make another database containing only views on the tables from the 3 other databases that i needed. that ...

16. Could not find datasource    forum.hibernate.org

Hello, I have a Oracle application server 10.1.2 running on a Unix box, to which I'm trying to deploy a java application that uses hibernate. Here are the exceptions that I get: Could not find datasource: jdbc/msmydb javax.naming.NamingException: Not in an application scope - start Orion with the -userThreads switch if using user-created threads org.hibernate.HibernateException: Could not find datasource If I ...





17. Hibernate Could not find datasource?    forum.hibernate.org

Hi, i'm trying to do my first hibernate example with eclipse and firebird. I'm writing a test class which should create some tables and set one dataset and then read it from the database... Now, i will get the following failure message: Code: 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) ...

18. Could not find datasource using StrutsTestCase    forum.hibernate.org

Hi all I have a web application usging Struts, SqlServer and Hibernate which works ok but I'm trying to use StrutsTestCase on it and it's with this when the web application doesn't work. My hibernate.cfg.xml is .... java:/comp/env/jdbc/papfvsf ... All mappings work fine when I test manually my application, only have error if I use this test framework. My test ...