• Register
0 votes
122 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

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

Related questions

0 votes
2 answers 34 views
34 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 158 views
158 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
2 answers 170 views
170 views
Problem : I want to run the spring-boot application which uses thre hibernate via spring-jpa, but i am facing below error: Caused by: org.hibernate.HibernateException: Access to DialectResolutionInfo ... .AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:345) at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:308)
asked Jan 3 alecxe 7.5k points
1 vote
1 answer 22 views
22 views
Problem: I've got a simple code of java. I am being a failure to compile my program. It throws back an unknown error says, missing '}' or illegal start of expression. Here is my code snippet public class MyClass { public static void main(String[] args) { count(); public static int count() { return 0; } } Any idea? An advance thanks for your solution.
asked Apr 4 Gavin 15.2k points
0 votes
1 answer 6 views
6 views
Problem: I am very new to Spring Boot. At this time I am facing a problem with running my very simple Spring Boot Application. If I try to run my application then below error comes up:  java.net.BindException: Address already ... .embedded.tomcat.TomcatEmbeddedServletContainer.<init>(TomcatEmbeddedServletContainer.java:52)             at Can someone who knows spring boot help me with this error?
asked 3 days ago Raphael Pacheco 2.6k points