diff --git a/appserver/extras/payara-micro/payara-micro-core/src/main/java/fish/payara/micro/impl/PayaraMicroImpl.java b/appserver/extras/payara-micro/payara-micro-core/src/main/java/fish/payara/micro/impl/PayaraMicroImpl.java index 0108c91326a..7e32b0aeb4b 100644 --- a/appserver/extras/payara-micro/payara-micro-core/src/main/java/fish/payara/micro/impl/PayaraMicroImpl.java +++ b/appserver/extras/payara-micro/payara-micro-core/src/main/java/fish/payara/micro/impl/PayaraMicroImpl.java @@ -90,6 +90,7 @@ import java.io.FileNotFoundException; import java.io.OutputStream; import java.util.Arrays; +import java.util.Collections; import java.util.concurrent.TimeUnit; import java.util.logging.Formatter; import java.util.logging.Handler; @@ -1436,7 +1437,7 @@ private void deployAll() throws GlassFishException { // Get all files in the directory, and sort them by file type List deploymentDirEntries = Arrays.asList(deploymentRoot.listFiles()); - deploymentDirEntries.sort(new DeploymentComparator()); + Collections.sort(deploymentDirEntries, new DeploymentComparator()); for (File entry : deploymentDirEntries) { String entryPath = entry.getAbsolutePath();