title: Error while deploying the solr service in tomcat
body: <p>I am new to <code>tomcat</code> and <code>solr</code> . So <code>solr</code> is running on the tomcat server . When I run the tomcat using the <code>sudo service tomcat7 start</code> then it works perfectly,gets deployed properly. But when I am doing it from <code>eclipse</code> using the <code>tomcat7:run</code> goal then it is giving me some problems like - </p>
  
  <pre><code>ERROR UpdateLog:120 - Failure to open existing log file (non fatal) /opt/solr-tomcat/solr/collection1/data/tlog/tlog.0000000000000000146:org.apache.solr.common.SolrException: java.io.FileNotFoundException: /opt/solr-tomcat/solr/collection1/data/tlog/tlog.0000000000000000146 (Permission denied)
  </code></pre>
  
  <p><code>ERROR UpdateLog:1441 - Error deleting file: /opt/solr-tomcat/solr/collection1/data/tlog/tlog.0000000000000000146</code>
  2017-07-06 14:39:05 <code>ERROR UpdateLog:120 - Failure to open existing log file (non fatal) /opt/solr-tomcat/solr/collection1/data/tlog/tlog.0000000000000000147:org.apache.solr.common.SolrException: java.io.FileNotFoundException: /opt/solr-tomcat/solr/collection1/data/tlog/tlog.0000000000000000147 (Permission denied)</code></p>
  
  <pre><code>Caused by: org.apache.solr.common.SolrException: Error opening new searcher
  Caused by: java.io.FileNotFoundException: /opt/solr-tomcat/solr/collection1/data/index/write.lock (Permission denied)
  </code></pre>
  
  <p>I changed the permission of that folder as well now it is a <code>tomcat7</code>.
     In the  solr-tomcat folder.</p>
  
  <pre><code>  drwxr-xr-x 3 tomcat7 tomcat7 4096 Jul  6 14:11 solr/
      -rw-r--r-- 1 tomcat7 tomcat7 2118 Jul  6 14:11 solr.xml
  </code></pre>
  
  <p>Can any one please help me with this ?</p>