close

[Solved] org.springframework.boot.context.embedded.EmbeddedServletContainerException: Unable to start embedded Tomcat servlet container

Hello Guys, How are you all? Hope You all Are Fine. Today I am trying to Run my Spring Boot application But I am facing following error org.springframework.boot.context.embedded.EmbeddedServletContainerException: Unable to start embedded Tomcat servlet container 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 org.springframework.boot.context.embedded.EmbeddedServletContainerException: Unable to start embedded Tomcat servlet container Error Occurs ?

I am trying to Run my Spring Boot application But I am facing following error.

org.springframework.boot.context.embedded.EmbeddedServletContainerException: Unable to start embedded Tomcat servlet container

How To Solve org.springframework.boot.context.embedded.EmbeddedServletContainerException: Unable to start embedded Tomcat servlet container Error ?

  1. How To Solve org.springframework.boot.context.embedded.EmbeddedServletContainerException: Unable to start embedded Tomcat servlet container Error ?

    To Solve org.springframework.boot.context.embedded.EmbeddedServletContainerException: Unable to start embedded Tomcat servlet container Error You just need to change port number in your application.yaml OR application.properties to anything like 4000 and then Re-run your code and Now your error must be solved. Second solution is Just try to change the Project SDK Version. First of all go to the File Then Select Project Structure then change the Project SDK Version Now run project Again.

  2. org.springframework.boot.context.embedded.EmbeddedServletContainerException: Unable to start embedded Tomcat servlet container

    To Solve org.springframework.boot.context.embedded.EmbeddedServletContainerException: Unable to start embedded Tomcat servlet container Error You just need to change port number in your application.yaml OR application.properties to anything like 4000 and then Re-run your code and Now your error must be solved. Second solution is Just try to change the Project SDK Version. First of all go to the File Then Select Project Structure then change the Project SDK Version Now run project Again.

Solution 1: Change port number

You just need to change port number in your application.yaml OR application.properties to anything like 4000 and then Re-run your code and Now your error must be solved.

Solution 2: add the tomcat dependency

Just add the tomcat dependency to Your POM.xml file.

<dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-tomcat</artifactId>
</dependency>

Then Just Re-run your code and Now your error must be solved.

Solution 3: change the Project SDK Version

Just try to change the Project SDK Version. First of all go to the File Then Select Project Structure then change the Project SDK Version Now run project Again.

Summary

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?

Also, Read

Leave a Comment