Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
dizzzz committed Jan 11, 2025
1 parent 8701ca3 commit a1090ad
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion exist-start/src/main/java/org/exist/start/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ public class Main {
public static final String STANDARD_ENABLED_JETTY_CONFIGS = "standard.enabled-jetty-configs";
public static final String STANDALONE_ENABLED_JETTY_CONFIGS = "standalone.enabled-jetty-configs";
public static final String PROP_LOG4J_DISABLEJMX = "log4j2.disableJmx";
public static final String PROP_XML_CATALOG_ALWAYS_RESOLVE = "xml.catalog.alwaysResolve";

private static final int ERROR_CODE_GENERAL = 1;
private static final int ERROR_CODE_NO_JETTY_CONFIG = 7;
Expand All @@ -85,7 +86,6 @@ public class Main {
public static final String ENV_EXIST_HOME = "EXIST_HOME";
public static final String ENV_JETTY_HOME = "JETTY_HOME";


private static Main exist;

private String _mode = "jetty";
Expand Down Expand Up @@ -274,6 +274,9 @@ public void runEx(String[] args) throws StartException {
// Enable JXM support log4j since v2.24.0 [2024]
System.setProperty(PROP_LOG4J_DISABLEJMX, "false");

// Modify behavior XML resolver for > 5.x [2024]
System.setProperty(PROP_XML_CATALOG_ALWAYS_RESOLVE,"false");

// clean up tempdir for Jetty...
try {
final Path tmpdir = Paths.get(System.getProperty(PROP_JAVA_TEMP_DIR)).toAbsolutePath();
Expand Down

0 comments on commit a1090ad

Please sign in to comment.