Thanks for the help. I commented out that line in solrconfig.xml like you said. my web.xml file has this entry in it:
<env-entry> <env-entry-name>solr/home</env-entry-name> <env-entry-value>/usr/share/tomcat5/solr</env-entry-value> <env-entry-type>java.lang.String</env-entry-type> </env-entry> And here is my file structure for solr home: /usr/share/tomcat5/solr/ /usr/share/tomcat5/solr/bin /usr/share/tomcat5/solr/bin/* (assuming everything under bin is correct) /usr/share/tomcat5/solr/data (created and chown'ed this to tomcat:tomcat) /usr/share/tomcat5/solr/logs /usr/share/tomcat5/solr/conf /usr/share/tomcat5/solr/conf/* (assuming everything under conf is correct) /usr/share/tomcat5/solr/start.jar /usr/share/tomcat5/solr/etc /usr/share/tomcat5/solr/etc/webdefault.xml /usr/share/tomcat5/solr/etc/jetty.xml /usr/share/tomcat5/solr/testing.mywebk9.com /usr/share/tomcat5/solr/testing.mywebk9.com/conf /usr/share/tomcat5/solr/testing.mywebk9.com/conf/schema.xml /usr/share/tomcat5/solr/testing.mywebk9.com/conf/solrconfig.xml /usr/share/tomcat5/solr/testing.mywebk9.com/conf/synonyms.txt /usr/share/tomcat5/solr/testing.mywebk9.com/conf/xslt /usr/share/tomcat5/solr/testing.mywebk9.com/conf/xslt/example_atom.xsl /usr/share/tomcat5/solr/testing.mywebk9.com/conf/xslt/luke.xsl /usr/share/tomcat5/solr/testing.mywebk9.com/conf/xslt/example_rss.xsl /usr/share/tomcat5/solr/testing.mywebk9.com/conf/xslt/example.xsl /usr/share/tomcat5/solr/testing.mywebk9.com/conf/elevate.xml /usr/share/tomcat5/solr/testing.mywebk9.com/conf/scripts.conf /usr/share/tomcat5/solr/testing.mywebk9.com/conf/protwords.txt /usr/share/tomcat5/solr/testing.mywebk9.com/conf/spellings.txt /usr/share/tomcat5/solr/testing.mywebk9.com/conf/admin-extra.html /usr/share/tomcat5/solr/testing.mywebk9.com/conf/stopwords.txt /usr/share/tomcat5/solr/lib /usr/share/tomcat5/solr/lib/jetty-6.1.3.jar /usr/share/tomcat5/solr/lib/servlet-api-2.5-6.1.3.jar /usr/share/tomcat5/solr/lib/jetty-util-6.1.3.jar /usr/share/tomcat5/solr/lib/jsp-2.1 /usr/share/tomcat5/solr/lib/jsp-2.1/jsp-api-2.1.jar /usr/share/tomcat5/solr/lib/jsp-2.1/jsp-2.1.jar /usr/share/tomcat5/solr/lib/jsp-2.1/ant-1.6.5.jar /usr/share/tomcat5/solr/lib/jsp-2.1/core-3.1.1.jar /usr/share/tomcat5/solr/solr.xml (<-- see! here is my solr.xml setup for multicore) /usr/share/tomcat5/solr/mywebk9.com /usr/share/tomcat5/solr/mywebk9.com/conf /usr/share/tomcat5/solr/mywebk9.com/conf/schema.xml /usr/share/tomcat5/solr/mywebk9.com/conf/solrconfig.xml /usr/share/tomcat5/solr/mywebk9.com/conf/synonyms.txt /usr/share/tomcat5/solr/mywebk9.com/conf/xslt /usr/share/tomcat5/solr/mywebk9.com/conf/xslt/example_atom.xsl /usr/share/tomcat5/solr/mywebk9.com/conf/xslt/luke.xsl /usr/share/tomcat5/solr/mywebk9.com/conf/xslt/example_rss.xsl /usr/share/tomcat5/solr/mywebk9.com/conf/xslt/example.xsl /usr/share/tomcat5/solr/mywebk9.com/conf/elevate.xml /usr/share/tomcat5/solr/mywebk9.com/conf/scripts.conf /usr/share/tomcat5/solr/mywebk9.com/conf/protwords.txt /usr/share/tomcat5/solr/mywebk9.com/conf/spellings.txt /usr/share/tomcat5/solr/mywebk9.com/conf/admin-extra.html /usr/share/tomcat5/solr/mywebk9.com/conf/stopwords.txt /usr/share/tomcat5/solr/webapps /usr/share/tomcat5/solr/webapps/solr.war I'm still getting this error: Aug 16, 2009 6:14:44 PM org.apache.solr.servlet.SolrDispatchFilter init INFO: SolrDispatchFilter.init() Aug 16, 2009 6:14:44 PM org.apache.solr.core.SolrResourceLoader locateInstanceDir INFO: Using JNDI solr.home: /usr/share/tomcat5/solr Aug 16, 2009 6:14:44 PM org.apache.solr.core.CoreContainer$Initializer initialize INFO: looking for solr.xml: /usr/share/tomcat5/solr/solr.xml Aug 16, 2009 6:14:44 PM org.apache.solr.core.SolrResourceLoader <init> INFO: Solr home set to '/usr/share/tomcat5/solr/' Aug 16, 2009 6:14:44 PM org.apache.solr.core.SolrResourceLoader createClassLoader INFO: Adding 'file:/usr/share/tomcat5/solr/lib/jetty-6.1.3.jar' to Solr classloader Aug 16, 2009 6:14:44 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 16, 2009 6:14:44 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 16, 2009 6:14:44 PM org.apache.solr.core.SolrResourceLoader createClassLoader INFO: Adding 'file:/usr/share/tomcat5/solr/lib/jsp-2.1/' to Solr classloader Aug 16, 2009 6:14:44 PM org.apache.solr.servlet.SolrDispatchFilter init SEVERE: Could not start SOLR. Check solr/home property I don't understand... it says solr home set to '/usr/share/tomcat5/solr/' but the error says that there is something wrong with the solr/home directory. Is my file structure incorrect and its been masked by this error? --Aaron On Mon, Aug 17, 2009 at 12:57 AM, Constantijn Visinescu<baeli...@gmail.com> wrote: > near the bottom of my web.xml (just above </web-app>) i got > > <env-entry> > <env-entry-name>solr/home</env-entry-name> > <env-entry-value>path/to/solr</env-entry-value> > <env-entry-type>java.lang.String</env-entry-type> > </env-entry> > > While you're at it you might want to make sure the following line in your > solrconfig.xml is commented out > <!-- <dataDir>${solr.data.dir:./solr/data}</dataDir> --> > > next you should copy the sorl directory (the one with the conf, data and bin > subdiretories) to the path you specified in the web.xml > > Repackage the war and redeploy, that should do it :) > > > On Sat, Aug 15, 2009 at 11:59 AM, Aaron Aberg <aaronab...@gmail.com> wrote: > >> 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. >> > >> >