...
Code Block |
---|
JAVA_OPTS="${JAVA_OPTS} -Dfcrepo.home=/mnt/fedora-data" |
Additional information regarding the configuration of System Properties in Tomcat 7 can be found here.
Windows notes
Alternatively on Windows and Linux systems you can set the following file:
No Format |
---|
CATALINA_BASE/bin/setenv.sh (linux)
CATALINA_BASE/bin/setenv.bat (windows) |
...
Code Block |
---|
set CATALINA_OPTS=%CATALINA_OPTS% -Dfcrepo.ispn.repo.CacheDirPath=F:\fedora\cache |
Note |
---|
...
When starting up tomcat on windows if you receive an error like the following it may be necessary to include a fcrepo.ispn.repo.CacheDirPath like above. |
Code Block |
---|
Caused by: org.fusesource.leveldbjni.internal.NativeDB$DBException: IO error: F:\apache-tomcat-7.0.50-windows-x64\apache-tomcat-7.0.50\bin\fcrepo4-data\fcrepo.ispn.repo.CacheDirPath\data\MANIFEST-000002: The handle is invalid. |
...
. |
Anchor | ||||
---|---|---|---|---|
|
On Debian Linux systems, one way of setting System Properties is to update the following file:
...
Code Block |
---|
JAVA_OPTIONS="${JAVA_OPTIONS} -Dfcrepo.home=/mnt/fedora-data" |
Additional information regarding the configuration of System Properties in Jetty 9 can be found here.
Windows notes
Alternatively on Windows and Linux systems you can set the following file:
...
Code Block |
---|
--exec -Dfcrepo.home=/mnt/fedora-data |
Additional information regarding the configuration of System Properties in Jetty 9 can be found here.
Maven jetty:run
System Properties can be set when using the Maven jetty:run plugin by passing them per the example below:
...
Code Block |
---|
java -Dfcrepo.home=/mnt/fedora-data -jar fcrepo-webapp-jetty-console.war |
Anchor | ||||
---|---|---|---|---|
|
There are a number of configuration elements that can be optionally be set when starting the Fedora 4 web-application. No configuration elements are required to be set, as they all default values (noted below within brackets: <>).
...
No Format |
---|
fcrepo.modeshape.configuration=<classpath:/config/repository.json | file:/path/to/repository.json> |
This specifies the configuration for the underlying Modeshape repository. See other available options for this value within the source tree. The default file is located within the WAR file under WEB-INF/classes/config.
...
The Modeshape and Infinispan configurations mentioned above can have a number of more detailed configuration elements that can optionally be set. To see exactly which elements are available to be set, inspect the repository.json and infinispan.xml files specified above. Those files can be browsed in the source tree in:
...