javax.persistence.PersistenceException: org.hibernate.HibernateException: Could not find datasource

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via openxava by eescrihuela
, 1 year ago
org.hibernate.HibernateException: Could not find datasource
via openxava by elcorreodehero
, 1 year ago
org.hibernate.MappingException: Could not determine type for: org.openxava.escuela.modelo.Empresa, for columns: \[org.hibernate.mapping.Column(idEmpresa)\]
via hibernate.org by Unknown author, 1 year ago
org.hibernate.HibernateException: Hibernate Dialect must be explicitly set
via Coderanch by Selvakumar Kumarasamy, 11 months ago
org.hibernate.HibernateException: Could not instantiate dialect class
via Coderanch by Selvakumar Kumarasamy, 10 months ago
org.hibernate.HibernateException: Could not instantiate dialect class
via Stack Overflow by mvg
, 2 years ago
org.hibernate.HibernateException: Hibernate Dialect must be explicitly set
javax.persistence.PersistenceException: org.hibernate.HibernateException: Could not find datasource
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:737)
at org.openxava.jpa.XPersistence.getEntityManagerFactory(XPersistence.java:175)
at org.openxava.jpa.XPersistence.createManager(XPersistence.java:102)
at org.openxava.annotations.parse.AnnotatedClassParser.getManagedClassNames(AnnotatedClassParser.java:1633)
at org.openxava.annotations.parse.AnnotatedClassParser.getClassNameFor(AnnotatedClassParser.java:1601)
at org.openxava.annotations.parse.AnnotatedClassParser.parse(AnnotatedClassParser.java:47)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at org.openxava.util.Objects.execute(Objects.java:193)
at org.openxava.util.Objects.execute(Objects.java:112)
at org.openxava.component.ComponentParser.parseAnnotatedClass(ComponentParser.java:54)
at org.openxava.component.ComponentParser.parse(ComponentParser.java:34)
at org.openxava.component.MetaComponent.get(MetaComponent.java:60)
at org.openxava.tab.Tab.getMetaTab(Tab.java:183)
at org.openxava.tab.Tab.getMetaProperties(Tab.java:84)

Users with the same issue

2 times, 2 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
2 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
2 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.