• Register
Log In
0 votes

Problem :

Facing bellow Spring boot error
unable to start embeddedwebapplicationcontext due to missing embeddedservletcontainerfactory bean.
6.9k 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 :

36.1k 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

3.9k points

Related questions

0 votes
1 answer 101 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 93 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 84 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 217 views
Problem : I am implementing kerberos Authentication in my existing java spring application.My unix team has provided me SPN, krb5.conf and keytab file. I am trying hard but getting unable to obtain password from user exception
asked Oct 22, 2019 peterlaw 6.9k points
0 votes
1 answer 2.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