lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <>
Subject Re: java.lang.ExceptionInInitializerError - Can't find resource 'solrconfig.xml'
Date Wed, 04 Jul 2007 15:56:40 GMT

: But if I put a webservice infront of it ,which essentially provides an webapp
: api to the standalone (deployed in tomcat 5.5.23) and set up solr.home via
: JNDI I get the exception below.   The trace indicates that it is correctly
: using JNDI solr.home "/opt/all/solr" which does have conf directory with

note the quote characters in the logging and read further down in the
stack trace...

: 04-Jul-2007 11:16:39 org.apache.solr.core.Config getInstanceDir
: INFO: Using JNDI solr.home: "/opt/all/solr"
: 04-Jul-2007 11:16:39 org.apache.solr.core.Config setInstanceDir
: INFO: Solr home set to '"/opt/all/solr"/'
: Caused by: java.lang.RuntimeException: Error in solrconfig.xml
: 	at org.apache.solr.core.SolrConfig.<clinit>(
: 	... 49 more
: Caused by: java.lang.RuntimeException: Can't find resource 'solrconfig.xml' in
: classpath or '"/opt/all/solr"/conf/', cwd=/opt/all/apache-tomcat-5.5.23 looks like when you set solr home using JNDI, the mechanism you are
using is actaully putting the quote characters in the value, so it's
trying to find a file with the path...


View raw message