• Register
0 votes

Problem :

Facing bellow Spring boot error
unable to start embeddedwebapplicationcontext due to missing embeddedservletcontainerfactory bean.
6 5 3
6,930 points

2 Answers

0 votes

Solution :

I also faced the issue in the past.
I used bellow jar to get rid of the issue.

use bellow jar in your pom.xml :


or try this one  in your pom.xml :

9 7 4
38,600 points
0 votes

This error suggests that the application you are trying to run cannot instantiate an instance of apache tomcat. Make sure you are running the applications with tomcat.


This error can be solved in two ways;

Check all dependencies:

If after checking all your dependencies you experience the same problem, then try to add the following code in your configuration class;

public EmbeddedServletContainerFactory servletContainer() {

    TomcatEmbeddedServletContainerFactory factory =

                  new TomcatEmbeddedServletContainerFactory();

    return factory;


External Instance:

If you are using an external instance of tomcat (especially for IntelliJ ), the problem could be that the IDE is trying to start the embedded tomcat. In this case, remove the following from your pom.xml and then configure the external tomcat using the “Edit Configuration” wizard.







If you are encountering this error while using IntelliJ and you are trying to start the application with the run button, Try starting the application from the command line instead, like ensure that you are incorrect directory assuming this is as spring boot application run mvn spring-boot: run.

Additionally, you can also see an error when your spring application depends on another application. In this case, you have to start the other application first an

11 5 1
3,890 points

Related questions

0 votes
1 answer 163 views
Problem : I have written a spring batch application using the Spring boot and when I tried to run it on linux server facing following exception unable to start servletwebserverapplicationcontext due to missing servletwebserverfactory bean
asked Nov 14, 2019 peterlaw 6.9k points
0 votes
1 answer 433 views
Problem : Currently I am trying to develop the REST API using the Spring Framework I am unable to run my application because of below error. Description: The Tomcat connector configured to listen on port 8080 failed to start. The port may already be in use or the connector may ... this application to listen on another port. My 8080 port on my PC is seems to be busy. How can I fix this issue?
asked Feb 28 mphil 2.3k points
0 votes
1 answer 234 views
Problem : I am very new to Spring Boot. I am learning to write code in Spring Boot. I have written my first Spring Boot code as below @RequestMapping(value = "/bar/foo", method = RequestMethod.GET) public MyResponseEntity<foo> foo() { Foo model; ... return ... .core</groupId> <artifactId>jackson-databind</artifactId> <version>2.4.3</version> </dependency> How can I fix above Spring Boot exception?
asked Feb 29 mphil 2.3k points
0 votes
1 answer 15 views
Problem: I have already seen many questions asked around the error which I am facing. But available solutions are not working for me. It may be the case that I am yet to thoroughly understand a auto wiring concept. I am able to navigate to the required page, ... least 1 bean which qualifies as autowire candidate. Now I am completely confused. Hope someone can try to help me out with this error.
asked Aug 8 Raphael Pacheco 4.9k points
0 votes
1 answer 3.7K views
Problem : After executing spring boot with h2 database and JPA i am facing below error org.hibernate.tool.schema.spi.commandacceptanceexception: error executing ddl via jdbc statement
asked Nov 12, 2019 peterlaw 6.9k points