Orbeon Forms
Search…
General

Default values

For the latest default values of general properties, see properties-base.xml.

URL rewriting

oxf.url-rewriting.service.base-uri

Name
oxf.url-rewriting.service.base-uri
Purpose
specify the base URL for rewriting some internal service URLs
Type
xs:anyURI
Default Value
Empty. Rewriting is done against the incoming request.
Usually Orbeon Forms uses the host, port, and context name as seen by the browser, such as:
1
http://www.mycompany.com/orbeon
Copied!
to infer how to reach itself when calling some service URLs (see below for which URLs apply depending on the Orbeon Forms version). But in some cases, Orbeon Forms cannot reach to itself this way and an explicit base URL must be specified with this property.
Such cases include:
    accessing the server through different host names (like https://foo/orbeon and https://bar/orbeon reaching the same Orbeon Forms instance)
    accessing the embedded eXist database (for demo purposes) when the request goes through a reverse proxy
When you are in such configurations, please make sure to set oxf.url-rewriting.service.base-uri to point to the local servlet container instance, for example:
1
<property
2
as="xs:anyURI"
3
name="oxf.url-rewriting.service.base-uri"
4
value="http://localhost:8080/orbeon"/>
Copied!

Orbeon Forms 4.7 and newer

Since Orbeon Forms 4.7, this property is only used for the following:
    access to the embedded eXist database
    access to custom services located in the Orbeon web app (there are none by default)
You don't need to set this property if:
    you do not use the embedded eXist or custom services
    or you use the embedded eXist database or a custom service and
      you are running your servlet container on a local computer for testing or deployment
      or your external server name and port are accessible from the servlet container
When things don't work out of the box, typically when the network setup contains a front-end web server and/or prevents a network connection from the servlet container to itself, setting it to the following is usually enough:
1
<property
2
as="xs:anyURI"
3
name="oxf.url-rewriting.service.base-uri"
4
value="http://localhost:8080/orbeon"/>
Copied!
Make sure to adjust the port and prefix as needed.

Orbeon Forms 4.6.x and earlier

Up to and including Orbeon Forms 4.6.x, this property was used for all service calls, including calls to internal services used by Form Runner and Form Builder, such as loading i18n resources and accessing the persistence implementation.
With 4.6.x and earlier, you don't need to set this property if:
    you are running your servlet container on a local computer for testing or deployment
    or your external server name and port are accessible from the servlet container
When things don't work out of the box, typically when the network setup contains a front-end web server and/or prevents a network connection from the servlet container to itself, setting it to the following is usually enough:
1
<property
2
as="xs:anyURI"
3
name="oxf.url-rewriting.service.base-uri"
4
value="http://localhost:8080/orbeon"/>
Copied!
Make sure to adjust the port and prefix as needed.

Encryption properties

oxf.crypto.password

This property is used to create a private key used for encryption. It is recommended to change the default value of the password, even though a random seed is used.
1
<property
2
as="xs:string"
3
name="oxf.crypto.password"
4
value="CHANGE THIS PASSWORD"/>
Copied!
Orbeon forms uses encryption in a few cases, including:
    to send confidential XForms events to the browser
    for the client state mode of the XForms engine (which is not the default)
NOTE: If the backwards compatibility property oxf.xforms.password is defined, then it is used first.

oxf.crypto.key-length

This property specifies the length of the AES encryption key. The default is 128 bits.
1
<property
2
as="xs:integer"
3
name="oxf.crypto.key-length"
4
value="128"/>
Copied!
Higher strength encryption is usually not enabled by default in the JVM. See Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files. When higher strength encryption is available, this value can be changed to 256, for example.

oxf.crypto.hash-algorithm

This property specifies the default hash algorithm. The default is SHA1. Higher strength encryption is usually not enabled by default in the JVM.
1
<property
2
as="xs:string"
3
name="oxf.crypto.hash-algorithm"
4
value="SHA1"/
Copied!
Higher strength encryption is usually not enabled by default in the JVM. See Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files. When higher strength encryption is available, this value can be changed to 256, for example.
Orbeon forms uses hash algorithms in at least the following cases:
    to encode random identifiers, such as document ids in Form Runner
    for internal caching purposes
    XForms
      keys for client-side scripts
      keys for aggregated JavaScript and CSS resources
      keys for dynamic xf:output resources
      HMAC for server-side uploaded files

Global properties

oxf.cache.size

Name
oxf.cache.size
Purpose
set the size of the Orbeon Forms object cache
Type
xs:integer
Default Value
1000
Orbeon Forms uses an efficient caching system. Orbeon Forms automatically determines what can be cached and when to expire objects. This size is reasonable for most applications. A bigger cache tends to make the application faster, but it uses more memory. To tune the cache size, see the suggestions in the Performance and Tuning section.

oxf.xpath.environment-variable.enabled

Access to environment variables with the environment-variable() function is disabled by default. If you wish to make this XPath function available, set the following property to true.
1
<property
2
as="xs:boolean"
3
name="oxf.xpath.environment-variable.enabled"
4
value="true"/>
Copied!

oxf.cache.xpath.size

Name
oxf.cache.xpath.size
Purpose
set the size of the Orbeon Forms XPath cache
Type
xs:integer
Default Value
5000
This property configures the maximum number of compiled XPath expressions to keep in the XPath cache. To tune the cache size, see the suggestions in the Performance and Tuning section.
NOTE: A profiler run shows that 2000 cache entries takes, for fairly typical XPath expressions, about 5 MB of memory.

Showing the Orbeon Forms version number

[SINCE Orbeon Forms 4.6.1]
This property controls whether Orbeon Forms outputs its version number to the client web browser:
    at the bottom of pages, in particular with Form Runner
    in the <xh:meta name="generator" content="…"> element
    in combined JavaScript and CSS resource files built by the XForms engine
1
<property
2
as="xs:boolean"
3
name="oxf.show-version"
4
value="false"/>
Copied!
Default:
    prod mode: false
    dev mode: true

XSLT output location mode

During development, the following XSLT transformer configuration helps with line number errors. The following values are allowed:
    none: no XSLT output line number information provided. This is recommended for deployment.
    dumb: minimal XSLT output line number information provided.
    smart: maximal XSLT output line number information provided. This is recommended for development.
1
<property
2
as="xs:string"
3
processor-name="oxf:builtin-saxon"
4
name="location-mode"
5
value="none"/>
6
7
<property
8
as="xs:string"
9
processor-name="oxf:unsafe-builtin-saxon"
10
name="location-mode"
11
value="none"/>
Copied!
Default:
    prod mode: none
    dev mode: smart

HTTP Server

Errors and exceptions

The following property specifies whether the server is allowed to send detailed error and exceptions messages to the browser:
1
<property
2
as="xs:boolean"
3
name="oxf.http.exceptions"
4
value="false"/>
Copied!
Default:
    prod mode: exceptions are not sent to the browser
    dev mode: exceptions are sent to the browser

HTTP Client

Epilogue and theme properties

oxf.epilogue.theme

Name
oxf.epilogue.theme
Purpose
specifies the theme stylesheet
Type
xs:anyURI
Default Value
oxf:/config/theme-examples.xsl
This can be overwritten for a given app by placing a file theme.xsl inside the app directory.

oxf.epilogue.theme.embeddable

Name
oxf.epilogue.theme.embeddable
Purpose
specifies the theme stylesheet to use when within a portlet or in embeddable mode
Type
xs:anyURI
Default Value
oxf:/config/theme-portlet-examples.xsl
This can be overwritten for a given app by placing a file theme-embeddable.xslinside the app directory.

oxf.epilogue.theme.renderer

Name
oxf.epilogue.theme.renderer
Purpose
specifies the theme stylesheet to use when using the XForms filter, whether in integrated or separate deployment mode
Type
xs:anyURI
Default Value
oxf:/config/theme-plain.xsl

oxf.epilogue.theme.error

Name
oxf.epilogue.theme.error
Purpose
specifies the theme stylesheet to use on the error page
Type
xs:anyURI
Default Value
oxf:/config/theme-error.xsl

oxf.epilogue.use-theme

Name
oxf.epilogue.use-theme
Purpose
whether a theme stylesheet must be applied
Type
xs:boolean
Default Value
true

oxf.epilogue.output-xhtml

Name
oxf.epilogue.output-xhtml
Purpose
whether to output XHTML to the browser or not
Type
xs:boolean
Default Value
false

oxf.epilogue.renderer-rewrite

Name
oxf.epilogue.renderer-rewrite
Purpose
whether the XForms renderer used in separate deployment must rewrite URLs
Type
xs:boolean
Default Value
false

oxf.epilogue.process-svg

Name
oxf.epilogue.process-svg
Purpose
whether SVG content must be converted server-side to images
Type
xs:boolean
Default Value
true

Email processor properties

Global SMTP host

Configure the SMTP host for all email processors. This global property can be overridden by local processor configurations.
1
<property
2
as="xs:string"
3
processor-name="oxf:email"
4
name="smtp-host"
5
value="mail.example.org"/>
Copied!

Global SMTP port

Configure the SMTP port for all email processors. This global property can be overridden by local processor configurations.
1
<property
2
as="xs:string"
3
processor-name="oxf:email"
4
name="smtp-port"
5
value="25"/>
Copied!

Global SMTP username

Configure the SMTP username for all email processors. This global property can be overridden by local processor configurations.
1
<property
2
as="xs:string"
3
processor-name="oxf:email"
4
name="username"
5
value="john"/>
Copied!

Global SMTP password

Configure the SMTP password for all email processors. This global property can be overridden by local processor configurations.
1
<property
2
as="xs:string"
3
processor-name="oxf:email"
4
name="password"
5
value="secret"/>
Copied!

Global SMTP encryption

Configure the SMTP encryption for all email processors. This global property can be overridden by local processor configurations.
1
<property
2
as="xs:string"
3
processor-name="oxf:email"
4
name="encryption"
5
value="tls"/>
Copied!

Test SMTP host

Configure a test SMTP host for all email processors. This global property when specified overrides all the other SMTP host configurations for all email processors, whether in the processor configuration or using the smtp-host property.
1
<property
2
as="xs:string"
3
processor-name="oxf:email"
4
name="test-to"
5
Copied!
This property can easily be commented out for deployment, or placed in properties-local-dev.xml (see also Run Modes).

Test recipient

Configure a test recipient email address for all email processors. This global property when specified overrides all the other SMTP recipient configurations for all email processors.
1
<property
2
as="xs:string"
3
processor-name="oxf:email"
4
name="test-to"
5
Copied!
This property can easily be commented out for deployment, or placed in properties-local-dev.xml (see also Run Modes).

Rarely used properties

oxf.log4j-config

Name
oxf.log4j-config
Purpose
configure the logging system
Type
xs:anyURI
Default Value
The logging system not initialized with a warning if this property is not present.
Orbeon Forms uses the log4j logging framework. In Orbeon Forms, log4j is configured with an XML file. Here is the default Orbeon Forms log4j configuration.
If this property is not set, the log4j initialization is skipped. This is useful if another subsystem of your application has already initialized log4j prior to the loading of Orbeon Forms.
NOTE: You don't usually need to modify this property.

oxf.pipeline.processors

Name
oxf.pipeline.processors
Purpose
specify the URL of the XML file with processor definitions for the XPL pipeline engine
Type
xs:anyURI
Default Value
oxf:/processors.xml
NOTE: You don't usually need to modify this property.

oxf.validation.processor

Name
oxf.validation.processor
Purpose
control the automatic processor validation
Type
xs:boolean
Default Value
Enabled
Many processors validate their configuration input with a schema. This validation is automatic and allows meaningful error reporting. To potentially improve the performance of the application, validation can be disabled in production environments.
NOTE: It is strongly discouraged to disable validation, as validation can highly contribute to the robustness of the application.

oxf.validation.user

Name
oxf.validation.user
Purpose
control user-defined validation
Type
boolean
Default Value
Enabled
User-defined validation is activated in the XML Pipeline Definition Language with the attributes schema-href and schema-uri. To potentially improve the performance of the application, validation can be disabled in production environments.
NOTE: It is strongly discouraged to disable validation, as validation can highly contribute to the robustness of the application.

sax.inspection

Name
sax.inspection
Purpose
enable inspection SAX events
Type
xs:boolean
Default Value
false
SAX is the underlying mechanism in Orbeon Forms by which processors receive and generate XML data. Given only the constraints of the SAX API, it is possible for a processor to generate an invalid sequence of SAX events. Another processor that receives that invalid sequence of events may or may not be able to deal with it without throwing an exception. Some processors try to process invalid SAX events, while others throw exceptions. This means that when a processor generating an invalid sequence of SAX events is used in a pipeline, the problem might go unnoticed, or it might cause some other processor downstream to throw an exception.
To deal more efficiently with those cases, the sax.inspection property can be set to true. When it is set to true, the pipeline engine checks the outputs of every processor at runtime and makes sure that valid SAX events are generated. When an error is detected, an exception is thrown right away, with information about the processor that generated the invalid SAX events.
There is a performance penalty for enabling SAX events inspection. So this property should not be enabled on a production system.
NOTE: You don't usually need to enable this property.
Last modified 4mo ago