The following bit looks weird:
Can't find resource 'solrconfig.xml'
in classpath or '/var/www/<sitename>/search/
collection1/con*f*'

Where does con*f* comes from?

In any case, what I would do is use "a hammer". One of the
truss/strace/dtrace/opensnoop utilities based on what O/S you are
doing this on. And see what files are really being accessed.

My bet is still that maybe permissions are wrong somehow for the
tomcat process and/or directory cannot be entered (possibly a higher
level one). But I solved many a confusing path problems by just
looking at ground truth file system access first and looking for
causes later.

Regards,
   Alex.
Personal website: http://www.outerthoughts.com/
Current project: http://www.solr-start.com/ - Accelerating your Solr proficiency


On Thu, Jun 5, 2014 at 8:44 PM, Joel Stobart
<j...@custodiansolutions.com> wrote:
> Hi,
>
> The file system tree is:
>
>
> ├── collection1
>
> │   ├── conf
>
> │   │   ├── currency.xml
>
> │   │   ├── data-config.xml
>
> │   │   ├── dataimport.properties
>
> │   │   ├── elevate.xml
>
> │   │   ├── lang
>
> │   │   │   ├── contractions_ca.txt
>
> │   │   │   ├── contractions_fr.txt
>
> │   │   │   ├── contractions_ga.txt
>
> │   │   │   ├── contractions_it.txt
>
> │   │   │   ├── hyphenations_ga.txt
>
> │   │   │   ├── stemdict_nl.txt
>
> │   │   │   ├── stoptags_ja.txt
>
> │   │   │   ├── stopwords_ar.txt
>
> │   │   │   ├── stopwords_bg.txt
>
> │   │   │   ├── stopwords_ca.txt
>
> │   │   │   ├── stopwords_cz.txt
>
> │   │   │   ├── stopwords_da.txt
>
> │   │   │   ├── stopwords_de.txt
>
> │   │   │   ├── stopwords_el.txt
>
> │   │   │   ├── stopwords_en.txt
>
> │   │   │   ├── stopwords_es.txt
>
> │   │   │   ├── stopwords_eu.txt
>
> │   │   │   ├── stopwords_fa.txt
>
> │   │   │   ├── stopwords_fi.txt
>
> │   │   │   ├── stopwords_fr.txt
>
> │   │   │   ├── stopwords_ga.txt
>
> │   │   │   ├── stopwords_gl.txt
>
> │   │   │   ├── stopwords_hi.txt
>
> │   │   │   ├── stopwords_hu.txt
>
> │   │   │   ├── stopwords_hy.txt
>
> │   │   │   ├── stopwords_id.txt
>
> │   │   │   ├── stopwords_it.txt
>
> │   │   │   ├── stopwords_ja.txt
>
> │   │   │   ├── stopwords_lv.txt
>
> │   │   │   ├── stopwords_nl.txt
>
> │   │   │   ├── stopwords_no.txt
>
> │   │   │   ├── stopwords_pt.txt
>
> │   │   │   ├── stopwords_ro.txt
>
> │   │   │   ├── stopwords_ru.txt
>
> │   │   │   ├── stopwords_sv.txt
>
> │   │   │   ├── stopwords_th.txt
>
> │   │   │   ├── stopwords_tr.txt
>
> │   │   │   └── userdict_ja.txt
>
> │   │   ├── protwords.txt
>
> │   │   ├── schema.xml
>
> │   │   ├── solrconfig.xml
>
> │   │   ├── stopwords.txt
>
> │   │   └── synonyms.txt
>
>
> /var/www/<sitename>/search/collection1/conf exists...
>
> Cheers,
> Joel
>
>
>
>
> On Thu, Jun 5, 2014 at 1:27 PM, Dmitry Kan <solrexp...@gmail.com> wrote:
>>
>> bq. The file /var/www/<sitename>/search/collection1/solrconfig.xml does
>> exist,
>> the owner is tomcat7 and the permissions are 664 and contains a
>> configuration that is working on my mac with the same version of solr.
>>
>>
>> The exception is self-explanatory: solr is looking for conf directory
>> inside collection1 directory. The conf directory must contain
>> solrconfig.xml and other config files, like schema.xml at least.
>>
>> Dmitry
>>
>>
>> On Thu, Jun 5, 2014 at 10:45 AM, Joel Stobart <j...@custodiansolutions.com>
>> wrote:
>>
>> > I can't get Solr to start up inside a tomcat7 server. Other Wars are
>> > starting but this one isn't. That's it really. It works on my Mac. The
>> > <sitename> bit is a slight redaction, the work is for a client.
>> >
>> > I've added a solr.xml file:
>> >
>> > <Context docBase="/var/www/solr/solr.war" crossContext="true" >
>> >    <Environment name="solr/home" type="java.lang.String"
>> > value="/var/www/<sitename>/search/" override="true" />
>> > </Context>
>> >
>> > The file /var/www/<sitename>/search/collection1/solrconfig.xml does exist,
>> > the owner is tomcat7 and the permissions are 664 and contains a
>> > configuration that is working on my mac with the same version of solr.
>> >
>> > Catalina log:
>> >
>> > Jun 02, 2014 4:45:59 PM org.apache.catalina.startup.HostConfig
>> > deployDescriptor
>> > INFO: Deploying configuration descriptor
>> > /etc/tomcat7/Catalina/<sitename>/solr.xml
>> >
>> > org.apache.solr.core.CoreContainer:null:org.apache.solr.common.SolrException:
>> > Unable to create core: collection1
>> >     at
>> > org.apache.solr.core.CoreContainer.recordAndThrow(CoreContainer.java:911)
>> >     at org.apache.solr.core.CoreContainer.create(CoreContainer.java:568)
>> >     at org.apache.solr.core.CoreContainer$1.call(CoreContainer.java:261)
>> >     at org.apache.solr.core.CoreContainer$1.call(CoreContainer.java:253)
>> >     at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>> >     at
>> > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>> >     at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>> >     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:744)
>> > Caused by: org.apache.solr.common.SolrException: Could not load core
>> > configuration for core collection1
>> >     at
>> > org.apache.solr.core.ConfigSetService.getConfig(ConfigSetService.java:66)
>> >     at org.apache.solr.core.CoreContainer.create(CoreContainer.java:554)
>> >     ... 8 more
>> > Caused by: org.apache.solr.common.SolrException: Error loading solr
>> > config from /var/www/<sitename>/search/collection1/solrconfig.xml
>> >     at
>> > org.apache.solr.core.SolrConfig.readFromResourceLoader(SolrConfig.java:148)
>> >     at
>> > org.apache.solr.core.ConfigSetService.createSolrConfig(ConfigSetService.java:79)
>> >     at
>> > org.apache.solr.core.ConfigSetService.getConfig(ConfigSetService.java:61)
>> >     ... 9 more
>> > Caused by: java.io.IOException: Can't find resource 'solrconfig.xml'
>> > in classpath or '/var/www/<sitename>/search/collection1/con*f*'
>> >     at
>> > org.apache.solr.core.SolrResourceLoader.openResource(SolrResourceLoader.java:362)
>> >     at
>> > org.apache.solr.core.SolrResourceLoader.openConfig(SolrResourceLoader.java:308)
>> >     at org.apache.solr.core.Config.<init>(Config.java:116)
>> >     at org.apache.solr.core.Config.<init>(Config.java:86)
>> >     at org.apache.solr.core.SolrConfig.<init>(SolrConfig.java:161)
>> >     at
>> > org.apache.solr.core.SolrConfig.readFromResourceLoader(SolrConfig.java:144)
>> >     ... 11 more
>> >
>> > Any ideas?
>> >
>> > Cheers,
>> >
>> > Joel Stobart
>> >
>>
>>
>>
>> --
>> Dmitry Kan
>> Blog: http://dmitrykan.blogspot.com
>> Twitter: http://twitter.com/dmitrykan
>
>
>
>
> --
>
>
> Regards,
>
>
> Joel Stobart
>
> Chief Technology Officer
>
> E: j...@custodiansolutions.com
> M: 07799 416 514
>
> Company No. 08583145. Registered Office: 129A Middleton Boulevard,
> Wollaton Park, Nottingham, UK, NG8 1FW
> This email is confidential and intended solely for the use of the
> individual to whom it is addressed. If you are not the intended
> recipient, be advised that you have received this email in error and
> that any use, dissemination, forwarding, printing, or copying of this
> email is strictly prohibited. If you have received this in error
> please notify us by email on i...@custodiansolutions.com.

Reply via email to