tomcat - Absolute Paths in solr.xml configuration using Tomcat6 on windows -


we have multicore solr setup 2 cores, 1 site , 1 catalog data.

inside solr.xml core config follows;

<cores adminpath="/admin/cores">     <core name="catalog" instancedir="e:\solrinstances\catalog" />     <core name="sites" instancedir="e:\solrinstances\sites" /> </cores> 

e:\ mapped/mounted network drive regularly backed up.

however, when try access core nasty stack trace

jul 17, 2013 8:28:00 pm org.apache.solr.common.solrexception log severe: java.lang.runtimeexception: can't find resource 'solrconfig.xml' in classpath or 'e:\solrinstances\sites\conf/', cwd=c:\program files (x86)\apache software foundation\tomcat 6.0     @ org.apache.solr.core.solrresourceloader.openresource(solrresourceloader.java:268)     @ org.apache.solr.core.solrresourceloader.openconfig(solrresourceloader.java:234)     @ org.apache.solr.core.config.<init>(config.java:141)     @ org.apache.solr.core.solrconfig.<init>(solrconfig.java:131)     @ org.apache.solr.core.corecontainer.create(corecontainer.java:435)     @ org.apache.solr.core.corecontainer.load(corecontainer.java:316) 

we had cores in tomcat root relative paths during development, , worked fine, moving mapped/mounted network drive absolute paths not work.

and solrconfig.xml exist in both e:\solrinstances\sites\conf , e:\solrinstances\catalog\confand solr user has permissions directories.

does have clues?

try unc path instead, see: http://wiki.apache.org/tomcat/faq/windows#q6


Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -