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.
pull/72/head
luccioman 9 years ago
parent 421a6e3a95
commit 8255e91c99

@ -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);
}

Loading…
Cancel
Save