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">