title: How to run Solr 4 in Tomcat locally?
body: <p>I've been trying to set up Solr 4.3 on my home PC (in Tomcat 7) but it doesn't run. I have set up Tomcat and deployed the <code>solr.war</code> file which both unpacks and shows up in the Tomcat Web Apps Manager screen in Tomcat but its not running and clicking the start button doesn't do anything (as it should already be running in the first place). </p>
  
  <p>Here is my <code>solr.xml</code> context file in Tomcat which also gives the path to the solr.war file and where my solr Cores are (which is the default Collection1):</p>
  
  <pre><code>&lt;Context path="/solr" docBase="C:/LocalApps/Tomcat/apache-tomcat-7.0.40/webapps/solr.war" debug="0" crossContext="true"&gt;
  &lt;Environment name="solr/home" type="java.lang.String" value="C:/LocalApps/Solr/solr-4.3.0/example/solr/" override="true"/&gt;
  &lt;/Context&gt;
  </code></pre>
  
  <p>this is the error log in tomcat:</p>
  
  <pre><code>INFO: Starting Servlet Engine: Apache Tomcat/7.0.40
  Jun 09, 2013 11:04:07 PM org.apache.catalina.startup.HostConfig deployDescriptor
  INFO: Deploying configuration descriptor C:\LocalApps\Tomcat\apache-tomcat-7.0.40\conf\Catalina\localhost\solr.xml
  Jun 09, 2013 11:04:07 PM org.apache.catalina.startup.HostConfig deployDescriptor
  WARNING: A docBase C:\LocalApps\Tomcat\apache-tomcat-7.0.40\webapps\solr.war inside the host appBase has been specified, and will be ignored
  Jun 09, 2013 11:04:07 PM org.apache.catalina.startup.SetContextPropertiesRule begin
  WARNING: [SetContextPropertiesRule]{Context} Setting property 'debug' to '0' did not find a matching property.
  Jun 09, 2013 11:04:09 PM org.apache.catalina.core.StandardContext startInternal
  SEVERE: Error filterStart
  Jun 09, 2013 11:04:09 PM org.apache.catalina.core.StandardContext startInternal
  SEVERE: Context [/solr] startup failed due to previous errors
  </code></pre>