• Register
0 votes

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 5 3
6,930 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
    web-application-type: none
It solved my problem.
9 7 4
38,600 points

Related questions

0 votes
2 answers 58 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 771 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, 2020 mphil 2.3k points
0 votes
1 answer 27 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
2 answers 357 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, 2020 alecxe 7.5k points
0 votes
1 answer 11 views
Problems: Is it possible to declare a certain function foo() as toString like this? int property 1; int property 2; int property 3; boolean bar() {...} int foo(){ return bar() ? 0 : property2; } @Override public String toString() { return String.valueOf( ... want to replace the toString() with a Lombok annotation. Which has the same output as the current one. is this somehow possible with Lombok?
asked Sep 14, 2020 Marivoke 530 points
0 votes
1 answer 35 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 Aug 4, 2020 Raphael Pacheco 4.9k points
0 votes
1 answer 481 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, 2020 mphil 2.3k points
0 votes
1 answer 47 views
Problem : This is the error that is thrown when trying to run my web app: [INFO] WARNING: Nested in org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration': Injection of ... of the Datanucleus is no longer supported by your DataNucleus project I don't know what is missing in my app?
asked Dec 21, 2019 alecxe 7.5k points
0 votes
1 answer 859 views
Problem : I get the below error in my browser template might not exist or might not be accessible by any of the configured template resolvers
asked Nov 13, 2019 peterlaw 6.9k points
0 votes
1 answer 4.4K 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