aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/http
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-05-07 22:06:24 +0300
committerGravatar Vitaly Takmazov2016-05-07 22:06:24 +0300
commit388716986b483e99e5140ca1557cd38632b5115b (patch)
treec5412c314faf09bf50b2b4902b7c662789d7631d /src/main/java/com/juick/http
parent015db36a14f29837f864a1d18797a05a2d0d8098 (diff)
fix resource paths
Diffstat (limited to 'src/main/java/com/juick/http')
-rw-r--r--src/main/java/com/juick/http/www/Main.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/juick/http/www/Main.java b/src/main/java/com/juick/http/www/Main.java
index cabd50af..7896c207 100644
--- a/src/main/java/com/juick/http/www/Main.java
+++ b/src/main/java/com/juick/http/www/Main.java
@@ -70,7 +70,7 @@ public class Main extends HttpServlet implements Stream.StreamListener {
super.init();
try {
Properties conf = new Properties();
- conf.load(getServletContext().getResourceAsStream("WEB-INF/juick.conf"));
+ conf.load(getServletContext().getResourceAsStream("/WEB-INF/juick.conf"));
Class.forName("com.mysql.jdbc.Driver");
sql = DriverManager.getConnection("jdbc:mysql://localhost/juick?autoReconnect=true&user=" + conf.getProperty("mysql_username", "") + "&password=" + conf.getProperty("mysql_password", ""));