Ok, I'm still having a problem. I believe that I have to set the solr.solr.home variable somewhere. In Windows, that was easy because you could just open up the system tray app for tomcat and set it there. How can I do that in linux? After googling, it suggested that I set an environment variable in the web.xml file inside the war file. I even saw a commented out section for setting the home variable. I set it in there but it still is giving me this error:
INFO: looking for solr.xml: /usr/share/tomcat5/solr/solr.xml Aug 14, 2009 6:16:41 PM org.apache.solr.core.SolrResourceLoader <init> INFO: Solr home set to 'solr/' Aug 14, 2009 6:16:41 PM org.apache.solr.core.SolrResourceLoader createClassLoader INFO: Adding 'file:/usr/share/tomcat5/solr/lib/jetty-6.1.3.jar' to Solr classloader Aug 14, 2009 6:16:41 PM org.apache.solr.core.SolrResourceLoader createClassLoader INFO: Adding 'file:/usr/share/tomcat5/solr/lib/servlet-api-2.5-6.1.3.jar' to Solr classloader Aug 14, 2009 6:16:41 PM org.apache.solr.core.SolrResourceLoader createClassLoader INFO: Adding 'file:/usr/share/tomcat5/solr/lib/jetty-util-6.1.3.jar' to Solr classloader Aug 14, 2009 6:16:41 PM org.apache.solr.core.SolrResourceLoader createClassLoader INFO: Adding 'file:/usr/share/tomcat5/solr/lib/jsp-2.1/' to Solr classloader Aug 14, 2009 6:16:42 PM org.apache.solr.servlet.SolrDispatchFilter init SEVERE: Could not start SOLR. Check solr/home property java.lang.ExceptionInInitializerError Any ideas? --Aaron On Sat, Aug 15, 2009 at 12:40 AM, Shalin Shekhar Mangar<shalinman...@gmail.com> wrote: > On Sat, Aug 15, 2009 at 6:52 AM, Aaron Aberg <aaronab...@gmail.com> wrote: > >> My client is using a dedicated server with plesk for the control >> panel. The hosting provider says that anything done using the control >> panel is supported by their tech support, so if i try anything using >> SSH, it voids that warranty. Its easy to install a servlet through >> plesk anyway, I upload the war file using the the java servlet >> installer. A sample servlet has been installed so I know this part >> works. >> >> However, when I install solr, i get what looks like a warning icon and >> if I hover over it the tool tip text says this: >> >> "Actual status of the application does not correspond to the status >> retrieved from the database." >> >> The host providers support team says that there is something wrong >> with the war file (big help). Since I kind of stuck using tomcat 5.5, >> is there an older version of solr that I should be using? How can I >> fix this so that I can use solr? >> > > Solr works fine with Tomcat 5.5 > > Solr is a little different from other web applications in that it uses a > specified directory as "solr home" which contains configuration (schema, > solrconfig etc). The solrconfig also tells solr where to store the index. > > The solr home can be specified in many ways (environment variable, JNDI or > even in web.xml). I guess you should specify the absolute path to the solr > home in one of these ways (specifying it in web.xml and re-packaging the war > may be easier for you?). You'd need to upload the contents of the solr home > at the specified location on your server (look at the example directory > which comes with the solr download). Specify the absolute path to data > directory in solrconfig.xml (make sure it is writable). > > http://wiki.apache.org/solr/SolrTomcat > http://wiki.apache.org/solr/HackingSolr > > -- > Regards, > Shalin Shekhar Mangar. >