diff options
author | Manuel Bentele | 2021-12-22 13:28:07 +0100 |
---|---|---|
committer | Manuel Bentele | 2021-12-22 13:28:07 +0100 |
commit | 267fec5ef03acfcf59fe50ec52406933a07ac47a (patch) | |
tree | 4a98c3b67d05264e10b1dff21d5f5a5c6d939b79 | |
parent | Update log4j because of the CVE-2021-45105 security flaw (diff) | |
download | masterserver-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.java | 11 |
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 );
}
}
|