This is an automated email from the ASF dual-hosted git repository.
ashishvijaywargiya pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git
The following commit(s) were added to refs/heads/trunk by this push:
new 8306e7a105 Default h2 db support in ofbiz trunk (#1221)
8306e7a105 is described below
commit 8306e7a10592ff93defb26d0ddaa8e0a4dbb8595
Author: Ashish Vijaywargiya <[email protected]>
AuthorDate: Sat May 16 19:04:00 2026 +0530
Default h2 db support in ofbiz trunk (#1221)
Improved: OFBIZ-13412 - Removing Apache Derby support from the Apache
OFBiz project and adding support of H2 database in the project.
After the changes, I placed and completed a sales order. And then created a
customer in the ofbiz backend.
Everything seems to be working fine with h2 database.
---
build.gradle | 4 +-
dependencies.gradle | 3 +-
docker/templates/postgres-entityengine.xml | 2 +-
framework/base/config/passwords.properties | 8 +-
framework/entity/config/entityengine.xml | 112 ++++++++++++---------
.../{fieldtypederby.xml => fieldtypeh2.xml} | 0
.../org/apache/ofbiz/entity/model/ModelEntity.java | 2 +-
.../apache/ofbiz/entity/DelegatorUnitTests.java | 1 -
...antData-Derby.xml => AdminNewTenantData-H2.xml} | 6 +-
.../apache/ofbiz/service/ModelServiceTest.groovy | 1 -
.../java/org/apache/ofbiz/base/start/Config.java | 2 -
.../org/apache/ofbiz/base/start/start.properties | 3 -
.../apache/ofbiz/webtools/WebToolsServices.java | 2 +-
runtime/data/derby.properties | 28 ------
14 files changed, 76 insertions(+), 98 deletions(-)
diff --git a/build.gradle b/build.gradle
index c8eaf6df93..749ce26f77 100644
--- a/build.gradle
+++ b/build.gradle
@@ -966,8 +966,8 @@ task pullPlugin(group: ofbizPlugin, description: 'Download
and install a plugin
task cleanCatalina(group: cleanupGroup, description: 'Clean Catalina data in
runtime/catalina/work') {
doLast { delete "${rootDir}/runtime/catalina/work" }
}
-task cleanData(group: cleanupGroup, description: 'Clean all DB data (Derby)
under runtime/data') {
- doLast { deleteAllInDirWithExclusions("${rootDir}/runtime/data/",
['README', 'derby.properties']) }
+task cleanData(group: cleanupGroup, description: 'Clean all DB data (H2) under
runtime/data') {
+ doLast { deleteAllInDirWithExclusions("${rootDir}/runtime/data/",
['README', '.h2.server.properties']) }
}
task cleanDownloads(group: cleanupGroup, description: 'Clean all downloaded
files') {
doLast {
diff --git a/dependencies.gradle b/dependencies.gradle
index f5a15cdc0c..136541b170 100644
--- a/dependencies.gradle
+++ b/dependencies.gradle
@@ -97,8 +97,7 @@ dependencies {
runtimeOnly 'org.apache.avalon.framework:avalon-framework-impl:4.3.1'
runtimeOnly 'org.apache.axis2:axis2-transport-http:1.8.2'
runtimeOnly 'org.apache.axis2:axis2-transport-local:1.8.2'
- runtimeOnly 'org.apache.derby:derby:10.16.1.1' // 10.17.x.x requires Java
21
- runtimeOnly 'org.apache.derby:derbytools:10.16.1.1' // 10.17.x.x requires
Java 21
+ runtimeOnly 'com.h2database:h2:2.2.224'
runtimeOnly 'org.apache.geronimo.specs:geronimo-jaxrpc_1.1_spec:2.1'
runtimeOnly 'org.apache.logging.log4j:log4j-1.2-api:2.25.4' // for
external jars using the old log4j1.2: routes logging to log4j 2
runtimeOnly 'org.apache.logging.log4j:log4j-jul:2.25.4' // for external
jars using the java.util.logging: routes logging to log4j 2
diff --git a/docker/templates/postgres-entityengine.xml
b/docker/templates/postgres-entityengine.xml
index b9485c3407..e22488e3af 100644
--- a/docker/templates/postgres-entityengine.xml
+++ b/docker/templates/postgres-entityengine.xml
@@ -50,7 +50,7 @@ access. For a detailed description see the
core/docs/entityconfig.html file.
<!-- Be sure that your default delegator (or the one you use) uses the
same datasource for test. You must run "gradlew loadAll" before running
"gradlew testIntegration" -->
<delegator name="test" entity-model-reader="main"
entity-group-reader="main" entity-eca-reader="main">
- <group-map group-name="org.apache.ofbiz" datasource-name="localderby"/>
+ <group-map group-name="org.apache.ofbiz"
datasource-name="localpostgres"/>
<group-map group-name="org.apache.ofbiz.olap"
datasource-name="localpostgresolap"/>
<group-map group-name="org.apache.ofbiz.tenant"
datasource-name="localpostgrestenant"/>
</delegator>
diff --git a/framework/base/config/passwords.properties
b/framework/base/config/passwords.properties
index 354aa96d71..755fdd0166 100644
--- a/framework/base/config/passwords.properties
+++ b/framework/base/config/passwords.properties
@@ -17,7 +17,7 @@
# under the License.
###############################################################################
-jdbc-password.derby-ofbiz=ofbiz
-jdbc-password.derby-ofbizodbc=ofbiz
-jdbc-password.derby-ofbizolap=ofbiz
-jdbc-password.derby-ofbiztenant=ofbiz
+jdbc-password.h2-ofbiz=ofbiz
+jdbc-password.h2-ofbizodbc=ofbiz
+jdbc-password.h2-ofbizolap=ofbiz
+jdbc-password.h2-ofbiztenant=ofbiz
diff --git a/framework/entity/config/entityengine.xml
b/framework/entity/config/entityengine.xml
index 6c3cac6932..74ab1741a4 100644
--- a/framework/entity/config/entityengine.xml
+++ b/framework/entity/config/entityengine.xml
@@ -52,22 +52,22 @@ access. For a detailed description see the
core/docs/entityconfig.html file.
<debug-xa-resources value="false" /> <!-- see
https://issues.apache.org/jira/browse/OFBIZ-4282 for more -->
<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.apache.ofbiz" datasource-name="localderby"/>
- <group-map group-name="org.apache.ofbiz.olap"
datasource-name="localderbyolap"/>
- <group-map group-name="org.apache.ofbiz.tenant"
datasource-name="localderbytenant"/>
+ <group-map group-name="org.apache.ofbiz" datasource-name="localh2"/>
+ <group-map group-name="org.apache.ofbiz.olap"
datasource-name="localh2olap"/>
+ <group-map group-name="org.apache.ofbiz.tenant"
datasource-name="localh2tenant"/>
</delegator>
<!-- May be used when you create a service that manages many data for
massive imports, this for performance reason or to escape functional cases -->
<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.apache.ofbiz" datasource-name="localderby"/>
- <group-map group-name="org.apache.ofbiz.olap"
datasource-name="localderbyolap"/>
- <group-map group-name="org.apache.ofbiz.tenant"
datasource-name="localderbytenant"/>
+ <group-map group-name="org.apache.ofbiz" datasource-name="localh2"/>
+ <group-map group-name="org.apache.ofbiz.olap"
datasource-name="localh2olap"/>
+ <group-map group-name="org.apache.ofbiz.tenant"
datasource-name="localh2tenant"/>
</delegator>
<!-- Be sure that your default delegator (or the one you use) uses the
same datasource for test. You must run "gradlew loadAll" before running
"gradlew testIntegration" -->
<delegator name="test" entity-model-reader="main"
entity-group-reader="main" entity-eca-reader="main">
- <group-map group-name="org.apache.ofbiz" datasource-name="localderby"/>
- <group-map group-name="org.apache.ofbiz.olap"
datasource-name="localderbyolap"/>
- <group-map group-name="org.apache.ofbiz.tenant"
datasource-name="localderbytenant"/>
+ <group-map group-name="org.apache.ofbiz" datasource-name="localh2"/>
+ <group-map group-name="org.apache.ofbiz.olap"
datasource-name="localh2olap"/>
+ <group-map group-name="org.apache.ofbiz.tenant"
datasource-name="localh2tenant"/>
</delegator>
<!-- need to at least define a name for each component to use -->
@@ -98,7 +98,7 @@ access. For a detailed description see the
core/docs/entityconfig.html file.
<entity-data-reader name="ext-demo"/>
<field-type name="hsql" loader="fieldfile" location="fieldtypehsql.xml"/>
- <field-type name="derby" loader="fieldfile" location="fieldtypederby.xml"/>
+ <field-type name="h2" loader="fieldfile" location="fieldtypeh2.xml"/>
<field-type name="daffodil" loader="fieldfile"
location="fieldtypedaffodil.xml"/>
<field-type name="axion" loader="fieldfile" location="fieldtypeaxion.xml"/>
<field-type name="mysql" loader="fieldfile" location="fieldtypemysql.xml"/>
@@ -157,12 +157,13 @@ access. For a detailed description see the
core/docs/entityconfig.html file.
<!-- <jndi-jdbc jndi-server-name="localjndi"
jndi-name="localhsqlDataSource"/> --> <!-- Weblogic Style JNDI name -->
</datasource>
- <datasource name="localderby"
+ <datasource name="localh2"
helper-class="org.apache.ofbiz.entity.datasource.GenericHelperDAO"
schema-name="OFBIZ"
- field-type-name="derby"
+ field-type-name="h2"
check-on-start="true"
add-missing-on-start="true"
+ max-worker-pool-size="1"
use-pk-constraint-names="false"
use-indices-unique="false"
alias-view-columns="false"
@@ -175,55 +176,61 @@ access. For a detailed description see the
core/docs/entityconfig.html file.
<read-data reader-name="ext"/>
<read-data reader-name="ext-test"/>
<read-data reader-name="ext-demo"/>
- <!-- beware use-indices-unique="false" is needed because of Derby bug
with null values in a unique index -->
+
<inline-jdbc
- jdbc-driver="org.apache.derby.jdbc.EmbeddedDriver"
- jdbc-uri="jdbc:derby:ofbiz;create=true"
+ jdbc-driver="org.h2.Driver"
+
jdbc-uri="jdbc:h2:file:./runtime/data/h2/ofbiz;AUTO_SERVER=TRUE;LOCK_TIMEOUT=60000;INIT=CREATE
SCHEMA IF NOT EXISTS OFBIZ"
jdbc-username="ofbiz"
- jdbc-password-lookup="derby-ofbiz"
+ jdbc-password-lookup="h2-ofbiz"
isolation-level="ReadCommitted"
- pool-minsize="2"
+ pool-minsize="0"
pool-maxsize="250"
+ pool-sleeptime="300000"
test-on-borrow="true"
- pool-jdbc-test-stmt="values 1"
+ pool-jdbc-test-stmt="SELECT 1"
soft-min-evictable-idle-time-millis="600000"
time-between-eviction-runs-millis="600000"/>
- <!-- <jndi-jdbc jndi-server-name="localjndi"
jndi-name="java:/DerbyDataSource" isolation-level="ReadCommitted"/> -->
+ <!-- <jndi-jdbc jndi-server-name="localjndi"
jndi-name="java:/H2DataSource" isolation-level="ReadCommitted"/> -->
</datasource>
- <datasource name="localderbyodbc"
+ <datasource name="localh2odbc"
helper-class="org.apache.ofbiz.entity.datasource.GenericHelperDAO"
- schema-name="OFBIZ"
- field-type-name="derby"
+ schema-name="ODBC"
+ field-type-name="h2"
check-on-start="true"
add-missing-on-start="true"
+ max-worker-pool-size="1"
use-pk-constraint-names="false"
use-indices-unique="false"
alias-view-columns="false"
use-order-by-nulls="true"
offset-style="fetch">
- <!-- beware use-indices-unique="false" is needed because of Derby bug
with null values in a unique index -->
+
<inline-jdbc
- jdbc-driver="org.apache.derby.jdbc.EmbeddedDriver"
- jdbc-uri="jdbc:derby:ofbizodbc;create=true"
+ jdbc-driver="org.h2.Driver"
+
jdbc-uri="jdbc:h2:file:./runtime/data/h2/ofbiz;AUTO_SERVER=TRUE;LOCK_TIMEOUT=60000;INIT=CREATE
SCHEMA IF NOT EXISTS ODBC"
jdbc-username="ofbiz"
- jdbc-password-lookup="derby-ofbizodbc"
+ jdbc-password-lookup="h2-ofbizodbc"
isolation-level="ReadCommitted"
- pool-minsize="2"
+ pool-minsize="0"
pool-maxsize="250"
- time-between-eviction-runs-millis="600000"/>
- <!-- <jndi-jdbc jndi-server-name="localjndi"
jndi-name="java:/DerbyDataSource" isolation-level="ReadCommitted"/> -->
+ pool-sleeptime="300000"
+ test-on-borrow="true"
+ pool-jdbc-test-stmt="SELECT 1"
+ time-between-eviction-runs-millis="600000"/>
+ <!-- <jndi-jdbc jndi-server-name="localjndi"
jndi-name="java:/H2DataSource" isolation-level="ReadCommitted"/> -->
</datasource>
- <datasource name="localderbyolap"
+ <datasource name="localh2olap"
helper-class="org.apache.ofbiz.entity.datasource.GenericHelperDAO"
- schema-name="OFBIZ"
- field-type-name="derby"
+ schema-name="OLAP"
+ field-type-name="h2"
check-on-start="true"
add-missing-on-start="true"
+ max-worker-pool-size="1"
use-pk-constraint-names="false"
use-indices-unique="false"
alias-view-columns="false"
use-order-by-nulls="true">
- <!-- beware use-indices-unique="false" is needed because of Derby bug
with null values in a unique index -->
+
<read-data reader-name="tenant"/>
<read-data reader-name="seed"/>
<read-data reader-name="seed-initial"/>
@@ -232,22 +239,26 @@ access. For a detailed description see the
core/docs/entityconfig.html file.
<read-data reader-name="ext-test"/>
<read-data reader-name="ext-demo"/>
<inline-jdbc
- jdbc-driver="org.apache.derby.jdbc.EmbeddedDriver"
- jdbc-uri="jdbc:derby:ofbizolap;create=true"
+ jdbc-driver="org.h2.Driver"
+
jdbc-uri="jdbc:h2:file:./runtime/data/h2/ofbiz;AUTO_SERVER=TRUE;LOCK_TIMEOUT=60000;INIT=CREATE
SCHEMA IF NOT EXISTS OLAP"
jdbc-username="ofbiz"
- jdbc-password-lookup="derby-ofbizolap"
+ jdbc-password-lookup="h2-ofbizolap"
isolation-level="ReadCommitted"
- pool-minsize="2"
+ pool-minsize="0"
pool-maxsize="250"
+ pool-sleeptime="300000"
+ test-on-borrow="true"
+ pool-jdbc-test-stmt="SELECT 1"
time-between-eviction-runs-millis="600000"/>
- <!-- <jndi-jdbc jndi-server-name="localjndi"
jndi-name="java:/DerbyDataSource" isolation-level="ReadCommitted"/> -->
+ <!-- <jndi-jdbc jndi-server-name="localjndi"
jndi-name="java:/H2DataSource" isolation-level="ReadCommitted"/> -->
</datasource>
- <datasource name="localderbytenant"
+ <datasource name="localh2tenant"
helper-class="org.apache.ofbiz.entity.datasource.GenericHelperDAO"
- schema-name="OFBIZ"
- field-type-name="derby"
+ schema-name="TENANT"
+ field-type-name="h2"
check-on-start="true"
add-missing-on-start="true"
+ max-worker-pool-size="1"
use-pk-constraint-names="false"
use-indices-unique="false"
alias-view-columns="false"
@@ -259,17 +270,20 @@ access. For a detailed description see the
core/docs/entityconfig.html file.
<read-data reader-name="ext"/>
<read-data reader-name="ext-test"/>
<read-data reader-name="ext-demo"/>
- <!-- beware use-indices-unique="false" is needed because of Derby bug
with null values in a unique index -->
+
<inline-jdbc
- jdbc-driver="org.apache.derby.jdbc.EmbeddedDriver"
- jdbc-uri="jdbc:derby:ofbiztenant;create=true"
+ jdbc-driver="org.h2.Driver"
+
jdbc-uri="jdbc:h2:file:./runtime/data/h2/ofbiz;AUTO_SERVER=TRUE;LOCK_TIMEOUT=60000;INIT=CREATE
SCHEMA IF NOT EXISTS TENANT"
jdbc-username="ofbiz"
- jdbc-password-lookup="derby-ofbiztenant"
+ jdbc-password-lookup="h2-ofbiztenant"
isolation-level="ReadCommitted"
- pool-minsize="2"
+ pool-minsize="0"
pool-maxsize="250"
+ pool-sleeptime="300000"
+ test-on-borrow="true"
+ pool-jdbc-test-stmt="SELECT 1"
time-between-eviction-runs-millis="600000"/>
- <!-- <jndi-jdbc jndi-server-name="localjndi"
jndi-name="java:/DerbyDataSource" isolation-level="ReadCommitted"/> -->
+ <!-- <jndi-jdbc jndi-server-name="localjndi"
jndi-name="java:/H2DataSource" isolation-level="ReadCommitted"/> -->
</datasource>
<datasource name="localdaffodil"
@@ -810,12 +824,12 @@ access. For a detailed description see the
core/docs/entityconfig.html file.
time-between-eviction-runs-millis="600000"/>
</datasource>
- <!-- According to http://markmail.org/message/s75sf6zhtizzkqbv Since
version V6R1 (AS/400, db2) there is no need for an own fieldtype.xml - just use
the derby-fieldtypes like this: -->
+ <!-- According to http://markmail.org/message/s75sf6zhtizzkqbv Since
version V6R1 (AS/400, db2) there is no need for an own fieldtype.xml - just use
the h2-fieldtypes like this: -->
<!-- Beware use-indices-unique="false" is needed because of Derby bug with
null values in a unique index, not sure it's needed with DB2 -->
<datasource name="DB2"
helper-class="org.apache.ofbiz.entity.datasource.GenericHelperDAO"
schema-name="OFBIZ"
- field-type-name="derby"
+ field-type-name="h2"
check-on-start="true"
add-missing-on-start="true"
use-pk-constraint-names="false"
diff --git a/framework/entity/fieldtype/fieldtypederby.xml
b/framework/entity/fieldtype/fieldtypeh2.xml
similarity index 100%
rename from framework/entity/fieldtype/fieldtypederby.xml
rename to framework/entity/fieldtype/fieldtypeh2.xml
diff --git
a/framework/entity/src/main/java/org/apache/ofbiz/entity/model/ModelEntity.java
b/framework/entity/src/main/java/org/apache/ofbiz/entity/model/ModelEntity.java
index fa9a406512..7e801dad53 100644
---
a/framework/entity/src/main/java/org/apache/ofbiz/entity/model/ModelEntity.java
+++
b/framework/entity/src/main/java/org/apache/ofbiz/entity/model/ModelEntity.java
@@ -2174,7 +2174,7 @@ public class ModelEntity implements
Comparable<ModelEntity>, Serializable {
public void writeEoModelText(PrintWriter writer, String entityPrefix,
String helperName, Set<String> entityNameIncludeSet,
ModelReader entityModelReader) throws
GenericEntityException {
if (entityPrefix == null) entityPrefix = "";
- if (helperName == null) helperName = "localderby";
+ if (helperName == null) helperName = "localh2";
UtilPlist.writePlistPropertyMap(this.createEoModelMap(entityPrefix,
helperName, entityNameIncludeSet, entityModelReader), 0, writer, false);
}
diff --git
a/framework/entity/src/test/java/org/apache/ofbiz/entity/DelegatorUnitTests.java
b/framework/entity/src/test/java/org/apache/ofbiz/entity/DelegatorUnitTests.java
index 5a873fec5d..b01e47c2f1 100644
---
a/framework/entity/src/test/java/org/apache/ofbiz/entity/DelegatorUnitTests.java
+++
b/framework/entity/src/test/java/org/apache/ofbiz/entity/DelegatorUnitTests.java
@@ -39,7 +39,6 @@ public class DelegatorUnitTests {
@Before
public void initialize() {
System.setProperty("ofbiz.home", System.getProperty("user.dir"));
- System.setProperty("derby.system.home", "./runtime/data/derby");
logErrorOn = Debug.isOn(Debug.ERROR); // save the current setting (to
be restored after the tests)
Debug.set(Debug.ERROR, false); // disable error logging
}
diff --git a/framework/resources/templates/AdminNewTenantData-Derby.xml
b/framework/resources/templates/AdminNewTenantData-H2.xml
similarity index 80%
rename from framework/resources/templates/AdminNewTenantData-Derby.xml
rename to framework/resources/templates/AdminNewTenantData-H2.xml
index 39447b5817..2819d05827 100644
--- a/framework/resources/templates/AdminNewTenantData-Derby.xml
+++ b/framework/resources/templates/AdminNewTenantData-H2.xml
@@ -22,7 +22,7 @@ under the License.
<Tenant tenantId="@tenantId@" tenantName="@tenantName@" />
<TenantDomainName tenantId="@tenantId@" domainName="@domainName@" />
<TenantDataSource tenantId="@tenantId@" entityGroupName="org.apache.ofbiz"
- jdbcUri="jdbc:derby:ofbiz_@tenantId@;create=true" jdbcUsername="ofbiz"
jdbcPassword="ofbiz"/>
+
jdbcUri="jdbc:h2:file:./runtime/data/h2/ofbiz_@tenantId@;AUTO_SERVER=TRUE"
jdbcUsername="ofbiz" jdbcPassword="ofbiz"/>
<TenantDataSource tenantId="@tenantId@"
entityGroupName="org.apache.ofbiz.olap"
- jdbcUri="jdbc:derby:ofbizolap_@tenantId@;create=true"
jdbcUsername="ofbiz" jdbcPassword="ofbiz"/>
-</entity-engine-xml>
\ No newline at end of file
+
jdbcUri="jdbc:h2:file:./runtime/data/h2/ofbizolap_@tenantId@;AUTO_SERVER=TRUE"
jdbcUsername="ofbiz" jdbcPassword="ofbiz"/>
+</entity-engine-xml>
diff --git
a/framework/service/src/test/groovy/org/apache/ofbiz/service/ModelServiceTest.groovy
b/framework/service/src/test/groovy/org/apache/ofbiz/service/ModelServiceTest.groovy
index b53764ed0b..8d9e8af4c8 100644
---
a/framework/service/src/test/groovy/org/apache/ofbiz/service/ModelServiceTest.groovy
+++
b/framework/service/src/test/groovy/org/apache/ofbiz/service/ModelServiceTest.groovy
@@ -46,7 +46,6 @@ class ModelServiceTest {
@Before
void initialize() {
System.setProperty('ofbiz.home', System.getProperty('user.dir'))
- System.setProperty('derby.system.home', './runtime/data/derby')
dispatcher = Mockito.mock(LocalDispatcher)
Mockito.when(dispatcher.getDelegator()).thenReturn(DelegatorFactory.getDelegator('default'))
}
diff --git
a/framework/start/src/main/java/org/apache/ofbiz/base/start/Config.java
b/framework/start/src/main/java/org/apache/ofbiz/base/start/Config.java
index 46eea95b24..315b4ae0f7 100644
--- a/framework/start/src/main/java/org/apache/ofbiz/base/start/Config.java
+++ b/framework/start/src/main/java/org/apache/ofbiz/base/start/Config.java
@@ -106,8 +106,6 @@ public final class Config {
// set system properties
System.setProperty("ofbiz.home", ofbizHome.toString());
System.setProperty("java.awt.headless", getProperty(props,
"java.awt.headless", "true"));
- System.setProperty("derby.system.home", getProperty(props,
"derby.system.home", "runtime/data/derby"));
-
// set default locale and timezone
Locale.setDefault(getDefaultLocale(props, "en"));
TimeZone.setDefault(getDefaultTimeZone(props));
diff --git
a/framework/start/src/main/resources/org/apache/ofbiz/base/start/start.properties
b/framework/start/src/main/resources/org/apache/ofbiz/base/start/start.properties
index 2be2171c46..7cc6194809 100644
---
a/framework/start/src/main/resources/org/apache/ofbiz/base/start/start.properties
+++
b/framework/start/src/main/resources/org/apache/ofbiz/base/start/start.properties
@@ -30,9 +30,6 @@ ofbiz.start.loaders=main
# --- logs directory relative to ofbiz.home. Default is runtime/logs
#ofbiz.log.dir=
-# --- Derby directory relative to ofbiz.home. Default is runtime/data/derby
-#derby.system.home=
-
# --- Container config file relative to ofbiz.home.
# Default is framework/base/config/ofbiz-containers.xml
#ofbiz.container.config=
diff --git
a/framework/webtools/src/main/java/org/apache/ofbiz/webtools/WebToolsServices.java
b/framework/webtools/src/main/java/org/apache/ofbiz/webtools/WebToolsServices.java
index bae2947d38..6f9fda106a 100644
---
a/framework/webtools/src/main/java/org/apache/ofbiz/webtools/WebToolsServices.java
+++
b/framework/webtools/src/main/java/org/apache/ofbiz/webtools/WebToolsServices.java
@@ -855,7 +855,7 @@ public class WebToolsServices {
String datasourceName = (String) context.get("datasourceName");
String entityNamePrefix = (String) context.get("entityNamePrefix");
Locale locale = (Locale) context.get("locale");
- if (datasourceName == null) datasourceName = "localderby";
+ if (datasourceName == null) datasourceName = "localh2";
ModelReader reader = dctx.getDelegator().getModelReader();
diff --git a/runtime/data/derby.properties b/runtime/data/derby.properties
deleted file mode 100644
index 6cba23ed13..0000000000
--- a/runtime/data/derby.properties
+++ /dev/null
@@ -1,28 +0,0 @@
-###############################################################################
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-###############################################################################
-
-derby.infolog.append=true
-derby.storage.pageSize=8192
-derby.storage.pageReservedSpace=60
-derby.storage.fileSyncTransactionLog=true
-
-# Useful for tracking down lock wait timeouts and deadlocks
-#derby.locks.monitor=true
-#derby.locks.deadlockTrace=true
-#derby.language.logStatementText=true
\ No newline at end of file