Answering my own question in case anyone else encounters the same issue:

Jetty isn't configured to support JNDI by default. To enable JNDI you have to:


1)      Add "plus" to the "OPTIONS=" line in start.ini

2)      Add "etc/jetty-plus.xml" to the list of loaded configuration files at 
the end of start.ini

Jetty can then load the "solr/home" property from the Solr WAR web.xml.

Jacob

From: Brown, Jacob
Sent: Wednesday, March 05, 2014 3:16 PM
To: dspace-tech@lists.sourceforge.net
Subject: Problem reading solr/home in DSpace 4.1 when running in Jetty

Hi all,

I just installed DSpace 4.1 and am running it in Jetty (jetty-8.1.14). When the 
Solr webapp is initializing, I get the following info/errors:

182  [main] INFO  org.apache.solr.core.SolrResourceLoader  - No /solr/home in 
JNDI
183  [main] INFO  org.apache.solr.core.SolrResourceLoader  - solr home 
defaulted to 'solr/' (could not find system property or JNDI)

which causes solr.xml to not get read, which causes Solr to not run properly...

Solr home is appropriately "hard-coded" (as generated by the install process) 
in [dspace]/webapps/solr/WEB-INF/web.xml (that is, `env-entry-value` is set to 
the appropriate directory). However, this setting is apparently not getting 
read by Jetty.

If I run Jetty with:

java -jar start.jar -Dsolr.solr.home=/path/to/dspace/solr

then Solr is started correctly. I skimmed the listserv and looked around 
online, and didn't see any suggestions for this specific error as related to 
DSpace.

Does anyone have any thoughts?

Thanks,

Jacob Brown
Digital Services Librarian
j.h.br...@tcu.edu<mailto:j.h.br...@tcu.edu>
817-257-5339

------------------------------------------------------------------------------
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
&#149; 3 signs your SCM is hindering your productivity
&#149; Requirements for releasing software faster
&#149; Expert tips and advice for migrating your SCM now
http://p.sf.net/sfu/perforce
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Reply via email to