aboutsummaryrefslogtreecommitdiff
path: root/DocumentService/src/eu/stork/documentservice
diff options
context:
space:
mode:
authorAlexander Marsalek <amarsalek@iaik.tugraz.at>2014-06-12 14:11:33 +0200
committerAlexander Marsalek <amarsalek@iaik.tugraz.at>2014-06-23 11:48:11 +0200
commit4f7e4a56ec7f12117455542518648d0a7cbdf782 (patch)
treed0a10971b2739c95521088a33fdeb05708f59310 /DocumentService/src/eu/stork/documentservice
parentf77f1a4ec8766550641cf6079d08c724f9cf15f5 (diff)
downloadmoa-id-spss-4f7e4a56ec7f12117455542518648d0a7cbdf782.tar.gz
moa-id-spss-4f7e4a56ec7f12117455542518648d0a7cbdf782.tar.bz2
moa-id-spss-4f7e4a56ec7f12117455542518648d0a7cbdf782.zip
MYSQL driver fix, added debug output
Diffstat (limited to 'DocumentService/src/eu/stork/documentservice')
-rw-r--r--DocumentService/src/eu/stork/documentservice/data/DatabaseConnectorMySQLImpl.java12
-rw-r--r--DocumentService/src/eu/stork/documentservice/data/docservice.properties2
2 files changed, 13 insertions, 1 deletions
diff --git a/DocumentService/src/eu/stork/documentservice/data/DatabaseConnectorMySQLImpl.java b/DocumentService/src/eu/stork/documentservice/data/DatabaseConnectorMySQLImpl.java
index bdabc55bf..e4506e17d 100644
--- a/DocumentService/src/eu/stork/documentservice/data/DatabaseConnectorMySQLImpl.java
+++ b/DocumentService/src/eu/stork/documentservice/data/DatabaseConnectorMySQLImpl.java
@@ -33,6 +33,18 @@ public class DatabaseConnectorMySQLImpl implements DatabaseConnector {
password = _password;
server = _server;
database = _database;
+ try {
+ Class.forName("com.mysql.jdbc.Driver").newInstance();
+ } catch (InstantiationException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ } catch (IllegalAccessException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ } catch (ClassNotFoundException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
}
/* (non-Javadoc)
diff --git a/DocumentService/src/eu/stork/documentservice/data/docservice.properties b/DocumentService/src/eu/stork/documentservice/data/docservice.properties
index 1d5bf3d41..4ca12d023 100644
--- a/DocumentService/src/eu/stork/documentservice/data/docservice.properties
+++ b/DocumentService/src/eu/stork/documentservice/data/docservice.properties
@@ -1,5 +1,5 @@
sql.server=localhost:3306
-sql.database=storktransfer
+sql.database=STORKTRANSFER
sql.user=stork
sql.password=stork