Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Go to %TOMCAT_HOME%\bin directory.

Open catalinaCreate/open setenv.bat file under %TOMCAT_HOME%\bin directory

Define the following variables in catalinasetenv.bat file after the line :doneSetArgs 

  •        set OLE_DISCOVERY_HOME=\opt\docstore\discovery
  •        set OLE_DISCOVERY_PROP_HOME=%OLE_DISCOVERY_HOME%\properties
  •        set OLE_DISCOVERY_CONFIG_HOME=%OLE_DISCOVERY_HOME%\solr-config
  •        set OLE_DOCSTORE_HOME=\opt\docstore
  •        set OLE_DOCSTORE_PROP_HOME=%OLE_DOCSTORE_HOME%\properties

Set the following JAVA_OPTS after the line:set JAVA_OPTS=%JAVA_OPTS% %LOGGING_CONFIG% as below.

set JAVA_OPTS=%JAVA_OPTS% -Xms512m -Xmx1g -XX:MaxPermSize=256m
 set JAVA_OPTS=%JAVA_OPTS% -Dapp.environment=local
 set JAVA_OPTS=%JAVA_OPTS% -Dsolr.solr.home="%OLE_DISCOVERY_CONFIG_HOME%"
 set JAVA_OPTS=%JAVA_OPTS% -Ddiscovery.properties.file="%OLE_DISCOVERY_PROP_HOME%\ole-discovery.properties"
 set JAVA_OPTS=%JAVA_OPTS% -Dolebibeditor.properties.home="%OLE_DOCSTORE_PROP_HOME%"
 set JAVA_OPTS=%JAVA_OPTS% -Ddocstore.properties.home="%OLE_DOCSTORE_PROP_HOME%"
 set JAVA_OPTS=%JAVA_OPTS% -Dorg.apache.jackrabbit.repository.home="%OLE_DOCSTORE_HOME%\jackrabbit"
 set JAVA_OPTS=%JAVA_OPTS% -Dorg.apache.jackrabbit.repository.conf="%OLE_DOCSTORE_PROP_HOME%\repository.xml"
 set JAVA_OPTS=%JAVA_OPTS% -Dlog4j.configuration="file:%OLE_DOCSTORE_PROP_HOME%\log4j.properties"

Save the file catalinasetenv.bat                                                                     

  •      Copy the contents of DOCSTORE_SOLR_CONFIG_PROJ to OLE_ DISCOVERY_CONFIG_HOME.

...

Open a browser.

        Go to URL [http://localhost:8080/oledocstore/discovery|http://localhost:8080/oledocstore/discovery] and click on "Ingest String Content" tab.

...

         Note for the count for each DocType.

 7.LOG Files

The log files will be written to the following locations by default.

...

Open log4j.properties file under OLE_DOCSTORE_PROP_HOME

Now check the following properties to find the location of log files:

  •  log4j.appender.rolling.File=logs/ole-docstore.log
  •  DocStore - %TOMCAT_HOME%/bin/ log4j.appender.errorAppender.File=logs/ole-docstore-error.log

Open corresponding files specified by above properties. If the path is relative , look for it in %TOMCAT_HOME%\bin directory

8.DocStore within OLE(Optional)

...