• Register
0 votes
423 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
6.9k points

Please log in or register to answer this question.

1 Answer

0 votes

Solution :

I had also encountered the similar issue in the past.
I found below solution on it.
I explicitly tried to set the below property 
to none in the application.yml file as follows
spring:
  main:
    web-application-type: none
It solved my problem.
38.6k points

Related questions

0 votes
1 answer 139 views
139 views
Problem: unable to start servletwebserverapplicationcontext due to missing servletwebserverfactory bean.
asked Feb 23 Muneeb Saadii 130k points
0 votes
1 answer 14 views
14 views
Problem: I have written a spring batch application using Spring boot. When I am trying to run that application using command line and classpath on my local system it is running fine. However, when I tried to run it on linux server it is giving ... \* -Dlogging.level.org.springframework=DEBUG -Dspring.profiles.active=dev -Dspring.batch.job.names=abcBatchJob com.aa.bb.StartSpringBatch > somelogs.log
asked Apr 24 Moumita Bhowmick 12.9k points
0 votes
2 answers 295 views
295 views
Problem : Facing bellow Spring boot error unable to start embeddedwebapplicationcontext due to missing embeddedservletcontainerfactory bean.
asked Nov 8, 2019 peterlaw 6.9k points
0 votes
1 answer 15 views
15 views
Problem: due to missing embeddedservletcontainerfactory bean.Unable to start embeddedwebapplicationcontext
asked Feb 23 Muneeb Saadii 130k points
0 votes
1 answer 17 views
17 views
Problem: I added the base package of the bean it was complaining about. Still showing the error please help.
asked Jun 25 Isac Christiaan 103k points
0 votes
1 answer 21 views
21 views
Problem: What am I going to do about it : Consider defining a bean of type in your configuration?
asked Jun 25 Nahil 128k points
0 votes
1 answer 3 views
3 views
Problem: What am I going to do about it : Consider defining a bean of type in your configuration?
asked Jun 25 Nahil 128k points
0 votes
1 answer 104 views
104 views
Problem: I did read some questions but none of the answers solved it for me. Any idea : No bean named 'entitymanagerfactory' available?
asked May 26 Irenka Kiri 85.5k points
0 votes
1 answer 683 views
683 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, 2020 Raphael Pacheco 4.9k points
0 votes
1 answer 7 views
7 views
Problem: Is there any easier way to solve this error : Video playback aborted due to network error?
asked May 30 Junia Phoebe 83.8k points