From b6d848eff00fd87340ac6c5d39904cfb3390e742 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Meier?= Date: Thu, 24 Oct 2024 12:11:31 +0200 Subject: [PATCH] More dependency updates and cleanups. --- MetFragLib/pom.xml | 4 ++-- MetFragRest/pom.xml | 21 +++++++++------- .../metfragrest/MetFragRestController.java | 2 +- .../metfragweb/controller/MetFragWebBean.java | 6 ++--- .../src/main/webapp/WEB-INF/faces-config.xml | 11 ++++----- MetFragWeb/src/main/webapp/WEB-INF/web.xml | 9 ++++--- .../src/main/webapp/comparespectrad3js.xhtml | 12 +++++----- .../includes/candiateScoreDistribution.xhtml | 15 ++++++------ .../includes/candidateFiltersPrime.xhtml | 13 +++++----- .../candidateFiltersScoresPrime.xhtml | 13 +++++----- .../includes/candidateScoresPrime.xhtml | 15 ++++++------ .../includes/comparespectraD3JSInclude.xhtml | 15 ++++++------ .../main/webapp/includes/databasePrime.xhtml | 15 ++++++------ .../webapp/includes/dialogs/aboutDialog.xhtml | 13 +++++----- .../dialogs/downloadCandidatesDialog.xhtml | 11 +++++---- .../dialogs/downloadParametersDialog.xhtml | 11 +++++---- .../dialogs/downloadResultsDialog.xhtml | 11 +++++---- .../dialogs/expiredSessionDialog.xhtml | 11 +++++---- .../dialogs/feedbackButtonDialog.xhtml | 11 +++++---- .../includes/dialogs/feedbackDialog.xhtml | 6 ++--- .../dialogs/fragmentsViewDialog.xhtml | 13 +++++----- .../processCandidatesProgressDialog.xhtml | 11 +++++---- .../retrieveCandidatesProgressDialog.xhtml | 11 +++++---- .../includes/dialogs/scoresViewDialog.xhtml | 13 +++++----- .../includes/dialogs/spectrumViewDialog.xhtml | 11 +++++---- .../includes/errorpages/viewExpired.xhtml | 11 ++++++--- .../src/main/webapp/includes/footer.xhtml | 9 +++---- .../webapp/includes/fragmentationPrime.xhtml | 15 ++++++------ .../src/main/webapp/includes/header.xhtml | 9 +++---- .../main/webapp/includes/landingPage.xhtml | 15 ++++++------ .../src/main/webapp/includes/main.xhtml | 15 ++++++------ .../main/webapp/includes/resultCluster.xhtml | 15 ++++++------ .../main/webapp/includes/resultTable.xhtml | 15 ++++++------ .../src/main/webapp/includes/statistics.xhtml | 15 ++++++------ .../tooltips/databasePrimeTooltips.xhtml | 11 +++++---- .../tooltips/filterPrimeTooltips.xhtml | 11 +++++---- .../tooltips/fragmentationPrimeTooltips.xhtml | 11 +++++---- .../tooltips/scorePrimeTooltips.xhtml | 11 +++++---- .../webapp/includes/uploadParameters.xhtml | 15 ++++++------ MetFragWeb/src/main/webapp/index.xhtml | 11 +++++---- MetFragWeb/src/main/webapp/landing.xhtml | 11 +++++---- .../src/main/webapp/resources/css/style.css | 24 ------------------- MetFragWeb/src/main/webapp/upload.xhtml | 11 +++++---- pom.xml | 6 ++--- 44 files changed, 270 insertions(+), 255 deletions(-) diff --git a/MetFragLib/pom.xml b/MetFragLib/pom.xml index 36da6b03..23c4197c 100644 --- a/MetFragLib/pom.xml +++ b/MetFragLib/pom.xml @@ -43,8 +43,8 @@ postgresql - mysql - mysql-connector-java + com.mysql + mysql-connector-j net.sourceforge.jexcelapi diff --git a/MetFragRest/pom.xml b/MetFragRest/pom.xml index 89e078fc..b51f9671 100644 --- a/MetFragRest/pom.xml +++ b/MetFragRest/pom.xml @@ -44,15 +44,20 @@ org.springframework.boot spring-boot-starter-hateoas - - + jakarta.platform + jakarta.jakartaee-api + compile + + + diff --git a/MetFragRest/src/main/java/de/ipbhalle/metfragrest/MetFragRestController.java b/MetFragRest/src/main/java/de/ipbhalle/metfragrest/MetFragRestController.java index 33be1b0c..28100977 100644 --- a/MetFragRest/src/main/java/de/ipbhalle/metfragrest/MetFragRestController.java +++ b/MetFragRest/src/main/java/de/ipbhalle/metfragrest/MetFragRestController.java @@ -13,7 +13,7 @@ import java.util.zip.ZipEntry; import java.util.zip.ZipOutputStream; -import javax.servlet.http.HttpServletResponse; +import jakarta.servlet.http.HttpServletResponse; import org.apache.log4j.Logger; import org.apache.tomcat.util.http.fileupload.FileUtils; diff --git a/MetFragWeb/src/main/java/de/ipbhalle/metfragweb/controller/MetFragWebBean.java b/MetFragWeb/src/main/java/de/ipbhalle/metfragweb/controller/MetFragWebBean.java index be4628f9..f5664e0d 100644 --- a/MetFragWeb/src/main/java/de/ipbhalle/metfragweb/controller/MetFragWebBean.java +++ b/MetFragWeb/src/main/java/de/ipbhalle/metfragweb/controller/MetFragWebBean.java @@ -232,7 +232,6 @@ private void generateFolders() { catch(Exception e) { e.printStackTrace(); System.err.println("error generating session folders"); - return; } } @@ -339,7 +338,6 @@ else if(!PositiveDoubleValueValidator.check(this.beanSettingsContainer.getMeasur } catch(Exception e) { e.printStackTrace(); this.errorMessages.setMessage("inputMeasuredMassError", "Error: Error calculating mass value."); - return; } } @@ -3157,7 +3155,7 @@ public void submitFeedbackListener(ActionEvent actionEvent) { FileStorer fileStorer = new FileStorer(); try { StreamedContent zipContent = this.beanSettingsContainer.getUserOutputDataHandler().getDownloadParameters(this.errorMessages, null); - zipFileToAttach = fileStorer.saveUploadedFile(zipContent.getStream(), feedbackFolder.getAbsoluteFile(), "MetFragWeb_Parameters.zip"); + zipFileToAttach = fileStorer.saveUploadedFile(zipContent.getStream().get(), feedbackFolder.getAbsoluteFile(), "MetFragWeb_Parameters.zip"); addMsg += "Zip: yes" + ls; } catch(Exception e) { @@ -3242,7 +3240,7 @@ public void submitFeedbackListener(ActionEvent actionEvent) { } public String getServerName() { - String hostname = ""; + String hostname; try { hostname = InetAddress.getLocalHost().getHostName(); } catch (UnknownHostException e) { diff --git a/MetFragWeb/src/main/webapp/WEB-INF/faces-config.xml b/MetFragWeb/src/main/webapp/WEB-INF/faces-config.xml index 7418148a..1729888d 100644 --- a/MetFragWeb/src/main/webapp/WEB-INF/faces-config.xml +++ b/MetFragWeb/src/main/webapp/WEB-INF/faces-config.xml @@ -1,9 +1,8 @@ - - + + metFragBean de.ipbhalle.metfragweb.controller.MetFragWebBean diff --git a/MetFragWeb/src/main/webapp/WEB-INF/web.xml b/MetFragWeb/src/main/webapp/WEB-INF/web.xml index a8030641..77947b24 100644 --- a/MetFragWeb/src/main/webapp/WEB-INF/web.xml +++ b/MetFragWeb/src/main/webapp/WEB-INF/web.xml @@ -1,9 +1,8 @@ - + MetFragWeb index.xhtml diff --git a/MetFragWeb/src/main/webapp/comparespectrad3js.xhtml b/MetFragWeb/src/main/webapp/comparespectrad3js.xhtml index 312f5cc4..bd62939c 100644 --- a/MetFragWeb/src/main/webapp/comparespectrad3js.xhtml +++ b/MetFragWeb/src/main/webapp/comparespectrad3js.xhtml @@ -1,12 +1,12 @@ - + + + xmlns:ui="http://xmlns.jcp.org/jsf/facelets" + xmlns:h="http://xmlns.jcp.org/jsf/html"> <ui:insert name="title">MetFrag</ui:insert> - + + + + xmlns:ui="http://xmlns.jcp.org/jsf/facelets" + xmlns:h="http://xmlns.jcp.org/jsf/html"> diff --git a/MetFragWeb/src/main/webapp/includes/candidateFiltersPrime.xhtml b/MetFragWeb/src/main/webapp/includes/candidateFiltersPrime.xhtml index e761a280..90b9ab94 100644 --- a/MetFragWeb/src/main/webapp/includes/candidateFiltersPrime.xhtml +++ b/MetFragWeb/src/main/webapp/includes/candidateFiltersPrime.xhtml @@ -1,13 +1,14 @@ - + + + xmlns:ui="http://xmlns.jcp.org/jsf/facelets" + xmlns:h="http://xmlns.jcp.org/jsf/html"> + + + xmlns:ui="http://xmlns.jcp.org/jsf/facelets" + xmlns:h="http://xmlns.jcp.org/jsf/html">
diff --git a/MetFragWeb/src/main/webapp/includes/candidateScoresPrime.xhtml b/MetFragWeb/src/main/webapp/includes/candidateScoresPrime.xhtml index c8435866..8d546db6 100644 --- a/MetFragWeb/src/main/webapp/includes/candidateScoresPrime.xhtml +++ b/MetFragWeb/src/main/webapp/includes/candidateScoresPrime.xhtml @@ -1,14 +1,15 @@ - + + + xmlns:ui="http://xmlns.jcp.org/jsf/facelets" + xmlns:h="http://xmlns.jcp.org/jsf/html"> diff --git a/MetFragWeb/src/main/webapp/includes/comparespectraD3JSInclude.xhtml b/MetFragWeb/src/main/webapp/includes/comparespectraD3JSInclude.xhtml index 49767624..c069949d 100644 --- a/MetFragWeb/src/main/webapp/includes/comparespectraD3JSInclude.xhtml +++ b/MetFragWeb/src/main/webapp/includes/comparespectraD3JSInclude.xhtml @@ -1,15 +1,16 @@ - + + + xmlns:ui="http://xmlns.jcp.org/jsf/facelets" + xmlns:h="http://xmlns.jcp.org/jsf/html">