Thanks for all the help -- I got it figured out. Turned out I created a lot of my own problems (never mind how). Once I undid my own damage I was able to get it running with the JNDI configuration. I never did get the simpler approaches to work, though.
Dave On 11/10/06, Chris Hostetter <[EMAIL PROTECTED]> wrote:
: > SEVERE: Servlet.service() for servlet jsp threw exception : > java.lang.RuntimeException: Can't find resource '' in classpath or : > 'solr/conf/', cwd=C:\tomcat_solr : > ... It's pretty weird that it says: "...resource '' in..." those quotes should contain the name of hte resource it's trying to find, making that message more clear would be a good idea, but i don't think it's the cause of your problem (can you send us the rest of that stack trace) One other thing you can do to verify that your Solr configs will be found properly is to check the log messages of Tomcat when the server is first started ... if you are expecting the CWD to be used as Solr Home you should see messages like this... INFO: JNDI not configured for Solr (NoInitialContextEx) INFO: user.dir=/home/chrish/svn/solr/example INFO: Solr home defaulted to 'solr/' INFO: Loaded SolrConfig: solrconfig.xml ...if you set the solr.solr.home system property explicitly, you'll see something like this... INFO: JNDI not configured for Solr (NoInitialContextEx) INFO: user.dir=/home/chrish/svn/solr/example INFO: Solr home set to '/home/hossman/tmp/solr-home/' from system property solr.solr.home ...and if you use JNDI you should see something like this... INFO: Solr home set to '/home/chrish/tmp/solr-plugins/solr-home/' INFO: user.dir=/home/chrish/svn/solr/example : For tomcat, you can also use a context fragment to point to the solr : war and to the solr home. See "Configuring Solr Home with JNDI" at : http://wiki.apache.org/solr/SolrTomcat that wiki also contains the commands neccessary for the shortest possible Solr/Tomcat install you can do just to sanity check that there's nothing really wonky with your tomcat installation (it was for unix, but the basic idea should work for windows as well) -Hoss