org.hibernate.HibernateException: No local DataSource found for configuration - dataSource property must be set on LocalSessionFactoryBean

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 Spring JIRA by David Sissoko, 1 year ago
No local DataSource found for configuration - dataSource property must be set on LocalSessionFactoryBean
via Spring JIRA by David Sissoko, 1 year ago
No local DataSource found for configuration - dataSource property must be set on LocalSessionFactoryBean
via Stack Overflow by Himanshu Yadav
, 2 years ago
No local DataSource found for configuration - 'dataSource' property must be set on LocalSessionFactoryBean
via Stack Overflow by Eric B.
, 2 years ago
No local DataSource found for configuration - 'dataSource' property must be set on LocalSessionFactoryBean
via Stack Overflow by Zalivaka
, 2 years ago
No local DataSource found for configuration - 'dataSource' property must be set on LocalSessionFactoryBean
via unitils by upolin
, 1 year ago
No local DataSource found for configuration - dataSource property must be set on LocalSessionFactoryBean
org.hibernate.HibernateException: No local DataSource found for configuration - dataSource property must be set on LocalSessionFactoryBean
at org.hibernate.tool.hbm2ddl.SchemaExport$ProviderConnectionHelper.getConnection(SchemaExport.java:431)
at org.hibernate.tool.hbm2ddl.SchemaExport.execute(SchemaExport.java:130)
at org.hibernate.impl.SessionFactoryImpl.close(SessionFactoryImpl.java:812)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at undefined.$Proxy0.close(Unknown Source)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

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