Tomcat
Supported Tomcat versions
The following versions of Tomcat are supported:
With Orbeon Forms 2017.2:
Tomcat 7
Tomcat 8.0 and 8.5
Tomcat 9
With Orbeon Forms 2017.1:
Tomcat 6 (not recommended, see note below)
Tomcat 7
Tomcat 8.0 and 8.5
About Tomcat 6:
Tomcat 6 isn't supported by Orbeon Forms starting with version 2017.2 as the Apache Tomcat team has announced that support for Apache Tomcat 6.0.x ended on December 31, 2016.
TIFF support is not available when using Tomcat 6 (see #2717).
Setup
We assume below that TOMCAT_HOME represents the location of your Tomcat installation.
If using Orbeon Forms PE, make sure the license.xml file is in place.
Quick setup
Create a new
TOMCAT_HOME/webapps/orbeondirectory.Unzip
orbeon.warin theorbeondirectory you just created. So now you should have a directoryTOMCAT_HOME/webapps/orbeon/WEB-INF.You can now start Tomcat, and access
http://localhost:8080/orbeon/to test your installation (replacinglocalhostand8080with the host name and port number of your Tomcat installation if different from the default).
Optional steps
Custom context within server.xml
Edit TOMCAT_HOME/conf/server.xml, and inside the <Host> create a <Context> as follows, changing the value of the docBase attribute as appropriate on your system. Make sure the <Context> element is within the <Host> element. Tomcat will not report an error if your context is misplaced in the file, and that will cause it to be ignored and, in particular, datasources might not be taken into account.
If you have a JDBC datasource, add it inside the <Context>, as in the following example:
URIEncoding
We recommend you add the URIEncoding="UTF-8" attribute on the <Connector> element, in your server.xml, as recommended in the Tomcat FAQ. This will ensure that all characters get properly decoded on the URL, which is especially important if you're using non-ASCII characters in the app or form name in Form Builder.
Form Runner authentication
To setup Form Runner authentication:
Open
TOMCAT_HOME/webapps/orbeon/WEB-INF/web.xmland uncomment thesecurity-constraint,login-configandsecurity-roledeclarations at the end of the file.Open
TOMCAT_HOME/conf/server.xmland make sure there is a<Realm>enabled. For example, by default with Tomcat 7:Edit
TOMCAT_HOME/conf/tomcat-users.xmland replace the content of the file with:Enumerate the roles in the following property:
BASIC authentication
If you are using BASIC authentication on Tomcat 6.0.21 or newer, or on Tomcat 7, then you need to add the following valve inside the <Context> corresponding to the Orbeon Forms web app in Tomcat's configuration:
Last updated