close

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

Today We are Going To Solve org.springframework.boot.context.embedded.EmbeddedServletContainerException: Unable to start embedded Tomcat servlet container in Java. Here we will Discuss All Possible Solutions and How this error Occurs So let’s get started with this Article.

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

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

    To Fix org.springframework.boot.context.embedded.EmbeddedServletContainerException: Unable to start embedded Tomcat servlet container Error just Change the port number. You can easily solve this error. Here you have to just change the port number in application.properties to something else. And your error will be solved. Try it.

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

    To Fix org.springframework.boot.context.embedded.EmbeddedServletContainerException: Unable to start embedded Tomcat servlet container Error just Add the tomcat dependency. To solve this error just add the tomcat dependency in your pom. You can use the below dependency. I hope this will help you. <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-tomcat</artifactId> </dependency>

Solution 1 : Change the port number

You can easily solve this error. Here you have to just change the port number in application.properties to something else. And your error will be solved. Try it.

Solution 2 : Add the tomcat dependency

To solve this error just add the tomcat dependency in your pom. You can use the below dependency. I hope this will help you.

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

Solution 3 : Try -Dserver.port=8181 on Vm

Just try -Dserver.port=8181 on Vm. This will remove the error.

Conclusion

So these were all possible solutions to this error. I hope your error has been solved by this article. In the comments, tell us which solution worked? If you liked our article, please share it on your social media and comment on your suggestions. Thank you.

Also Read These Solutions

Leave a Comment