From: Roland Haeder Date: Wed, 19 Aug 2015 12:47:05 +0000 (+0200) Subject: Updated 'jcore.jar' + added initialization of backends for local call + caught all... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2f1ddaee4f2302aad14cfe22e8dc2e08dc51def7;p=pizzaservice-war.git Updated 'jcore.jar' + added initialization of backends for local call + caught all exceptions Signed-off-by:Roland Häder --- diff --git a/lib/jcore.jar b/lib/jcore.jar index 0e881370..bcc5b02c 100644 Binary files a/lib/jcore.jar and b/lib/jcore.jar differ diff --git a/lib/nblibraries.properties b/lib/nblibraries.properties index 6d0afb59..c6143cc5 100644 --- a/lib/nblibraries.properties +++ b/lib/nblibraries.properties @@ -2,3 +2,7 @@ libs.CopyLibs.classpath=\ ${base}/CopyLibs/org-netbeans-modules-java-j2seproject-copylibstask.jar libs.CopyLibs.displayName=CopyLibs Task libs.CopyLibs.prop-version=2.0 +libs.MySQLDriver.classpath=\ + ${base}/MySQLDriver/mysql-connector-java-5.1.23-bin.jar +libs.MySQLDriver.displayName=MySQL JDBC Driver +libs.MySQLDriver.prop-maven-dependencies=mysql:mysql-connector-java:5.1.23:jar diff --git a/nbproject/build-impl.xml b/nbproject/build-impl.xml index f6e8b2bb..b0f7fcc0 100644 --- a/nbproject/build-impl.xml +++ b/nbproject/build-impl.xml @@ -1026,6 +1026,7 @@ exists or setup the property manually. For example like this: + @@ -1034,6 +1035,7 @@ exists or setup the property manually. For example like this: + diff --git a/nbproject/genfiles.properties b/nbproject/genfiles.properties index 4420a8f4..9e11a91a 100644 --- a/nbproject/genfiles.properties +++ b/nbproject/genfiles.properties @@ -1,8 +1,8 @@ -build.xml.data.CRC32=948b49d3 +build.xml.data.CRC32=04817f3c build.xml.script.CRC32=a6f5a733 build.xml.stylesheet.CRC32=651128d4@1.68.1.1 # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. -nbproject/build-impl.xml.data.CRC32=948b49d3 -nbproject/build-impl.xml.script.CRC32=4bfe912f +nbproject/build-impl.xml.data.CRC32=04817f3c +nbproject/build-impl.xml.script.CRC32=7f4d7ef9 nbproject/build-impl.xml.stylesheet.CRC32=99ea4b56@1.68.1.1 diff --git a/nbproject/project.properties b/nbproject/project.properties index 0223e42f..b22f6a39 100644 --- a/nbproject/project.properties +++ b/nbproject/project.properties @@ -48,7 +48,8 @@ javac.classpath=\ ${file.reference.jcore.jar}:\ ${file.reference.log4j-api-2.3.jar}:\ ${file.reference.log4j-core-2.3.jar}:\ - ${file.reference.commons-codec-1.10.jar} + ${file.reference.commons-codec-1.10.jar}:\ + ${libs.MySQLDriver.classpath} # Space-separated list of extra javac options javac.compilerargs=-Xlint:unchecked javac.debug=true diff --git a/nbproject/project.xml b/nbproject/project.xml index 5d68967f..d97b82e6 100644 --- a/nbproject/project.xml +++ b/nbproject/project.xml @@ -22,6 +22,10 @@ ${file.reference.commons-codec-1.10.jar} WEB-INF/lib + + ${libs.MySQLDriver.classpath} + WEB-INF/lib + diff --git a/src/java/org/mxchange/pizzaapplication/application/PizzaServiceApplication.java b/src/java/org/mxchange/pizzaapplication/application/PizzaServiceApplication.java index b81e142a..f97bad78 100644 --- a/src/java/org/mxchange/pizzaapplication/application/PizzaServiceApplication.java +++ b/src/java/org/mxchange/pizzaapplication/application/PizzaServiceApplication.java @@ -1171,7 +1171,10 @@ public class PizzaServiceApplication extends BasePizzaServiceSystem implements P try { // Init properties this.initProperties(); - } catch (final IOException ex) { + + // And frontends + this.initDatabaseFrontends(); + } catch (final IOException | UnsupportedDatabaseBackendException | SQLException ex) { // Abort here this.abortProgramWithException(ex); }