Esri / geoportal-server

Geoportal Server is a standards-based, open source product that enables discovery and use of geospatial resources including data and services.
https://gptogc.esri.com/geoportal
Apache License 2.0
244 stars 149 forks source link

java.lang.IllegalArgumentException: The LuceneConfig indexLocation is empty #209

Open slead opened 8 years ago

slead commented 8 years ago

I'm seeing a problem with a new installation of Geoportal Server 1.2.6 on Windows 7, using Apache Tomcat 7.0.69 and PostGreSQL 9.1.

This is the same error as reported at https://geonet.esri.com/thread/47225 whereby searching from within the geoportal returns:

Unable to load /geoportal/rest/find/document?rid=local&ridName=This%20Site&rids=local....

The log file shows:

SEVERE: Error while touching IndexWriter on init. java.lang.IllegalArgumentException: The LuceneConfig indexLocation is empty.

gpt.xml contains:

<lucene
  indexLocation="C:\lucene"
  writeLockTimeout="60000"
  useNativeFSLockFactory="true"
  analyzerClassName="org.apache.lucene.analysis.standard.StandardAnalyzer">
  <!--
    <adaptor name="like" className="com.esri.gpt.catalog.lucene.StandardNetworkParserAdaptor">
      <attribute key="baseUrl" value="http://serverName/OntologyService/query?threshold=0.25&amp;term="/>
    </adaptor>
  -->
</lucene> 

<parameter key="assertion.index.enabled" value="true"/>
<parameter key="assertion.index.location" value="C:\lucene\assertion"/>

Here is a listing of the contents of c:\lucene and c:\lucene\assertion. I haven't explictly started any Lucene services - do I need to?

Thanks for any advice on where I'm going wrong here.

slead commented 8 years ago

Update: I deleted the entire Geoportal Server 1.2.6 directory and reinstalled using a known good copy of 1.2.5 (including copying over the entire Lucene directory) and it now works.

So I still don't have a working copy of 1.2.6 but I can live with 1.2.5 for the meanwhile