summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManuel Bentele2021-12-22 13:28:07 +0100
committerManuel Bentele2021-12-22 13:28:07 +0100
commit267fec5ef03acfcf59fe50ec52406933a07ac47a (patch)
tree4a98c3b67d05264e10b1dff21d5f5a5c6d939b79
parentUpdate log4j because of the CVE-2021-45105 security flaw (diff)
downloadmasterserver-267fec5ef03acfcf59fe50ec52406933a07ac47a.tar.gz
masterserver-267fec5ef03acfcf59fe50ec52406933a07ac47a.tar.xz
masterserver-267fec5ef03acfcf59fe50ec52406933a07ac47a.zip
Update Mysql Java driver class path
-rw-r--r--src/main/java/org/openslx/imagemaster/db/Database.java11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/main/java/org/openslx/imagemaster/db/Database.java b/src/main/java/org/openslx/imagemaster/db/Database.java
index 7ff12a4..0832649 100644
--- a/src/main/java/org/openslx/imagemaster/db/Database.java
+++ b/src/main/java/org/openslx/imagemaster/db/Database.java
@@ -78,15 +78,8 @@ public class Database
try {
Class.forName( "com.mysql.cj.jdbc.Driver" ).newInstance();
} catch ( Exception e1 ) {
- LOGGER.warn( "Cannot get mysql JDBC driver (new path)", e1 );
- LOGGER.info( "Trying old path..." );
- try {
- Class.forName( "com.mysql.jdbc.Driver" ).newInstance();
- } catch ( Exception e2 ) {
- LOGGER.fatal( "Cannot get mysql JDBC driver (old path)", e2 );
- LOGGER.fatal( "Bailing!" );
- System.exit( 1 );
- }
+ LOGGER.fatal( "Cannot get mysql JDBC driver", e1 );
+ System.exit( 1 );
}
}