Installation

Software requirements

Orbeon Forms 4 runs on any platform that supports:

  • Java 6, 7 (recommended), or 8
  • a Servlet 2.5 container or greater (such as Apache Tomcat 6, 7 (recommended) or 8)

Hardware requirements

Orbeon Forms is best installed on hardware with the following minimal requirements:

  • CPU
    • 4-core (or more) Intel Core i7 or better (desktop-grade)
    • 4-core (or more) Intel Xeon (server-grade)
  • RAM
    • 2 GB of RAM (or more) available to the Java Virtual Machine (JVM heap size)

These are indicative, as the amount of CPU and RAM needed varies depending on the number of forms, their size, as well as the number of concurrent users.

NOTE: As of 2015, we don't recommend AMD CPUs, which tend to be 2-4 times slower than Intel CPUs per core.

Java virtual machine configuration

Configure the Java VM with:

  • -Xmx option for dedicated Java heap memory:
    • on a development machine: at least 1 GB of Java heap: -Xmx1024m
    • on a production machine: at least 2 GB of Java heap: -Xmx2048m
  • -XX:MaxPermSize for "permgen" space:
    • use at least: -XX:MaxPermSize=256m

Also, make sure that you do not have tiered compilation when using Java 7. See A dangerous Java 7 JVM option: TieredCompilation .

Database setup

Out-of-the-box, forms you create with Form Builder, as well as data captured with those forms, will be saved in an embedded database called eXist. You can setup Orbeon Forms so this data gets stored in your relational database, but if you're getting started with Orbeon Forms, you might to just use the embedded eXist, even if just temporarily.

Note that eXist will need to be able to write to the WEB-INF/exist-data directory, wherever Orbeon Forms .war file is uncompressed. So, especially if you're on UNIX, make sure that this directory is writable by the process running your app server.

License installation (Orbeon Forms PE only)

  • If you are running Orbeon Forms CE, you don't need to install a license file.
  • If you are running Orbeon Forms PE:
    • complete the steps for your application server below
    • you can obtain a full licence from Orbeon, or get a trial license
    • before starting your servlet container, copy your license file under the Orbeon Forms WAR file as:
      WEB-INF/resources/config/license.xml
      

With Orbeon Forms 4.1 and newer, you can also place license.xml file under the user's home directory. For example, on Unix systems:

~/.orbeon/license.xml

Orbeon Forms first searches for the license file within the WAR, and if not found attempts to find it under the home directory.

The benefit of this approach is that you don't have to find where the WAR file is deployed in your container, or to uncompress and recompress the WAR file with the license.

NOTE: Orbeon Forms uses Java's System.getProperty("user.home") to identify the user's home directory.__ This corresponds to the user running the servlet container and not necessarily to the user of the developer or system administrator.

Base URL for internal services

This step is sometimes optional.

Depending on your setup, if things don't work out of the box (for example if you have database errors with the sample forms) you might have to set the oxf.url-rewriting.service.base-uri configuration property in your properties-local.xml file.

Often, it is enough to set it to the following (adjusting for port and prefix):

<property
    as="xs:anyURI"
    name="oxf.url-rewriting.service.base-uri"
    value="http://localhost:8080/orbeon"/>

For more information about how to set configuration properties, see Configuration Properties.

Logging configuration

This step is optional.

Orbeon Forms has a logging configuration file under WEB-INF/resources/config/log4j.xml. By default, logging information is output to a file path relative to the directory where you start your application server.

<appender name="SingleFileAppender" class="org.apache.log4j.FileAppender">
    <param name="File" value="../logs/orbeon.log"/>
    <param name="Append" value="false" />
    <param name="Encoding" value="UTF-8"/>
    <layout class="org.apache.log4j.PatternLayout">
        <param name="ConversionPattern" value="%d{ISO8601} %-5p %c{1} %x - %m%n"/>
    </layout>
</appender>

You can change this by modifying the file parameter. Notes that on Windows, you must use forward slashes:

<appender name="SingleFileAppender" class="org.apache.log4j.FileAppender">
    <param name="File" value="C:/My Path/To/Logs/orbeon.log"/>
    <param name="Append" value="false" />
    <param name="Encoding" value="UTF-8"/>
    <layout class="org.apache.log4j.PatternLayout">
        <param name="ConversionPattern" value="%d{ISO8601} %-5p %c{1} %x - %m%n"/>
    </layout>
</appender>

The benefit of changing this configuration is that you know exactly where the file is stored. This can be really handy when trying to troubleshoot issues.

Specific steps for your container / app server