Many aspects of Scipio ERP can be configured to match your own needs. The configuration is generally handled by either properties files or data inside your database (seed data can be used to auto-install these configurations during your initial installation). Changes to the properties files will require a restart in order to take effect.

System memory

Memory allocation is set as parameters inside the start scripts:

  • / (Unix / Mac)
  • /start.bat (Windows)

The scripts rely on java to start the application. Memory can be allocated with the following launch options:

"%JAVA_HOME%\bin\java" -Xms128M -Xmx3512M -XX:MaxPermSize=1024m

The following parameters can be set:

  • Xms{number} – the initial memory size in bytes. This value must be a multiple of 1024 greater than 1 MB.
  • Xmx{number}  -the maximum size, in bytes, of the memory allocation pool. This value must a multiple of 1024 greater than 2 MB.
  • XX:MaxPermSize=${number} – permanent heap space (out of the memory allocated). The permanent space is where the classes, methods, internalized strings, and similar objects used by the VM are stored and never deallocated (hence the name).

We recommend to never allocate more than 3/4 of the available system memory to Scipio ERP.

Database Configuration

Scipio ERP has an embedded Derby database, so it can be run without setting up an external database. However, outside of development, we highly recommend to setup your external database before using Scipio ERP as a production system.

Scipio ERP is compatible to most relational databases and comes with full support of the following:

  • Derby (default)
  • MySQL
  • Advantage
  • PostgreSQL
  • Oracle
  • Firebird
  • MariaDB (Added: 2018-06-05)
  • HSQL

It is possible to run Scipio ERP with relational databases not listed above, but additional steps will be required.

To configure an external database:

  1. Download JDBC driver that matches your database version and put the *.jar file inside of /framework/entity/lib/jdbc. For MySQL & PostgreSQL there are ant tasks available to handle this step automatically:
    1. ant download-mySQL-JDBC
    2. ant download-PG-JDBC
  2. Update the datasource configuraton inside entityengine.xml (located in /framework/entity/config/). Look for the datasource that matches your own database type, i.e.:
    <datasource name="localpostgres"
     result-fetch-size="50"> <!-- Comment out the result-fetch-size attribute for jdbc driver versions older than 8.0.
     Not recommended to use those though. They are archived unsupported versions: -->
     <read-data reader-name="tenant"/>
     <read-data reader-name="seed"/>
     <read-data reader-name="seed-initial"/>
     <read-data reader-name="demo"/>
     <read-data reader-name="ext"/>
     <read-data reader-name="ext-test"/>
     <read-data reader-name="ext-demo"/>
     time-between-eviction-runs-millis="600000"/><!-- Be warned that at this date (2009-09-20) the max_connections parameters in postgresql.conf
     is set by default to 100 by the initdb process see>
     <!-- <jndi-jdbc jndi-server-name="default" jndi-name="java:comp/env/jdbc/localpostgres" isolation-level="ReadCommitted"/>-->
     <!-- <jndi-jdbc jndi-server-name="default" jndi-name="comp/env/jdbc/xa/localpostgres" isolation-level="ReadCommitted"/> --> <!-- Orion Style JNDI name -->
     <!-- <jndi-jdbc jndi-server-name="localweblogic" jndi-name="PostgresDataSource"/> --> <!-- Weblogic Style JNDI name -->
     <!-- <jndi-jdbc jndi-server-name="default" jndi-name="jdbc/localpostgres" isolation-level="ReadCommitted"/> --> <!-- JRun4 Style JNDI name -->
     <!-- <tyrex-dataSource dataSource-name="localpostgres" isolation-level="ReadCommitted"/> -->

    In most cases it should be enough to update the URI, username and password. The datasource configuration matches the general Tomcat datasource definition – therefore it is possible to optimize the settings to your own needs.

  3. Update the default, default-no eca & test delegator settings inside the same file:
    <delegator name="default" entity-model-reader="main" entity-group-reader="main" entity-eca-reader="main" distributed-cache-clear-enabled="false">
     <group-map group-name="org.ofbiz" datasource-name="localderby"/>
     <group-map group-name="org.ofbiz.olap" datasource-name="localderbyolap"/>
     <group-map group-name="org.ofbiz.tenant" datasource-name="localderbytenant"/>
     <delegator name="default-no-eca" entity-model-reader="main" entity-group-reader="main" entity-eca-reader="main" entity-eca-enabled="false" distributed-cache-clear-enabled="false">
     <group-map group-name="org.ofbiz" datasource-name="localderby"/>
     <group-map group-name="org.ofbiz.olap" datasource-name="localderbyolap"/>
     <group-map group-name="org.ofbiz.tenant" datasource-name="localderbytenant"/>
     <!-- be sure that your default delegator (or the one you use) uses the same datasource for test. You must run "ant load-demo" before running "ant run-tests" -->
     <delegator name="test" entity-model-reader="main" entity-group-reader="main" entity-eca-reader="main">
     <group-map group-name="org.ofbiz" datasource-name="localderby"/>
     <group-map group-name="org.ofbiz.olap" datasource-name="localderbyolap"/>
     <group-map group-name="org.ofbiz.tenant" datasource-name="localderbytenant"/>

    Replace the datasource-name for “org.ofbiz” with your own configuration name in all three places.

Default Settings

Various default settings can can be set that will work as a fallback unless defined otherwise. This includes: your default language, company name or currency settings. We highly recommend to configure these defaults on first-time installations. For configuration, edit the file located inside of framework/common/config:

# -- unique instance id (20 char max)

# -- the default currency to use for prices, etc

# These values override the _NA_ DEFAULT values in user preferences for the GLOBAL_PREFERENCES userPrefGroupTypeId
# -- the default organizationPartyId for used in dropdowns and reports
# ID of the VisualTheme to use if there is no VISUAL_THEME UserPreference record for the current user (ie default value)

