From 8255e91c994a6bc85817dd4943f7e78df34b640d Mon Sep 17 00:00:00 2001 From: luccioman Date: Sat, 3 Sep 2016 15:21:02 +0200 Subject: [PATCH] Fixed serverClassLoader.findClass method htroot is a supposed to be a subfolder of appPath and not of dataPath, as assumed in other places where htroot is loaded. This issue was not visible when dataPath and appPath are equals. --- source/net/yacy/server/serverClassLoader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/net/yacy/server/serverClassLoader.java b/source/net/yacy/server/serverClassLoader.java index 9412dc4be..cd627a22c 100644 --- a/source/net/yacy/server/serverClassLoader.java +++ b/source/net/yacy/server/serverClassLoader.java @@ -64,7 +64,7 @@ public final class serverClassLoader extends ClassLoader { @Override protected Class findClass(String classname) throws ClassNotFoundException { // construct path to htroot for a servletname - File cpath = new File (Switchboard.getSwitchboard().getDataPath(SwitchboardConstants.HTROOT_PATH, SwitchboardConstants.HTROOT_PATH_DEFAULT),classname+".class"); + File cpath = new File (Switchboard.getSwitchboard().getAppPath(SwitchboardConstants.HTROOT_PATH, SwitchboardConstants.HTROOT_PATH_DEFAULT),classname+".class"); return loadClass(cpath); }