SusiDNS: Fix classloading on Java 11+

Caused SusiDNS and addressbook to be in a different context
addressbook config would be stored in base dir
and subscriptions would not load because it couldn't find i2ptunnel
This commit is contained in:
zzz
2022-06-17 12:52:36 -04:00
parent ed1e705d35
commit c2edd7e926
3 changed files with 11 additions and 1 deletions

View File

@@ -106,6 +106,8 @@ public class WebAppConfiguration implements Configuration {
if (ctxPath.equals("/susidns")) {
// Old installs don't have this in their wrapper.config classpath
cp = "addressbook.jar";
// Java 11+ fix to prevent dup contexts
wac.setParentLoaderPriority(true);
} else if (pluginDir.exists()) {
File consoleDir = new File(pluginDir, "console");
Properties props = RouterConsoleRunner.webAppProperties(consoleDir.getAbsolutePath());