From 505cbf7678054d5bb0682ac8b3a468d951e20095 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 18 Sep 2013 19:11:54 +1200 Subject: Fix DataSource initialization --- src/org/traccar/http/WebServer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/org/traccar/http/WebServer.java') 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")); -- cgit v1.2.3