title: Failed to start application after deploying to tomcat
body: <p>I developed an application using spring-boot.After creating the war i have deployed it to tomcat using tomcat manager app but when i try to start it it gives me error</p>
  <pre><code> FAIL - Application at context path [/webstore-v2] could not be started
  </code></pre>
  <p>I checked catalina.out. it is showing an error like this</p>
  <pre><code>06:01:51,024 |-ERROR in ch.qos.logback.core.rolling.RollingFileAppender[trace] - openFile(./logs/trace.log,true) call failed. java.io.FileNotFoundException: ./logs/trace.log (No such file or directory)
      at java.io.FileNotFoundException: ./logs/trace.log (No such file or directory)
      at  at java.io.FileOutputStream.open0(Native Method)
      at  at java.io.FileOutputStream.open(FileOutputStream.java:270)
      at  at java.io.FileOutputStream.&lt;init&gt;(FileOutputStream.java:213)
      at  at ch.qos.logback.core.recovery.ResilientFileOutputStream.&lt;init&gt;(ResilientFileOutputStream.java:26)
      at  at ch.qos.logback.core.FileAppender.openFile(FileAppender.java:204)
      at  at ch.qos.logback.core.FileAppender.start(FileAppender.java:127)
      at  at ch.qos.logback.core.rolling.RollingFileAppender.start(RollingFileAppender.java:100)
      at  at ch.qos.logback.core.joran.action.AppenderAction.end(AppenderAction.java:90)
      at  at ch.qos.logback.core.joran.spi.Interpreter.callEndAction(Interpreter.java:309)
      at  at ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:193)
      at  at ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:179)
      at  at ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:62)
      at  at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:165)
      at  at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:152)
      at  at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:110)
      at  at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:53)
      at  at ch.qos.logback.classic.util.ContextInitializer.configureByResource(ContextInitializer.java:75)
      at  at ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:150)
      at  at org.slf4j.impl.StaticLoggerBinder.init(StaticLoggerBinder.java:84)
      at  at org.slf4j.impl.StaticLoggerBinder.&lt;clinit&gt;(StaticLoggerBinder.java:55)
      at  at org.slf4j.LoggerFactory.bind(LoggerFactory.java:150)
      at  at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:124)
      at  at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:417)
      at  at ch.qos.logback.classic.util.StatusViaSLF4JLoggerFactory.addStatus(StatusViaSLF4JLoggerFactory.java:32)
      at  at ch.qos.logback.classic.util.StatusViaSLF4JLoggerFactory.addInfo(StatusViaSLF4JLoggerFactory.java:20)
      at  at ch.qos.logback.classic.servlet.LogbackServletContainerInitializer.onStartup(LogbackServletContainerInitializer.java:32)
      at  at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5160)
      at  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
      at  at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1391)
      at  at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:698)
      at  at org.apache.catalina.manager.HTMLManagerServlet.doPost(HTMLManagerServlet.java:218)
  </code></pre>
  <p>So, i guess this can be the cause because of logback.xml.here is my logback</p>
  <pre class="lang-xml prettyprint-override"><code>     &lt;configuration&gt;
      &lt;property name=&quot;defaultPattern&quot;
                value=&quot;[%-5level] [%d{yyyy-MM-dd HH:mm:ss.SSS}] %logger{36} - %msg%n&quot;/&gt;
      &lt;property name=&quot;defaultPath&quot; value=&quot;./logs&quot;/&gt;
  
      &lt;appender name=&quot;stdout&quot; class=&quot;ch.qos.logback.core.ConsoleAppender&quot;&gt;
          &lt;encoder&gt;
              &lt;pattern&gt;${defaultPattern}&lt;/pattern&gt;
          &lt;/encoder&gt;
      &lt;/appender&gt;
  
      &lt;appender name=&quot;trace&quot; class=&quot;ch.qos.logback.core.rolling.RollingFileAppender&quot;&gt;
          &lt;file&gt;${defaultPath}/trace.log&lt;/file&gt;
          &lt;append&gt;true&lt;/append&gt;
          &lt;rollingPolicy class=&quot;ch.qos.logback.core.rolling.TimeBasedRollingPolicy&quot;&gt;
              &lt;fileNamePattern&gt;${defaultPath}/trace-%d{yyyy-MM-dd}.log&lt;/fileNamePattern&gt;
              &lt;maxHistory&gt;30&lt;/maxHistory&gt;
          &lt;/rollingPolicy&gt;
          &lt;encoder&gt;
              &lt;pattern&gt;${defaultPattern}&lt;/pattern&gt;
          &lt;/encoder&gt;
      &lt;/appender&gt;
  
      &lt;appender name=&quot;http-client&quot; class=&quot;ch.qos.logback.core.rolling.RollingFileAppender&quot;&gt;
          &lt;file&gt;${defaultPath}/http-client.log&lt;/file&gt;
          &lt;append&gt;true&lt;/append&gt;
          &lt;rollingPolicy class=&quot;ch.qos.logback.core.rolling.TimeBasedRollingPolicy&quot;&gt;
              &lt;fileNamePattern&gt;${defaultPath}/http-client-%d{yyyy-MM-dd}.log&lt;/fileNamePattern&gt;
              &lt;maxHistory&gt;30&lt;/maxHistory&gt;
          &lt;/rollingPolicy&gt;
          &lt;encoder&gt;
              &lt;pattern&gt;${defaultPattern}&lt;/pattern&gt;
          &lt;/encoder&gt;
      &lt;/appender&gt;
  
      &lt;appender name=&quot;webstore-v2&quot; class=&quot;ch.qos.logback.core.rolling.RollingFileAppender&quot;&gt;
          &lt;file&gt;${defaultPath}/webstore-v2.log&lt;/file&gt;
          &lt;append&gt;true&lt;/append&gt;
          &lt;rollingPolicy class=&quot;ch.qos.logback.core.rolling.TimeBasedRollingPolicy&quot;&gt;
              &lt;fileNamePattern&gt;${defaultPath}/webstore-v2-%d{yyyy-MM-dd}.log&lt;/fileNamePattern&gt;
              &lt;maxHistory&gt;30&lt;/maxHistory&gt;
          &lt;/rollingPolicy&gt;
          &lt;encoder&gt;
              &lt;pattern&gt;${defaultPattern}&lt;/pattern&gt;
          &lt;/encoder&gt;
      &lt;/appender&gt;
  
      &lt;logger name=&quot;io.applova.webstore&quot; level=&quot;trace&quot; additivity=&quot;false&quot;&gt;
          &lt;appender-ref ref=&quot;trace&quot;/&gt;
      &lt;/logger&gt;
  
      &lt;logger name=&quot;io.applova.webstore&quot; level=&quot;debug&quot; additivity=&quot;false&quot;&gt;
          &lt;appender-ref ref=&quot;webstore-v2&quot;/&gt;
      &lt;/logger&gt;
  
      &lt;logger name=&quot;http-client&quot; level=&quot;debug&quot; additivity=&quot;false&quot;&gt;
          &lt;appender-ref ref=&quot;http-client&quot;/&gt;
      &lt;/logger&gt;
  
      &lt;root level=&quot;info&quot; additivity=&quot;false&quot;&gt;
          &lt;appender-ref ref=&quot;stdout&quot;/&gt;
          &lt;appender-ref ref=&quot;trace&quot;/&gt;
      &lt;/root&gt;
  &lt;/configuration&gt;
  </code></pre>
  <p>logs directory can not be created i guess.What should i do?</p>