The wiki has some Tomcat info here: <http://wiki.apache.org/solr/SolrTomcat>, not sure how up-to-date it is.
See also LucidWorks' Solr Reference Guide's page Running Solr on Tomcat: <http://docs.lucidworks.com/display/solr/Running+Solr+on+Tomcat> IntelliJ has a Tomcat run configuration that can run 'ant dist', then deploy the .war to Tomcat. I've never used it. Not sure if the Community edition has this capability. On Mar 21, 2013, at 8:35 PM, Furkan KAMACI <furkankam...@gmail.com> wrote: > Shoukd I create a collection1 folder as like in the example? On the other > hand if I use .war tı deploy how can I resolve that problem too? > > 2013/3/22 Furkan KAMACI <furkankam...@gmail.com> > >> I run ant idea command for Solr 4.1.0 and opened source code within >> Intellij IDEA 12.0.4 and I use Centos 6.4 at my 64 bit computer. >> >> I debugged JettySolrRunner (I don't know, I think this is the way to run >> Solt with Embedd Jetty within my Intellij IDEA.) However I get that error: >> >> SEVERE: Unable to create core: collection1 >> org.apache.solr.common.SolrException: Could not load config for >> solrconfig.xml >> at >> org.apache.solr.core.CoreContainer.createFromLocal(CoreContainer.java:897) >> at org.apache.solr.core.CoreContainer.create(CoreContainer.java:957) >> at org.apache.solr.core.CoreContainer$2.call(CoreContainer.java:579) >> at org.apache.solr.core.CoreContainer$2.call(CoreContainer.java:574) >> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) >> at java.util.concurrent.FutureTask.run(FutureTask.java:166) >> at >> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) >> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) >> at java.util.concurrent.FutureTask.run(FutureTask.java:166) >> at >> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) >> at >> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) >> at java.lang.Thread.run(Thread.java:722) >> Caused by: java.io.IOException: Can't find resource 'solrconfig.xml' in >> classpath or './collection1/conf/', cwd=/home/kamaci/projects/lucene-solr >> at >> org.apache.solr.core.SolrResourceLoader.openResource(SolrResourceLoader.java:319) >> at >> org.apache.solr.core.SolrResourceLoader.openConfig(SolrResourceLoader.java:284) >> at org.apache.solr.core.Config.<init>(Config.java:112) >> at org.apache.solr.core.Config.<init>(Config.java:82) >> at org.apache.solr.core.SolrConfig.<init>(SolrConfig.java:117) >> at >> org.apache.solr.core.CoreContainer.createFromLocal(CoreContainer.java:894) >> ... 11 more >> >> What to do? >>