diff --git a/jetty-slf4j-impl/src/main/java/org/eclipse/jetty/logging/StacklessLogging.java b/jetty-slf4j-impl/src/main/java/org/eclipse/jetty/logging/StacklessLogging.java
index 0cab4436055..8635130b4b7 100644
--- a/jetty-slf4j-impl/src/main/java/org/eclipse/jetty/logging/StacklessLogging.java
+++ b/jetty-slf4j-impl/src/main/java/org/eclipse/jetty/logging/StacklessLogging.java
@@ -61,6 +61,9 @@ public class StacklessLogging implements AutoCloseable
public StacklessLogging(Class>... classesToSquelch)
{
+ if (loggerFactory == null)
+ return;
+
for (Class> clazz : classesToSquelch)
{
JettyLogger jettyLogger = loggerFactory.getJettyLogger(clazz.getName());
@@ -77,6 +80,9 @@ public class StacklessLogging implements AutoCloseable
public StacklessLogging(Package... packagesToSquelch)
{
+ if (loggerFactory == null)
+ return;
+
for (Package pkg : packagesToSquelch)
{
JettyLogger jettyLogger = loggerFactory.getJettyLogger(pkg.getName());
@@ -93,6 +99,9 @@ public class StacklessLogging implements AutoCloseable
public StacklessLogging(Logger... logs)
{
+ if (loggerFactory == null)
+ return;
+
for (Logger log : logs)
{
if (log instanceof JettyLogger && !log.isDebugEnabled())
diff --git a/pom.xml b/pom.xml
index 36485c3e64f..c4fd75f7119 100644
--- a/pom.xml
+++ b/pom.xml
@@ -340,7 +340,7 @@
4.0.3
UTF-8
src/it/settings.xml
- 2.0.5
+ 2.0.9
4.8.2.0
2.1.1.RELEASE
0
diff --git a/tests/test-integration/pom.xml b/tests/test-integration/pom.xml
index ac770efbd20..d64effa4095 100644
--- a/tests/test-integration/pom.xml
+++ b/tests/test-integration/pom.xml
@@ -33,6 +33,15 @@
jetty-home
${project.version}
pom
+
+
+
+ org.eclipse.jetty
+ infinispan-remote-query
+
+
org.eclipse.jetty
diff --git a/tests/test-integration/src/test/java/org/eclipse/jetty/test/DeploymentErrorTest.java b/tests/test-integration/src/test/java/org/eclipse/jetty/test/DeploymentErrorTest.java
index e3102dc2b8e..0a947f3ce4b 100644
--- a/tests/test-integration/src/test/java/org/eclipse/jetty/test/DeploymentErrorTest.java
+++ b/tests/test-integration/src/test/java/org/eclipse/jetty/test/DeploymentErrorTest.java
@@ -47,6 +47,7 @@ import org.eclipse.jetty.toolchain.test.IO;
import org.eclipse.jetty.toolchain.test.MavenTestingUtils;
import org.eclipse.jetty.toolchain.test.jupiter.WorkDir;
import org.eclipse.jetty.toolchain.test.jupiter.WorkDirExtension;
+import org.eclipse.jetty.util.component.LifeCycle;
import org.eclipse.jetty.util.resource.PathResource;
import org.eclipse.jetty.webapp.AbstractConfiguration;
import org.eclipse.jetty.webapp.Configuration;
@@ -126,7 +127,7 @@ public class DeploymentErrorTest
{
if (stacklessLogging != null)
stacklessLogging.close();
- server.stop();
+ LifeCycle.stop(server);
}
private void copyBadApp(String sourceXml, Path docroots)