Missing bean EmbeddedWebApplicationContext when running project
I'm trying to access a webservice from a portlet. I'm pretty new at Spring, so I used this tutorial --> http://spring.io/guides/gs/consuming-web-service/#initial.
When I try to run my project following exception is thrown: Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletContainerFactory bean.
My POM:
My main method that I run:
And My CustomerDaoConfiguration.class =
A full stack trace:
Any help would be greatly appreciated!
Looks like you missed spring-boot-starter-web
.
From other side you have a lot of redundant deps in your POM, which can be addressed just with boot-starters.
I had the same issue. I found that if I simply used the spring-boot-maven-plugin
and started the project with mvn spring-boot:run
the problem was solved.
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.