title: How to fix SolrException: Error loading solr config?
body: <p>So, my current setup looks like this:</p>
  
  <p>Solr 4.10.4 with Tomcat7. Solr by itself is woring under <code>localhost:8080/solr</code> but as it wants to create a core it gets the following failure:</p>
  
  <pre><code>SolrCore Initialization Failures
  atalanda_development: org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: Could not load conf for core atalanda_development: Error loading solr config from /usr/share/solr/example/solr/development/conf/solrconfig.xml
  </code></pre>
  
  <p>So the first thought of mine was to check if the file is even there:</p>
  
  <pre><code>ll /usr/share/solr/example/solr/development/conf/solrconfig.xml
  -rw-rw-r-- 1 tomcat7 gbeschbacher 71K Mar 16 13:56 /usr/share/solr/example/solr/development/conf/solrconfig.xml
  </code></pre>
  
  <p>So after this i knew the file was there and tomcat7 has the permission on it. I tried two versions of solrconfig.xml - a default one and a custom one. The error occured with both of these.</p>
  
  <p>My Tomcat7 has the following solr.xml file which is pretty straight forward:</p>
  
  <pre><code>cat /etc/tomcat7/Catalina/localhost/solr.xml 
  &lt;Context docBase="/usr/share/solr/example/solr/solr.war" debug="0" crossContext="true"&gt;
      &lt;Environment name="solr/home" type="java.lang.String" value="/usr/share/solr/example/solr" override="true" /&gt;
  &lt;/Context&gt;
  </code></pre>
  
  <p>All it does it to tell tomcat7 where my docbase and my environment of solr is. For more understanding i show you the folder-structure with the permissions of my <code>usr/share/solr/example/solr</code> folder:</p>
  
  <pre><code>/u/s/s/e/solr ❯❯❯
  drwxr-xr-x 2 tomcat7 gbeschbacher 4.0K Sep  8  2014 bin
  drwxr-xr-x 3 tomcat7 gbeschbacher 4.0K Mar 18 23:06 collection1
  drwxr-xr-x 2 tomcat7 root         4.0K Mar 19 00:53 development
  -rw-r--r-- 1 tomcat7 gbeschbacher 2.5K Sep  8  2014 README.txt
  -rw-r--r-- 1 tomcat7 gbeschbacher  29M Mar 19 00:13 solr.war
  -rw-r--r-- 1 tomcat7 gbeschbacher  333 Mar 19 00:52 solr.xml
  -rw-r--r-- 1 tomcat7 gbeschbacher  501 Sep  8  2014 zoo.cfg
  </code></pre>
  
  <p>In here, the <code>solr.xml</code> contains the following code:</p>
  
  <pre><code>/u/s/s/e/solr ❯❯❯ cat solr.xml
  &lt;?xml version="1.0" encoding="UTF-8" ?&gt;
      &lt;solr persistent="false"&gt;
          &lt;cores adminPath="/admin/cores" host="${host:}" hostPort="${jetty.port:}"&gt;
              &lt;core name="atalanda_development" instanceDir="development" dataDir="development/data"/&gt;
          &lt;/cores&gt;
      &lt;/solr&gt;
  </code></pre>
  
  <p>So, at the moment i really have no clue anymore what i still could try to get my setup to work because i don't know what i am doing wrong in here. Any suggestions or try-out solutions are appreciated even it's only a comment on what i could change.</p>
  
  <p>If someone needs any more information to be able to give some hints, please tell me so and I'll provide it!</p>