title: Spring boot jar Unable to start embedded Tomcat
body: <p>i have created spring rest services using eclipse IDE. It works fine in eclipse when i run using Debug configurations however when I export it as a executable JAR and run using below command </p>
  
  <pre><code>java -jar cs.jar
  </code></pre>
  
  <p>it gives me below error:</p>
  
  <pre><code>    org.springframework.context.ApplicationContextException: Unable to start embedde
  d container; nested exception is org.springframework.boot.context.embedded.Embed
  dedServletContainerException: Unable to start embedded Tomcat
          at org.springframework.boot.context.embedded.EmbeddedWebApplicationConte
  xt.onRefresh(EmbeddedWebApplicationContext.java:124)
          at org.springframework.context.support.AbstractApplicationContext.refres
  h(AbstractApplicationContext.java:474)
          at org.springframework.boot.context.embedded.EmbeddedWebApplicationConte
  xt.refresh(EmbeddedWebApplicationContext.java:109)
  </code></pre>
  
  <p>why it's not working as a jar?</p>