aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/xmpp/s2s/XMPPComponent.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/juick/xmpp/s2s/XMPPComponent.java')
-rw-r--r--src/main/java/com/juick/xmpp/s2s/XMPPComponent.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/java/com/juick/xmpp/s2s/XMPPComponent.java b/src/main/java/com/juick/xmpp/s2s/XMPPComponent.java
index bb5f5ef7..95641f5e 100644
--- a/src/main/java/com/juick/xmpp/s2s/XMPPComponent.java
+++ b/src/main/java/com/juick/xmpp/s2s/XMPPComponent.java
@@ -6,7 +6,6 @@ import com.juick.xmpp.extensions.JuickMessage;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
-import java.io.FileInputStream;
import java.io.IOException;
import java.sql.Driver;
import java.sql.DriverManager;
@@ -157,7 +156,7 @@ public class XMPPComponent implements ServletContextListener {
executorService.submit(() -> {
Properties conf = new Properties();
try {
- conf.load(new FileInputStream("/etc/juick/s2s.conf"));
+ conf.load(sce.getServletContext().getResourceAsStream("WEB-INF/s2s.conf"));
HOSTNAME = conf.getProperty("hostname");
COMPONENTNAME = conf.getProperty("componentname");
STATSFILE = conf.getProperty("statsfile");