mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

vharseko
20.38.2017 21eef476b6057b304806abe6b6d5e60c1fde113c
fix classloader
1 files modified
2 ■■■ changed files
opendj-config/src/main/java/org/forgerock/opendj/config/ManagedObjectDefinitionResource.java 2 ●●● patch | view | raw | blame | history
opendj-config/src/main/java/org/forgerock/opendj/config/ManagedObjectDefinitionResource.java
@@ -98,7 +98,7 @@
            // Load the resource file.
            String baseName = prefix + "." + d.getClass().getName();
            String path = baseName.replace('.', '/') + ".properties";
            InputStream stream = ConfigurationFramework.getInstance().getClassLoader().getResourceAsStream(path);
            InputStream stream = ConfigurationFramework.class.getClassLoader().getResourceAsStream(path);
            if (stream == null) {
                throw new MissingResourceException("Can't find resource " + path, baseName, "");