title: solr example demo, cant work out where to put java folder
body: <p>Ive followed this tutorial to install (multiple) solr instances on tomcat</p>
  
  <p><a href="http://wiki.apache.org/solr/SolrTomcat" rel="nofollow noreferrer">http://wiki.apache.org/solr/SolrTomcat</a></p>
  
  <p>Now i want to set up this demo but its not working</p>
  
  <p><a href="http://www.ibm.com/developerworks/java/library/j-solr1/" rel="nofollow noreferrer">http://www.ibm.com/developerworks/java/library/j-solr1/</a></p>
  
  <p>Ive built the dw.war as mentioned in the demo and now I get this error.</p>
  
  <pre><code>java.lang.NoClassDefFoundError: Could not initialize class org.apache.commons.httpclient.HttpClient
      org.apache.dwexample.servlet.DWServlet.sendGetCommand(DWServlet.java:714)
      org.apache.dwexample.servlet.DWServlet.processSubmitQuery(DWServlet.java:634)
      org.apache.dwexample.servlet.DWServlet.doGet(DWServlet.java:120)
      org.apache.dwexample.servlet.DWServlet.doPost(DWServlet.java:782)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
  </code></pre>
  
  <p>Thinking that it was an error in the /tomcat/lib directory copied the commons-httpclient-3.0.jar into the /tomcat/lib directory and did </p>
  
  <pre><code>chcon -R -h -t httpd_sys_content_t /usr/share/apache-tomcat-6.0.18/lib/
  </code></pre>
  
  <p>Now I get two errors:</p>
  
  <pre><code>java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
      org.apache.commons.httpclient.HttpClient.&lt;clinit&gt;(HttpClient.java:65)
      org.apache.dwexample.servlet.DWServlet.sendPostCommand(DWServlet.java:663)
      org.apache.dwexample.servlet.DWServlet.processSubmitCommand(DWServlet.java:596)
      org.apache.dwexample.servlet.DWServlet.processIndexCommand(DWServlet.java:557)
      org.apache.dwexample.servlet.DWServlet.processCommit(DWServlet.java:225)
      org.apache.dwexample.servlet.DWServlet.doGet(DWServlet.java:100)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
  
  root cause
  
  java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory
      org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
      org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
      org.apache.commons.httpclient.HttpClient.&lt;clinit&gt;(HttpClient.java:65)
      org.apache.dwexample.servlet.DWServlet.sendPostCommand(DWServlet.java:663)
      org.apache.dwexample.servlet.DWServlet.processSubmitCommand(DWServlet.java:596)
      org.apache.dwexample.servlet.DWServlet.processIndexCommand(DWServlet.java:557)
      org.apache.dwexample.servlet.DWServlet.processCommit(DWServlet.java:225)
      org.apache.dwexample.servlet.DWServlet.doGet(DWServlet.java:100)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
  </code></pre>
  
  <p>Would love to find out how to solve these errors. cataling log output doesnt give much to go by.</p>
  
  <p>Cheers</p>
  
  <p>Ke</p>