diff --git a/build.xml b/build.xml
index 31eb24a85e..87290584b1 100644
--- a/build.xml
+++ b/build.xml
@@ -997,9 +997,9 @@ export.database: exports database structure and data to xml files.
       <arg line="'${base.config}/Openbravo.properties' ${logFileName}" />
       <classpath>
         <pathelement path="${build.core.lib}/openbravo-core.jar" />
-        <pathelement path="${base.lib}/runtime/log4j-1.2-api-2.11.1.jar" />
-        <pathelement path="${base.lib}/runtime/log4j-api-2.11.1.jar" />
-        <pathelement path="${base.lib}/runtime/log4j-core-2.11.1.jar" />
+        <pathelement path="${base.lib}/runtime/log4j-1.2-api-2.17.0.jar" />
+        <pathelement path="${base.lib}/runtime/log4j-api-2.17.0.jar" />
+        <pathelement path="${base.lib}/runtime/log4j-core-2.17.0.jar" />
         <pathelement path="${base.lib}/runtime/commons-pool-1.5.6.jar" />
         <pathelement path="${base.lib}/runtime/commons-dbcp-1.4.jar" />
         <pathelement path="${base.lib}/runtime/postgresql-42.2.2.jre7.jar" />
diff --git a/src-core/.classpath b/src-core/.classpath
index d59b172c9b..d1c9920d55 100644
--- a/src-core/.classpath
+++ b/src-core/.classpath
@@ -13,8 +13,8 @@
 	<classpathentry kind="lib" path="/openbravo/lib/runtime/commons-io-2.4.jar"/>
 	<classpathentry kind="lib" path="/openbravo/lib/build/servlet-api.jar"/>
 	<classpathentry kind="lib" path="/openbravo/lib/runtime/ant-1.9.2.jar"/>
-	<classpathentry kind="lib" path="/openbravo/lib/runtime/log4j-1.2-api-2.11.1.jar"/>
-	<classpathentry kind="lib" path="/openbravo/lib/runtime/log4j-api-2.11.1.jar"/>
-	<classpathentry kind="lib" path="/openbravo/lib/runtime/log4j-core-2.11.1.jar"/>
+	<classpathentry kind="lib" path="/openbravo/lib/runtime/log4j-1.2-api-2.17.0.jar"/>
+	<classpathentry kind="lib" path="/openbravo/lib/runtime/log4j-api-2.17.0.jar"/>
+	<classpathentry kind="lib" path="/openbravo/lib/runtime/log4j-core-2.17.0.jar"/>
 	<classpathentry kind="output" path="build/classes"/>
 </classpath>
diff --git a/src-core/src/org/openbravo/utils/OBRebuildAppender.java b/src-core/src/org/openbravo/utils/OBRebuildAppender.java
index 8ebd873df1..a08b477c3f 100644
--- a/src-core/src/org/openbravo/utils/OBRebuildAppender.java
+++ b/src-core/src/org/openbravo/utils/OBRebuildAppender.java
@@ -24,6 +24,7 @@ import org.apache.logging.log4j.core.Filter;
 import org.apache.logging.log4j.core.Layout;
 import org.apache.logging.log4j.core.LogEvent;
 import org.apache.logging.log4j.core.appender.AbstractAppender;
+import org.apache.logging.log4j.core.config.Property;
 import org.apache.logging.log4j.core.config.plugins.Plugin;
 import org.apache.logging.log4j.core.config.plugins.PluginAttribute;
 import org.apache.logging.log4j.core.config.plugins.PluginElement;
@@ -50,7 +51,12 @@ public class OBRebuildAppender extends AbstractAppender {
   }
 
   protected OBRebuildAppender(String name, Filter filter, Layout<? extends Serializable> layout) {
-    super(name, filter, layout);
+    this(name, filter, layout, false, Property.EMPTY_ARRAY);
+  }
+
+  protected OBRebuildAppender(String name, Filter filter, Layout<? extends Serializable> layout,
+      boolean ignoreExceptions, Property[] properties) {
+    super(name, filter, layout, ignoreExceptions, properties);
   }
 
   @Override
