close

[Solved] Unable to start embedded Tomcat org.springframework.context.ApplicationContextException

Hello Guys, How are you all? Hope You all Are Fine. Today I am facing the following error Unable to start embedded Tomcat org.springframework.context.ApplicationContextException in Java. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How Unable to start embedded Tomcat org.springframework.context.ApplicationContextException Error Occurs?

Today I am facing the following error Unable to start embedded Tomcat org.springframework.context.ApplicationContextException in Java.

How To Solve Unable to start embedded Tomcat org.springframework.context.ApplicationContextException Error ?

  1. How To Solve Unable to start embedded Tomcat org.springframework.context.ApplicationContextException Error ?

    To Solve Unable to start embedded Tomcat org.springframework.context.ApplicationContextException Error Resolved it by adding a missing property to application.properties file.
    spring.jpa.hibernate.ddl-auto=update

  2. Unable to start embedded Tomcat org.springframework.context.ApplicationContextException

    To Solve Unable to start embedded Tomcat org.springframework.context.ApplicationContextException Error Resolved it by adding a missing property to application.properties file.
    spring.jpa.hibernate.ddl-auto=update

Solution 1


First, you usually can find the root cause on last Caused by statement for debugging.

Therefore, according to the error log you posted, Caused by: org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set should be key!

Although Hibernate is database agnostic, we can specify the current database dialect to let it generate better SQL queries for that database. Therefore, this exception can be solved by simply identifying hibernate.dialect in your properties file as follows:

For application.properties:

spring.jpa.database-platform=org.hibernate.dialect.MySQL5Dialect

For application.yml:

spring:
  jpa:
    database-platform: org.hibernate.dialect.MySQL5Dialect

Solution 2

Resolved it by adding a missing property to application.properties file.

spring.jpa.hibernate.ddl-auto=update

Summery

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you? Thank You.

Also, Read