...
Excerpt |
---|
Although deploying Fedora is as easy as downloading the WAR file and copying to your servlet container's |
Table of Contents |
---|
Downloads
See the latest release for Fedora WAR files to download.
System Requirements
Include Page | ||||
---|---|---|---|---|
|
Deploying with Tomcat
...
9
- Download and install Tomcat
- Set the Java properties for Tomcat (see: Application Configuration and Catalina Java Properties sections below)
- Either configure the container auth or disable auth entirely
Copy the Fedora WAR file into Tomcat's "webapps" directory (e.g. /var/lib/tomcat8/webapps)
- Start the server Go to the browser page that matches your Fedora WAR file name (e.g
,
$CATALINA_HOME/webapps/fcrepo.war
- Start the server,
$CATALINA_HOME/bin/startup.sh
- Navigate to http://localhost:8080/fcrepo/rest in your browser
Info | ||
---|---|---|
| ||
If you attempt to create a resource with an encoded slash in the path (ie. http://localhost:8080/fcrepo |
...
/rest/path%2Fto%2Fresource) Tomcat will throw a 400 error. You can disable this by adding -Dorg.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH=true to your CATALINA_OPTS. |
Deploying with Jetty 9
- Download and install Jetty
- Set the Java properties for Jetty (see: Application Configuration and Catalina Java Properties sections below)
- Either configure the container auth or disable auth entirely
- Copy the Fedora WAR file into Jetty's "webapps" directory (e.g. /var/lib/jetty/webapps),
$JETTY_BASE/webapps/fcrepo.war
- Start the server,
java -jar $JETTY_HOME/start.jar
- Navigate to httpGo to the browser page that matches your Fedora WAR file name (e.g. http://localhost:8080/fcrepo-webapp-x.x.x/rest) in your browser
Include Page | ||||
---|---|---|---|---|
|
Anchor | ||||
---|---|---|---|---|
|
fcrepo.home=<some-writable-directory>
Sets the home for Fedora's persisted data. Without this setting Fedora tries to use the current-working-directory as the home of persisted data. If the Tomcat user does not have write access to the installation area (e.g. /var/lib/tomcat8), then Fedora will not deploy. Set this system property to a directory writable by the tomcat processFor a complete inventory of configurable properties please refer to the Properties page.
JVM Tuning Properties
We have a separate page with suggested VM options for general Java tuning.
Clustering Properties (only effective in a clustered configuration)
...
.
...
- fcrepo.ispn.replication.timeout can be used to set the timeout of infinispan replication in a clustered environment