aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/http
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2013-09-18 19:11:54 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2013-09-18 19:11:54 +1200
commit505cbf7678054d5bb0682ac8b3a468d951e20095 (patch)
treecd5470d5e96fc75b6b431e25c834a80d02ff549e /src/org/traccar/http
parente20baccccc1aff70db085dc647cb1887f071c92c (diff)
downloadtraccar-server-505cbf7678054d5bb0682ac8b3a468d951e20095.tar.gz
traccar-server-505cbf7678054d5bb0682ac8b3a468d951e20095.tar.bz2
traccar-server-505cbf7678054d5bb0682ac8b3a468d951e20095.zip
Fix DataSource initialization
Diffstat (limited to 'src/org/traccar/http')
-rw-r--r--src/org/traccar/http/WebServer.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/http/WebServer.java b/src/org/traccar/http/WebServer.java
index 0fd5b952e..2745cd7b8 100644
--- a/src/org/traccar/http/WebServer.java
+++ b/src/org/traccar/http/WebServer.java
@@ -55,7 +55,7 @@ public class WebServer {
if (clazz != null) {
DataSource ds = (DataSource) clazz.newInstance();
- clazz.getMethod("setUrl", String.class).invoke(ds, properties.getProperty("database.url"));
+ clazz.getMethod("setURL", String.class).invoke(ds, properties.getProperty("database.url"));
clazz.getMethod("setUser", String.class).invoke(ds, properties.getProperty("database.user"));
clazz.getMethod("setPassword", String.class).invoke(ds, properties.getProperty("database.password"));