diff options
author | Vitaly Takmazov | 2016-05-07 22:06:24 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2016-05-07 22:06:24 +0300 |
commit | 388716986b483e99e5140ca1557cd38632b5115b (patch) | |
tree | c5412c314faf09bf50b2b4902b7c662789d7631d /src/main/java/com/juick/CrosspostComponent.java | |
parent | 015db36a14f29837f864a1d18797a05a2d0d8098 (diff) |
fix resource paths
Diffstat (limited to 'src/main/java/com/juick/CrosspostComponent.java')
-rw-r--r-- | src/main/java/com/juick/CrosspostComponent.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/juick/CrosspostComponent.java b/src/main/java/com/juick/CrosspostComponent.java index 22de81b6..c277ee68 100644 --- a/src/main/java/com/juick/CrosspostComponent.java +++ b/src/main/java/com/juick/CrosspostComponent.java @@ -73,10 +73,10 @@ public class CrosspostComponent implements ServletContextListener, Stream.Strea executorService.submit((Runnable) () -> { try { Properties conf = new Properties(); - conf.load(sce.getServletContext().getResourceAsStream("WEB-INF/juick.conf")); + conf.load(sce.getServletContext().getResourceAsStream("/WEB-INF/juick.conf")); LogManager.getLogManager().readConfiguration( - sce.getServletContext().getResourceAsStream("WEB-INF/logging.properties")); + sce.getServletContext().getResourceAsStream("/WEB-INF/logging.properties")); twitter_consumer_key = conf.getProperty("twitter_consumer_key", ""); twitter_consumer_secret = conf.getProperty("twitter_consumer_secret", ""); |