title: ApplicationContextException: Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean
body: <p>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 me following exception</p>
  
  <pre><code>Unable to start web server; nested exception is
  org.springframework.context.ApplicationContextException: 
  Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean.
  </code></pre>
  
  <p>Below is the way I am running it:</p>
  
  <pre><code>java -cp jarFileName.jar; lib\* -Dlogging.level.org.springframework=DEBUG -Dspring.profiles.active=dev -Dspring.batch.job.names=abcBatchJob com.aa.bb.StartSpringBatch &gt; somelogs.log
  </code></pre>