Chris,
When I remove the surrounding quotes from solr path in my web.xml it works !
Thanks for your help
Karen


On Wednesday 04 July 2007 16:56:40 Chris Hostetter wrote:
> : 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>(SolrConfig.java:90)
> :     ... 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
>
> ...it 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...
>       "/opt/all/solr"/conf/
>
>
>
>
> -Hoss


Reply via email to