hibernate.dialect must be set when no Connection

Asked on May 29, 2013
Hello friends,

Any clue for below error.

 org.hibernate.HibernateException: hibernate.dialect must be set when no Connection available
at org.hibernate.dialect.resolver.DialectFactory.buildDialect(DialectFactory.java:107)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:138)
at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2163)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2159)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1383)
at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:954)

Replied on May 29, 2013
I also got the same error, But i got the solution.
You need to check mysql connector api in your classpath.
Check if there is mysql-connector-java-5.1.17.jar  or any other version in your library.
I think it will solve the error.

Write Answer

©2024 concretepage.com | Privacy Policy | Contact Us