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, 2 years ago
org.hibernate.HibernateException: Hibernate Dialect must be explicitly set
via openxava by nadsinoz
, 1 year ago
org.hibernate.HibernateException: Could not instantiate cache implementation
via Coderanch by Selvakumar Kumarasamy, 1 year ago
org.hibernate.HibernateException: Could not instantiate dialect class
via Coderanch by Selvakumar Kumarasamy, 1 year ago
org.hibernate.HibernateException: Could not instantiate dialect class
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.view.View.getMetaModel(View.java:229)
at org.openxava.view.View.getMetaView(View.java:212)
at org.openxava.view.View.createMetaMembers(View.java:142)
at org.openxava.view.View.getMetaMembers(View.java:121)
at org.openxava.view.View.getMetaProperties(View.java:2302)
at org.openxava.view.View.getFirsEditablePropertyId(View.java:2995)
at org.openxava.view.View.calculateFocusPropertyId(View.java:2973)
at org.openxava.view.View.getFocusPropertyId(View.java:2959)

Users with the same issue

7 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago

Write tip

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