Single Core Can't Find the solrconfig.xml file

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Single Core Can't Find the solrconfig.xml file

kbeers
Hi,

I tried setting up a single core application and I get the following error
which claims it can't find the solrconfig.xml yet it is located under
solr/conf/solrconfig.xml in my application :

thnx

*type* Status report

*message* *Severe errors in solr configuration. Check your log files for
more detailed information on what may be wrong. If you want solr to continue
after configuration errors, change:
<abortOnConfigurationError>false</abortOnConfigurationError> in
solrconfig.xml -------------------------------------------------------------
java.lang.RuntimeException: Can't find resource 'solrconfig.xml' in
classpath or 'solr/conf/', cwd=/home/kirber/Desktop/tomcat-solr at
org.apache.solr.core.SolrResourceLoader.openResource(SolrResourceLoader.java:168)
at
org.apache.solr.core.SolrResourceLoader.openConfig(SolrResourceLoader.java:136)
at org.apache.solr.core.Config.<init>(Config.java:97) at
org.apache.solr.core.SolrConfig.<init>(SolrConfig.java:108) at
org.apache.solr.core.SolrConfig.<init>(SolrConfig.java:65) at
org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:88)
at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:221)
at
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:302)
at
org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:78)
at
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3635)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4222)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544) at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825) at
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:714) at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490) at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138) at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022) at
org.apache.catalina.core.StandardHost.start(StandardHost.java:736) at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014) at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at
org.apache.catalina.core.StandardService.start(StandardService.java:448) at
org.apache.catalina.core.StandardServer.start(StandardServer.java:700) at
org.apache.catalina.startup.Catalina.start(Catalina.java:552) at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597) at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295) at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433) *
Reply | Threaded
Open this post in threaded view
|

Re: Single Core Can't Find the solrconfig.xml file

hossman
:
: I tried setting up a single core application and I get the following error
: which claims it can't find the solrconfig.xml yet it is located under
: solr/conf/solrconfig.xml in my application :

just to clarify, you are saying that your solrconfig.xml is located
here...

        /home/kirber/Desktop/tomcat-solr/solr/conf/solrconfig.xml

correct?  (based on yoru stack trace, it looks like you aren't using JNDI
or system properties to specify a Solr Home, so it's defaulting to the
current working dir (/home/kirber/Desktop/tomcat-solr) and relative that
it wants to find ./solr/conf/solrconfig.xml

what are the permissions on the file? what about the directory(ies) it's
in?  what UID is tomcat running as?

: java.lang.RuntimeException: Can't find resource 'solrconfig.xml' in
: classpath or 'solr/conf/', cwd=/home/kirber/Desktop/tomcat-solr at
: org.apache.solr.core.SolrResourceLoader.openResource(SolrResourceLoader.java:168)
: at
: org.apache.solr.core.SolrResourceLoader.openConfig(SolrResourceLoader.java:136)
: at org.apache.solr.core.Config.<init>(Config.java:97) at
: org.apache.solr.core.SolrConfig.<init>(SolrConfig.java:108) at
: org.apache.solr.core.SolrConfig.<init>(SolrConfig.java:65) at
: org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:88)


-Hoss

Reply | Threaded
Open this post in threaded view
|

Re: Single Core Can't Find the solrconfig.xml file

kbeers
Hoss,

I was starting tomcat from the incorrect directory. As soon as I started it
from /home/kirber/Desktop/tomcat-solr/apache-tomcat-5.5.25/webapps it fired
up.

Thanks!


On Sat, Apr 5, 2008 at 10:31 PM, Chris Hostetter <[hidden email]>
wrote:

> :
> : I tried setting up a single core application and I get the following
> error
> : which claims it can't find the solrconfig.xml yet it is located under
> : solr/conf/solrconfig.xml in my application :
>
> just to clarify, you are saying that your solrconfig.xml is located
> here...
>
>        /home/kirber/Desktop/tomcat-solr/solr/conf/solrconfig.xml
>
> correct?  (based on yoru stack trace, it looks like you aren't using JNDI
> or system properties to specify a Solr Home, so it's defaulting to the
> current working dir (/home/kirber/Desktop/tomcat-solr) and relative that
> it wants to find ./solr/conf/solrconfig.xml
>
> what are the permissions on the file? what about the directory(ies) it's
> in?  what UID is tomcat running as?
>
> : java.lang.RuntimeException: Can't find resource 'solrconfig.xml' in
> : classpath or 'solr/conf/', cwd=/home/kirber/Desktop/tomcat-solr at
> :
> org.apache.solr.core.SolrResourceLoader.openResource(SolrResourceLoader.java:168)
> : at
> :
> org.apache.solr.core.SolrResourceLoader.openConfig(SolrResourceLoader.java:136)
> : at org.apache.solr.core.Config.<init>(Config.java:97) at
> : org.apache.solr.core.SolrConfig.<init>(SolrConfig.java:108) at
> : org.apache.solr.core.SolrConfig.<init>(SolrConfig.java:65) at
> :
> org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:88)
>
>
> -Hoss
>
>