From c71422b81d7741434287b8645bc42abc7a8c59d1 Mon Sep 17 00:00:00 2001 From: Ben Soares Date: Thu, 27 Jun 2024 22:14:58 +0100 Subject: [PATCH] JAL-3631 Add property to let log4j know we're not running in a servlet (or it issues a warning which breaks cli headless output) --- src/jalview/bin/Jalview.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/jalview/bin/Jalview.java b/src/jalview/bin/Jalview.java index 6b88cfa..0e3b30a 100755 --- a/src/jalview/bin/Jalview.java +++ b/src/jalview/bin/Jalview.java @@ -322,6 +322,8 @@ public class Jalview implements JalviewObjectI boolean usingLogfile = false; if (!Platform.isJS()) { + // required to ensure log4j doesn't think it's running in a servlet + System.setProperty("log4j2.isWebapp", "false"); // are we using a logfile? String logfilename = System.getProperty("installer.logfile"); -- 1.7.10.2