org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is org.springframework.context.ApplicationContextException: Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletContainerFactory bean.


Samebug tips

You need to use the spring-boot-maven-plugin in the build section of your pom.xml.


,
via Stack Overflow by thomas77

To create an executable jar you have to add the spring-boot-maven-plugin to your pom.xml


,
via spring.io by Unknown author

Solutions on the web

Solution icon of stackoverflow
Unable to start embedded container; nested exception is org.springframework.context.ApplicationContextException: Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletContainerFactory bean.

Solution icon of github
via GitHub by xiaoshao
, 1 month ago
Unable to start embedded container; nested exception is org.springframework.context.ApplicationContextException: Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletContainerFactory bean.

Solution icon of github
Unable to start embedded container; nested exception is org.springframework.context.ApplicationContextException: Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletContainerFactory bean.

Solution icon of github
Unable to start embedded container; nested exception is org.springframework.context.ApplicationContextException: Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletContainerFactory bean.

Solution icon of github
Unable to start embedded container; nested exception is org.springframework.context.ApplicationContextException: Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletContainerFactory bean.

Solution icon of stackoverflow
Unable to start embedded container; nested exception is org.springframework.context.ApplicationContextException: Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletContainerFactory bean.

Solution icon of stackoverflow
Unable to start embedded container; nested exception is org.springframework.context.ApplicationContextException: Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletContainerFactory bean.

Solution icon of stackoverflow
Unable to start embedded container; nested exception is org.springframework.context.ApplicationContextException: Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletContainerFactory bean.

Solution icon of stackoverflow
Unable to start embedded container; nested exception is org.springframework.context.ApplicationContextException: Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletContainerFactory bean.

Solution icon of stackoverflow
Unable to start embedded container; nested exception is org.springframework.context.ApplicationContextException: Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletContainerFactory bean.

Stack trace

org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is org.springframework.context.ApplicationContextException: Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletContainerFactory bean.
	at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:133)[Amsel-1.0-SNAPSHOT-jar-with-dependencies.jar:na]
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:532)[Amsel-1.0-SNAPSHOT-jar-with-dependencies.jar:na]
	at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:118)[Amsel-1.0-SNAPSHOT-jar-with-dependencies.jar:na]
	at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:766)[Amsel-1.0-SNAPSHOT-jar-with-dependencies.jar:na]
	at org.springframework.boot.SpringApplication.createAndRefreshContext(SpringApplication.java:361)[Amsel-1.0-SNAPSHOT-jar-with-dependencies.jar:na]
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:307)[Amsel-1.0-SNAPSHOT-jar-with-dependencies.jar:na]
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1191)[Amsel-1.0-SNAPSHOT-jar-with-dependencies.jar:na]
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1180)[Amsel-1.0-SNAPSHOT-jar-with-dependencies.jar:na]
	at de.arbeitsagentur.amsel.Run.main(Run.java:53)[Amsel-1.0-SNAPSHOT-jar-with-dependencies.jar:na]
Caused by: org.springframework.context.ApplicationContextException: Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletContainerFactory bean.
	at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.getEmbeddedServletContainerFactory(EmbeddedWebApplicationContext.java:185)[Amsel-1.0-SNAPSHOT-jar-with-dependencies.jar:na]
	at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.createEmbeddedServletContainer(EmbeddedWebApplicationContext.java:158)[Amsel-1.0-SNAPSHOT-jar-with-dependencies.jar:na]
	at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:130)[Amsel-1.0-SNAPSHOT-jar-with-dependencies.jar:na]
	... 8 more

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
70 more bugmates