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 JAVA_OPTS as below.

(The entire text below should be in SINGLE LINE after your Discovery environment variables.)

set JAVA_OPTS=%JAVA_OPTS% %LOGGING_CONFIG% 
  -Xms512m -Xmx1g -XX:MaxPermSize=256m 
 256m
set JAVA_OPTS=%JAVA_OPTS% -Dapp.environment=local 
 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"

Save the file catalinasetenv.bat                                         

...