Skip to content
Advertisement

Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment] Java Error

I have been facing problem connecting Hibernate to Azure Data Studiowhere I want to read the data from the database. Here are the files:

Testing Class

JavaScript

Hibernate.cfg.xml

JavaScript

Error Stacktrace

JavaScript

Please help me find out the problem regarding the code and how do I modify it? The error is mainly on the configuration of the Hibernate xml file in my opinion.

Advertisement

Answer

Always check the end of the stacktrace for which exception caused it all.

JavaScript

The chosen dialect org.hibernate.dialect.SQLServer2016Dialect doesn’t exist in whichever Hibernate version you’re using.

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement