diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-09-15 11:29:01 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2018-09-15 11:29:01 +1200 |
commit | 2fb444df86d56246a8b5cee515eb91490c8dee05 (patch) | |
tree | ca1796dfe137184b6381fefeba0f7de4e26d7dd7 /src/org/traccar/ServerManager.java | |
parent | 363ca19cb2ac1b56e3db8f38c89cf61c73806462 (diff) | |
download | trackermap-server-2fb444df86d56246a8b5cee515eb91490c8dee05.tar.gz trackermap-server-2fb444df86d56246a8b5cee515eb91490c8dee05.tar.bz2 trackermap-server-2fb444df86d56246a8b5cee515eb91490c8dee05.zip |
More work on service implementation
Diffstat (limited to 'src/org/traccar/ServerManager.java')
-rw-r--r-- | src/org/traccar/ServerManager.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/ServerManager.java b/src/org/traccar/ServerManager.java index a67f71be2..17c572ae3 100644 --- a/src/org/traccar/ServerManager.java +++ b/src/org/traccar/ServerManager.java @@ -44,7 +44,7 @@ public class ServerManager { List<String> names = new LinkedList<>(); String packageName = "org.traccar.protocol"; String packagePath = packageName.replace('.', '/'); - URL packageUrl = Thread.currentThread().getContextClassLoader().getResource(packagePath); + URL packageUrl = getClass().getClassLoader().getResource(packagePath); if (packageUrl.getProtocol().equals("jar")) { String jarFileName = URLDecoder.decode(packageUrl.getFile(), StandardCharsets.UTF_8.name()); |