diff --git a/src-test/src/org/openbravo/test/base/TestLogAppender.java b/src-test/src/org/openbravo/test/base/TestLogAppender.java
index 8bfe2bee75..081252105e 100644
--- a/src-test/src/org/openbravo/test/base/TestLogAppender.java
+++ b/src-test/src/org/openbravo/test/base/TestLogAppender.java
@@ -11,7 +11,7 @@
  * under the License.
  * The Original Code is Openbravo ERP.
  * The Initial Developer of the Original Code is Openbravo SLU
- * All portions are Copyright (C) 2016-2018 Openbravo SLU
+ * All portions are Copyright (C) 2016-2021 Openbravo SLU
  * All Rights Reserved.
  * Contributor(s):  ______________________________________.
  ************************************************************************
@@ -32,6 +32,7 @@ import org.apache.logging.log4j.core.Core;
 import org.apache.logging.log4j.core.Filter;
 import org.apache.logging.log4j.core.LogEvent;
 import org.apache.logging.log4j.core.appender.AbstractAppender;
+import org.apache.logging.log4j.core.config.Property;
 import org.apache.logging.log4j.core.config.plugins.Plugin;
 import org.apache.logging.log4j.core.config.plugins.PluginAttribute;
 import org.apache.logging.log4j.core.config.plugins.PluginElement;
@@ -50,7 +51,7 @@ public class TestLogAppender extends AbstractAppender {
   private boolean logStackTraces = false;
 
   protected TestLogAppender(String name, Filter filter) {
-    super(name, filter, null);
+    super(name, filter, null, true, Property.EMPTY_ARRAY);
   }
 
   @Override
diff --git a/src-trl/.classpath b/src-trl/.classpath
index 7bd220e142..f513ec798a 100644
--- a/src-trl/.classpath
+++ b/src-trl/.classpath
@@ -7,8 +7,8 @@
 	<classpathentry kind="lib" path="/openbravo/lib/runtime/nekohtml.jar"/>
 	<classpathentry kind="lib" path="/openbravo/lib/runtime/xercesImpl.jar"/>
 	<classpathentry kind="lib" path="/openbravo/lib/build/servlet-api.jar"/>
-	<classpathentry kind="lib" path="/openbravo/lib/runtime/log4j-1.2-api-2.11.1.jar"/>
-	<classpathentry kind="lib" path="/openbravo/lib/runtime/log4j-api-2.11.1.jar"/>
-	<classpathentry kind="lib" path="/openbravo/lib/runtime/log4j-core-2.11.1.jar"/>
+	<classpathentry kind="lib" path="/openbravo/lib/runtime/log4j-1.2-api-2.17.0.jar"/>
+	<classpathentry kind="lib" path="/openbravo/lib/runtime/log4j-api-2.17.0.jar"/>
+	<classpathentry kind="lib" path="/openbravo/lib/runtime/log4j-core-2.17.0.jar"/>
 	<classpathentry kind="output" path="build/classes"/>
 </classpath>
diff --git a/src-wad/.classpath b/src-wad/.classpath
index fcbc1b949f..09095cc1a6 100644
--- a/src-wad/.classpath
+++ b/src-wad/.classpath
@@ -8,8 +8,8 @@
 	<classpathentry kind="lib" path="/openbravo/lib/runtime/commons-collections-3.2.1.jar"/>
 	<classpathentry kind="lib" path="/openbravo/lib/build/servlet-api.jar"/>
 	<classpathentry kind="lib" path="/openbravo/lib/runtime/ant-1.9.2.jar"/>
-	<classpathentry kind="lib" path="/openbravo/lib/runtime/log4j-1.2-api-2.11.1.jar"/>
-	<classpathentry kind="lib" path="/openbravo/lib/runtime/log4j-api-2.11.1.jar"/>
-	<classpathentry kind="lib" path="/openbravo/lib/runtime/log4j-core-2.11.1.jar"/>
+	<classpathentry kind="lib" path="/openbravo/lib/runtime/log4j-1.2-api-2.17.0.jar"/>
+	<classpathentry kind="lib" path="/openbravo/lib/runtime/log4j-api-2.17.0.jar"/>
+	<classpathentry kind="lib" path="/openbravo/lib/runtime/log4j-core-2.17.0.jar"/>
 	<classpathentry kind="output" path="build/classes"/>
 </classpath>