# -- the default decimal format for currency (used in

# -- the default rounding for currency (used in
# Scipio: Use 2 decimals

# -- the default check scale for integer currency enabled (Y|N) (used in
#When decimals are '00'
# -- Y if you want to display only x , example : 10
# -- N if you want to display x.00 , example : 10.00

# -- Properties fallback locale. Change this setting with caution. If you
# start getting "resource not found" exceptions, then there are
# properties missing in the locale you specified. This property does not
# control the default locale - the default locale is set in

# -- Locales made available, separated by commas. This property controls
# which locales the user can select from. If this property is not used,
# then the user will be able to select from all the locales available
# in the JVM. The list below corresponds to the languages really available OOTB (2010-16-02)

# -- Time zones made available, separated by commas. This property controls
# which time zones the user can select from. If this property is not used,
# then the user will be able to select from all the time zones available
# in the JVM.

# -- the default country for drop downs

# -- Available countries, separated by commas.This property controls
# which countries the user can select from. If this property is not used,
# then the user will be able to select from all the countries.

# -- the default trackingCodeId to use for Partner Managed Tracking Codes

# -- USPS address matching string - should be all lower case, no spaces, pipe delimited
usps.address.match=(^.*?p[\\. ]*o[\\. ]*box.*$)|(^.*?post.*?office.*?box.*$)|((^|(^.*? ))r[\\. ]*r[\\. ]*(( +)|([0-9#]+)).*$)|(^.*?rural.*?route.*$)

# -- general default 'fromEmailAddress' can be overridden in: EmailTemplateSetting

# -- The default domainname used in the notification emails links
# as 'baseUrl' and 'baseSecureUrl' are set in the file. 

# -- mail notifications enabled (Y|N)

# -- redirect all mail notifications to this address for testing

# -- the default mail server to use

# -- SMTP Auth settings

# -- Additional Required Fields needed for Gmail and other non traditional smtp servers
# -- These added fields also work for Yahoo business mail for instance
# -- Gmail smtp port can be either 465 or 587
# -- Gmail requires StartTLS

# -- Gmail requires a JSSE socket factory, the following socketFactory settings will override JavaMail's default socketFactory settings
# -- Port needs to be the same as mail.smtp.port
#--Fallback [true|false] determines whether you will allow a non secure connection if you are unable to get a secure one

# -- how the address are matched with the CRM addresses

# -- debug SMTP mail option enabled (Y|N)

# -- if some addresses fail the SMTP check using the RCPT TO: command then setting this property to false will abort sending the message
# to any recipients valid or not

# -- HTTP upload settings
# -- directory used to temporarily store files that are larger than the configured size threshold (10K)
# -- directory used to temporarily store files that are larger than the configured size threshold
# -- max size in bytes (-1 for unlimited)

# -- spam header name and value to block incoming spam detected by external spam checker, configured for spam assin

# -- Y if you want to display the multi-tenant textbox in the login page and install specify components which related to each tenant

# Scipio: Global pagination defaults.
# NOTE: Some components have their own specific settings from stock Ofbiz. Also see the following files and properties:
# - widget.form.defaultViewSize
# - viewSize

# Global default, used mainly for non-widget code. widget code usually uses widget.form.defaultViewSize as default instead.
# This is used when pagination is disabled. Sometimes it is really used in lookups in these cases, so don't make this an extreme value.

# Scipio: Data generator services max records
data.generator.max.records = 50; 


Be aware that the following section contains information on how to “generate” urls, but does not affect other aspects of the application itself. If you must change the default port for the application, modify the connector settings inside of /framework/catalina/ofbiz-component.

For most production systems it is desirable to configure global URL settings that will influence the way URLs are generated inside the system. Within Scipio ERP there are two ways to configure URLs – globally within or by Website Entity definitions. The latter is only relevant if you intend to run multiple stores, so we are going to cover the global url configuration first.

Global URL Configuration

All configuration can be set inside of  /framework/webapp/config/

# HTTPS Port (Secure port)

# HTTP Port (Not Secure port)

# SCIPIO: if set to Y, the ports and hosts above have priority over the information in the current request when building links.
# Otherwise, they are only used as defaults/fallbacks, if request values not present/applicable.
# Default: N (current request values have priority)
# NOTE: the scipio default ("N") is different from the implicit stock Ofbiz default ("Y").
# NOTE: this does not control values from WebSite entity; currently WebSite entity always override values above AND from request.

# Static Content URLs to make it easy to move the serving load for static content to other machines
# -- thse are for general content such as images, js & css files, or non-dynamic HTML files

# Here you can set the domain string to use for new cookies

# Exclude jsessionid for User-Agents (separated by comma's)
link.remove_lsessionid.user_agent_list = googlebot,yahoo,msnbot,mediapartners-google

# Should HTTP parameters sent to services require encryption?
# This is generally advised for more secure webapps as it makes it more difficult to spoof requests (XSRF) that change data. 


WebSite URL Configuration

If you want to set specific url settings for a single application, you can rely on WebSites to override the defaults. The configuration is similar, but has to be loaded into the database (either as seed data, or through the Admin – Import tools: https://localhost:8443/admin/control/EntityImport):

<?xml version="1.0" encoding="UTF-8"?><entity-engine-xml>
    <WebSite productStoreId="ScipioShop" siteName="SCIPIO Shop Web Site" visualThemeSelectorScript="component://common/webcommon/WEB-INF/actions/includes/GetWebSiteStoreVisualThemeId.groovy" visualThemeSetId="ECOMMERCE" webSiteId="ScipioWebStore"