diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml
index c53d0effdfc..afcd47eea22 100644
--- a/.github/workflows/codeql-analysis.yml
+++ b/.github/workflows/codeql-analysis.yml
@@ -74,7 +74,7 @@ jobs:
- name: Set up Maven
run:
- mvn -e -B -V org.apache.maven.plugins:maven-wrapper-plugin:3.1.0:wrapper "-Dmaven=3.9.4"
+ mvn -e -B -V org.apache.maven.plugins:maven-wrapper-plugin:3.1.0:wrapper "-Dmaven=3.9.6"
- name: Clean install dependencies and build
env:
diff --git a/jetty-core/jetty-session/src/test/java/org/eclipse/jetty/session/AbstractSessionDataStoreTest.java b/jetty-core/jetty-session/src/test/java/org/eclipse/jetty/session/AbstractSessionDataStoreTest.java
index 439bc5feb91..127a06e3f49 100644
--- a/jetty-core/jetty-session/src/test/java/org/eclipse/jetty/session/AbstractSessionDataStoreTest.java
+++ b/jetty-core/jetty-session/src/test/java/org/eclipse/jetty/session/AbstractSessionDataStoreTest.java
@@ -126,7 +126,7 @@ public abstract class AbstractSessionDataStoreTest
throws Exception
{
InputStream is = Thread.currentThread().getContextClassLoader().getResourceAsStream("Foo.clazz");
- extraClasses = new File(MavenTestingUtils.getTargetDir(), "extraClasses");
+ extraClasses = new File(MavenTestingUtils.getTargetPath().toFile(), "extraClasses");
extraClasses.mkdirs();
File fooclass = new File(extraClasses, "Foo.class");
IO.copy(is, new FileOutputStream(fooclass));
@@ -199,20 +199,15 @@ public abstract class AbstractSessionDataStoreTest
//before serialization
final SessionData finalData = data;
- Runnable r = new Runnable()
+ Runnable r = () ->
{
-
- @Override
- public void run()
+ try
{
- try
- {
- store.store("aaa1", finalData);
- }
- catch (Exception e)
- {
- fail(e);
- }
+ store.store("aaa1", finalData);
+ }
+ catch (Exception e)
+ {
+ fail(e);
}
};
@@ -304,20 +299,15 @@ public abstract class AbstractSessionDataStoreTest
//before serialization
final SessionData finalData = data;
- Runnable r = new Runnable()
+ Runnable r = () ->
{
-
- @Override
- public void run()
+ try
{
- try
- {
- store.store("aaa3", finalData);
- }
- catch (Exception e)
- {
- fail(e);
- }
+ store.store("aaa3", finalData);
+ }
+ catch (Exception e)
+ {
+ fail(e);
}
};
diff --git a/jetty-core/jetty-tests/jetty-test-client-transports/src/test/java/org/eclipse/jetty/test/client/transport/ServerTimeoutsTest.java b/jetty-core/jetty-tests/jetty-test-client-transports/src/test/java/org/eclipse/jetty/test/client/transport/ServerTimeoutsTest.java
index 98bfdd5396e..dc9e7b3eb83 100644
--- a/jetty-core/jetty-tests/jetty-test-client-transports/src/test/java/org/eclipse/jetty/test/client/transport/ServerTimeoutsTest.java
+++ b/jetty-core/jetty-tests/jetty-test-client-transports/src/test/java/org/eclipse/jetty/test/client/transport/ServerTimeoutsTest.java
@@ -32,6 +32,7 @@ import org.eclipse.jetty.server.Handler;
import org.eclipse.jetty.server.Request;
import org.eclipse.jetty.server.Response;
import org.eclipse.jetty.util.Callback;
+import org.junit.jupiter.api.Tag;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.Arguments;
import org.junit.jupiter.params.provider.MethodSource;
@@ -65,6 +66,7 @@ public class ServerTimeoutsTest extends AbstractTest
@ParameterizedTest
@MethodSource("transportsAndIdleTimeoutListener")
+ @Tag("flaky")
public void testIdleTimeout(Transport transport, boolean addIdleTimeoutListener) throws Exception
{
AtomicBoolean listenerCalled = new AtomicBoolean();
@@ -94,6 +96,7 @@ public class ServerTimeoutsTest extends AbstractTest
@ParameterizedTest
@MethodSource("transportsAndIdleTimeoutListener")
+ @Tag("flaky")
public void testIdleTimeoutWithDemand(Transport transport, boolean addIdleTimeoutListener) throws Exception
{
AtomicBoolean listenerCalled = new AtomicBoolean();
diff --git a/jetty-ee10/jetty-ee10-tests/jetty-ee10-test-sessions/jetty-ee10-test-sessions-infinispan/pom.xml b/jetty-ee10/jetty-ee10-tests/jetty-ee10-test-sessions/jetty-ee10-test-sessions-infinispan/pom.xml
index f779b96347a..3bf276b00ed 100644
--- a/jetty-ee10/jetty-ee10-tests/jetty-ee10-test-sessions/jetty-ee10-test-sessions-infinispan/pom.xml
+++ b/jetty-ee10/jetty-ee10-tests/jetty-ee10-test-sessions/jetty-ee10-test-sessions-infinispan/pom.xml
@@ -10,10 +10,17 @@
EE10 :: Tests :: Sessions :: Infinispan
${project.groupId}.sessions.infinispan
-
- infinispan/server
+
+ commons-codec
+ commons-codec
+
+
+ org.hibernate.search
+ hibernate-search-mapper-pojo-base
+ 7.1.0.Final
+
com.google.code.gson
gson
@@ -21,8 +28,9 @@
test
- commons-codec
- commons-codec
+ org.apache.lucene
+ lucene-core
+ ${lucene.version}
test
@@ -77,6 +85,11 @@
jetty-test-helper
test
+
+ org.hibernate.search
+ hibernate-search-engine
+ test
+
org.infinispan
infinispan-client-hotrod
diff --git a/jetty-ee9/jetty-ee9-tests/jetty-ee9-test-sessions/jetty-ee9-test-sessions-infinispan/pom.xml b/jetty-ee9/jetty-ee9-tests/jetty-ee9-test-sessions/jetty-ee9-test-sessions-infinispan/pom.xml
index c7cc056a98f..43f0eccbcf9 100644
--- a/jetty-ee9/jetty-ee9-tests/jetty-ee9-test-sessions/jetty-ee9-test-sessions-infinispan/pom.xml
+++ b/jetty-ee9/jetty-ee9-tests/jetty-ee9-test-sessions/jetty-ee9-test-sessions-infinispan/pom.xml
@@ -11,8 +11,6 @@
EE9 :: Tests :: Sessions :: Infinispan
${project.groupId}.sessions.infinispan
-
- infinispan/server
diff --git a/jetty-integrations/jetty-infinispan/jetty-infinispan-common/pom.xml b/jetty-integrations/jetty-infinispan/jetty-infinispan-common/pom.xml
index 163a91bddc0..45be4e6eac4 100644
--- a/jetty-integrations/jetty-infinispan/jetty-infinispan-common/pom.xml
+++ b/jetty-integrations/jetty-infinispan/jetty-infinispan-common/pom.xml
@@ -16,6 +16,10 @@
org.eclipse.jetty
jetty-session
+
+ org.hibernate.search
+ hibernate-search-mapper-pojo-base
+
org.infinispan
infinispan-core
diff --git a/jetty-integrations/jetty-infinispan/jetty-infinispan-common/src/main/java/org/eclipse/jetty/session/infinispan/InfinispanSessionData.java b/jetty-integrations/jetty-infinispan/jetty-infinispan-common/src/main/java/org/eclipse/jetty/session/infinispan/InfinispanSessionData.java
index 6657df9c307..8f4becb2019 100644
--- a/jetty-integrations/jetty-infinispan/jetty-infinispan-common/src/main/java/org/eclipse/jetty/session/infinispan/InfinispanSessionData.java
+++ b/jetty-integrations/jetty-infinispan/jetty-infinispan-common/src/main/java/org/eclipse/jetty/session/infinispan/InfinispanSessionData.java
@@ -21,6 +21,9 @@ import java.util.Map;
import org.eclipse.jetty.session.SessionData;
import org.eclipse.jetty.util.ClassLoadingObjectInputStream;
+import org.hibernate.search.engine.backend.types.Searchable;
+import org.hibernate.search.mapper.pojo.mapping.definition.annotation.GenericField;
+import org.hibernate.search.mapper.pojo.mapping.definition.annotation.Indexed;
/**
* InfinispanSessionData
@@ -32,6 +35,7 @@ import org.eclipse.jetty.util.ClassLoadingObjectInputStream;
* pool and thus these threads have no knowledge of the correct classloader to
* use.
*/
+@Indexed
public class InfinispanSessionData extends SessionData
{
protected byte[] _serializedAttributes;
@@ -47,6 +51,13 @@ public class InfinispanSessionData extends SessionData
super(id, cpath, vhost, created, accessed, lastAccessed, maxInactiveMs, attributes);
}
+ @Override
+ @GenericField(searchable = Searchable.YES)
+ public long getExpiry()
+ {
+ return super.getExpiry();
+ }
+
public byte[] getSerializedAttributes()
{
return _serializedAttributes;
diff --git a/jetty-integrations/jetty-infinispan/jetty-infinispan-common/src/main/java/org/eclipse/jetty/session/infinispan/InfinispanSessionLegacyConverter.java b/jetty-integrations/jetty-infinispan/jetty-infinispan-common/src/main/java/org/eclipse/jetty/session/infinispan/InfinispanSessionLegacyConverter.java
index f7eaf0e7ddd..bd8545f902d 100644
--- a/jetty-integrations/jetty-infinispan/jetty-infinispan-common/src/main/java/org/eclipse/jetty/session/infinispan/InfinispanSessionLegacyConverter.java
+++ b/jetty-integrations/jetty-infinispan/jetty-infinispan-common/src/main/java/org/eclipse/jetty/session/infinispan/InfinispanSessionLegacyConverter.java
@@ -21,7 +21,7 @@ import org.eclipse.jetty.session.SessionData;
import org.infinispan.client.hotrod.RemoteCache;
import org.infinispan.client.hotrod.RemoteCacheManager;
import org.infinispan.client.hotrod.configuration.ConfigurationBuilder;
-import org.infinispan.client.hotrod.marshall.ProtoStreamMarshaller;
+import org.infinispan.commons.marshall.ProtoStreamMarshaller;
import org.infinispan.protostream.FileDescriptorSource;
import org.infinispan.protostream.SerializationContext;
@@ -55,11 +55,12 @@ public class InfinispanSessionLegacyConverter
Properties properties = new Properties();
ConfigurationBuilder clientBuilder = new ConfigurationBuilder();
- clientBuilder.withProperties(properties).addServer().host(host).marshaller(new ProtoStreamMarshaller());
+ ProtoStreamMarshaller protoStreamMarshaller = new ProtoStreamMarshaller();
+ clientBuilder.withProperties(properties).addServer().host(host).marshaller(protoStreamMarshaller);
_protoManager = new RemoteCacheManager(clientBuilder.build());
FileDescriptorSource fds = new FileDescriptorSource();
fds.addProtoFiles("/session.proto");
- SerializationContext serCtx = ProtoStreamMarshaller.getSerializationContext(_protoManager);
+ SerializationContext serCtx = protoStreamMarshaller.getSerializationContext();
serCtx.registerProtoFiles(fds);
serCtx.registerMarshaller(new SessionDataMarshaller());
_protoCache = _protoManager.getCache(cacheName);
diff --git a/jetty-integrations/jetty-infinispan/jetty-infinispan-embedded-query/src/main/config-template/etc/sessions/infinispan/infinispan-embedded-query.xml b/jetty-integrations/jetty-infinispan/jetty-infinispan-embedded-query/src/main/config-template/etc/sessions/infinispan/infinispan-embedded-query.xml
index 5828fc2fa1a..839575f394d 100644
--- a/jetty-integrations/jetty-infinispan/jetty-infinispan-embedded-query/src/main/config-template/etc/sessions/infinispan/infinispan-embedded-query.xml
+++ b/jetty-integrations/jetty-infinispan/jetty-infinispan-embedded-query/src/main/config-template/etc/sessions/infinispan/infinispan-embedded-query.xml
@@ -7,35 +7,7 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- expiry
-
-
-
-
-
-
-
-
-
-
-
-
+
@@ -50,27 +22,16 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
-
+
[
jetty-query-sessions
diff --git a/jetty-integrations/jetty-infinispan/jetty-infinispan-remote-query/src/main/config-template/etc/sessions/infinispan/infinispan-remote-query.xml b/jetty-integrations/jetty-infinispan/jetty-infinispan-remote-query/src/main/config-template/etc/sessions/infinispan/infinispan-remote-query.xml
index d9b9f50a6db..89a4a2af503 100644
--- a/jetty-integrations/jetty-infinispan/jetty-infinispan-remote-query/src/main/config-template/etc/sessions/infinispan/infinispan-remote-query.xml
+++ b/jetty-integrations/jetty-infinispan/jetty-infinispan-remote-query/src/main/config-template/etc/sessions/infinispan/infinispan-remote-query.xml
@@ -6,20 +6,7 @@
-
-
- org.eclipse.jetty.session.infinispan.InfinispanSessionData
-
-
-
- expiry
-
-
-
-
-
-
-
+
@@ -29,10 +16,6 @@
-
-
- ]
-
diff --git a/pom.xml b/pom.xml
index 21b8df58e8e..2a601f896ea 100644
--- a/pom.xml
+++ b/pom.xml
@@ -189,9 +189,11 @@
1.0.11
2.2
5.3.6
- 11.0.14.Final
- 4.6.5.Final
- 11.0.19.Final
+ 7.1.0.Final
+ infinispan/server
+ 15.0.1.Final-1
+ 5.0.2.Final
+ 15.0.1.Final
1.2
false
false
@@ -234,6 +236,7 @@
${project.build.directory}/local-repo
2.23.1
1.5.3
+ 9.9.2
10.3.6
3.3.3
0.13.1
@@ -270,7 +273,7 @@
2.2.3
3.2.20
3.12.14
- 4.1.100.Final
+ 4.1.107.Final
0.9.1
8.1.0
8.0.0
@@ -321,6 +324,13 @@
pom
import
+
+ org.hibernate.search
+ hibernate-search-bom
+ ${hibernate.search.version}
+ pom
+ import
+
org.infinispan
infinispan-bom
@@ -536,6 +546,11 @@
maven-settings
${maven.deps.version}
+
+ org.apache.maven.plugin-tools
+ maven-plugin-annotations
+ ${maven.plugin-tools.version}
+
org.apache.maven.plugin-tools
maven-plugin-tools-api
@@ -904,6 +919,11 @@
jetty-test-helper
${jetty.test.version}
+
+ org.eclipse.jetty.toolchain
+ jetty-xhtml-schemas
+ ${jetty.xhtml.schemas-version}
+
org.eclipse.jetty.websocket
jetty-websocket-core-client
@@ -1094,6 +1114,16 @@
org.osgi.util.function
${org.osgi.util.function.version}
+
+ org.osgi
+ org.osgi.util.measurement
+ ${osgi-util-measurement-version}
+
+
+ org.osgi
+ org.osgi.util.position
+ ${osgi-util-position-version}
+
org.osgi
org.osgi.util.promise
@@ -1104,6 +1134,11 @@
org.osgi.util.tracker
${osgi-util-tracker-version}
+
+ org.osgi
+ org.osgi.util.xml
+ ${osgi-util-xml-version}
+
org.osgi
osgi.annotation
@@ -1152,76 +1187,44 @@
- org.apache.maven.plugin-tools
- maven-plugin-annotations
- ${maven.plugin-tools.version}
- provided
-
-
- org.eclipse.jetty.toolchain
- jetty-xhtml-schemas
- ${jetty.xhtml.schemas-version}
- test
-
-
- org.osgi
- org.osgi.util.measurement
- ${osgi-util-measurement-version}
- test
-
-
- org.osgi
- org.osgi.util.position
- ${osgi-util-position-version}
- test
-
-
- org.osgi
- org.osgi.util.xml
- ${osgi-util-xml-version}
- test
+ org.wildfly.common
+ wildfly-common
+ 1.7.0.Final
org.wildfly.security
wildfly-elytron-sasl-digest
- 2.2.2.Final
- test
+ 2.3.1.Final
org.wildfly.security
wildfly-elytron-sasl-external
- 2.2.2.Final
- test
+ 2.3.1.Final
org.wildfly.security
wildfly-elytron-sasl-gs2
- 2.2.2.Final
- test
+ 2.3.1.Final
org.wildfly.security
wildfly-elytron-sasl-gssapi
- 2.2.2.Final
- test
+ 2.3.1.Final
org.wildfly.security
wildfly-elytron-sasl-oauth2
- 2.2.2.Final
- test
+ 2.3.1.Final
org.wildfly.security
wildfly-elytron-sasl-plain
- 2.2.2.Final
- test
+ 2.3.1.Final
org.wildfly.security
wildfly-elytron-sasl-scram
- 2.2.2.Final
- test
+ 2.3.1.Final
diff --git a/tests/jetty-test-session-common/pom.xml b/tests/jetty-test-session-common/pom.xml
index 0eabecda279..daffc94fdfc 100644
--- a/tests/jetty-test-session-common/pom.xml
+++ b/tests/jetty-test-session-common/pom.xml
@@ -70,13 +70,6 @@
compile
true
-
- org.hibernate
- hibernate-search-engine
- 5.10.7.Final
- compile
- true
-
org.infinispan
infinispan-client-hotrod
@@ -144,6 +137,11 @@
testcontainers
compile
+
+ org.hibernate.search
+ hibernate-search-engine
+ test
+
diff --git a/tests/jetty-test-session-common/src/main/java/org/eclipse/jetty/session/test/tools/InfinispanTestSupport.java b/tests/jetty-test-session-common/src/main/java/org/eclipse/jetty/session/test/tools/InfinispanTestSupport.java
index 90ea50abde6..1fa7785d2f6 100644
--- a/tests/jetty-test-session-common/src/main/java/org/eclipse/jetty/session/test/tools/InfinispanTestSupport.java
+++ b/tests/jetty-test-session-common/src/main/java/org/eclipse/jetty/session/test/tools/InfinispanTestSupport.java
@@ -22,11 +22,11 @@ import org.eclipse.jetty.session.SessionData;
import org.eclipse.jetty.session.infinispan.InfinispanSerializationContextInitializer;
import org.eclipse.jetty.session.infinispan.InfinispanSessionData;
import org.eclipse.jetty.toolchain.test.FS;
-import org.hibernate.search.cfg.Environment;
-import org.hibernate.search.cfg.SearchMapping;
import org.infinispan.Cache;
import org.infinispan.configuration.cache.ConfigurationBuilder;
import org.infinispan.configuration.cache.ConfigurationChildBuilder;
+import org.infinispan.configuration.cache.IndexStorage;
+import org.infinispan.configuration.cache.SingleFileStoreConfigurationBuilder;
import org.infinispan.configuration.cache.StorageType;
import org.infinispan.configuration.global.GlobalConfigurationBuilder;
import org.infinispan.eviction.EvictionStrategy;
@@ -92,12 +92,6 @@ public class InfinispanTestSupport
Path tmpdir = root.resolve("tmp");
FS.ensureDirExists(indexesDir);
- SearchMapping mapping = new SearchMapping();
- mapping.entity(SessionData.class).indexed().providedId().property("expiry", ElementType.FIELD).field();
- Properties properties = new Properties();
- properties.put(Environment.MODEL_MAPPING, mapping);
- properties.put("hibernate.search.default.indexBase", indexesDir.toString());
- properties.put("hibernate.cache.infinispan.entity.eviction.strategy", "NONE");
if (_manager.cacheExists(_name))
{
@@ -108,14 +102,16 @@ public class InfinispanTestSupport
{
ConfigurationChildBuilder b = _builder
.indexing()
- .addIndexedEntity(SessionData.class)
- .withProperties(properties)
+ .enable()
+ .addIndexedEntity(InfinispanSessionData.class)
+ .storage(IndexStorage.FILESYSTEM)
+ .path(tmpdir.toFile().getAbsolutePath())
.memory()
.whenFull(EvictionStrategy.NONE)
.persistence()
- .addSingleFileStore()
- .segmented(false)
- .location(tmpdir.toFile().getAbsolutePath());
+ .addStore(SingleFileStoreConfigurationBuilder.class)
+ .location(System.getProperty("java.io.tmpdir"));
+
if (_serializeSessionData)
{
b = b.memory().storage(StorageType.HEAP)
@@ -127,8 +123,9 @@ public class InfinispanTestSupport
else
{
ConfigurationChildBuilder b = _builder.indexing()
- .withProperties(properties)
- .addIndexedEntity(SessionData.class);
+ .enable()
+ .storage(IndexStorage.LOCAL_HEAP)
+ .addIndexedEntity(InfinispanSessionData.class);
if (_serializeSessionData)
{
diff --git a/tests/jetty-test-session-common/src/main/java/org/eclipse/jetty/session/test/tools/RemoteInfinispanTestSupport.java b/tests/jetty-test-session-common/src/main/java/org/eclipse/jetty/session/test/tools/RemoteInfinispanTestSupport.java
index 38d6bfbb35f..c9fcefa9b36 100644
--- a/tests/jetty-test-session-common/src/main/java/org/eclipse/jetty/session/test/tools/RemoteInfinispanTestSupport.java
+++ b/tests/jetty-test-session-common/src/main/java/org/eclipse/jetty/session/test/tools/RemoteInfinispanTestSupport.java
@@ -26,14 +26,12 @@ import org.eclipse.jetty.session.infinispan.InfinispanSerializationContextInitia
import org.eclipse.jetty.session.infinispan.InfinispanSessionData;
import org.eclipse.jetty.session.infinispan.SessionDataMarshaller;
import org.eclipse.jetty.util.IO;
-import org.hibernate.search.cfg.Environment;
-import org.hibernate.search.cfg.SearchMapping;
import org.infinispan.client.hotrod.RemoteCache;
import org.infinispan.client.hotrod.RemoteCacheManager;
import org.infinispan.client.hotrod.configuration.ClientIntelligence;
import org.infinispan.client.hotrod.configuration.Configuration;
import org.infinispan.client.hotrod.configuration.ConfigurationBuilder;
-import org.infinispan.commons.configuration.XMLStringConfiguration;
+import org.infinispan.commons.configuration.StringConfiguration;
import org.infinispan.commons.marshall.ProtoStreamMarshaller;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -56,7 +54,7 @@ public class RemoteInfinispanTestSupport
private static final Logger INFINISPAN_LOG =
LoggerFactory.getLogger("org.eclipse.jetty.server.session.remote.infinispanLogs");
- private static final String INFINISPAN_VERSION = System.getProperty("infinispan.docker.image.version", "11.0.14.Final");
+ private static final String INFINISPAN_VERSION = System.getProperty("infinispan.docker.image.version", "14.0.25.Final");
private static final String IMAGE_NAME = System.getProperty("infinispan.docker.image.name", "infinispan/server") +
":" + INFINISPAN_VERSION;
@@ -77,15 +75,7 @@ public class RemoteInfinispanTestSupport
// setup instance
{
-
- SearchMapping mapping = new SearchMapping();
- mapping.entity(InfinispanSessionData.class).indexed().providedId()
- .property("expiry", ElementType.METHOD).field();
-
- Properties properties = new Properties();
- properties.put(Environment.MODEL_MAPPING, mapping);
-
- ConfigurationBuilder configurationBuilder = new ConfigurationBuilder().withProperties(properties)
+ ConfigurationBuilder configurationBuilder = new ConfigurationBuilder()
.addServer()
.host(infinispan.getHost())
.port(infinispan.getMappedPort(11222))
@@ -139,7 +129,7 @@ public class RemoteInfinispanTestSupport
"" +
"", _name);
- XMLStringConfiguration xmlConfig = new XMLStringConfiguration(xml);
+ StringConfiguration xmlConfig = new StringConfiguration(xml);
_cache = _manager.administration().getOrCreateCache(_name, xmlConfig);
}
diff --git a/tests/test-distribution/test-distribution-common/pom.xml b/tests/test-distribution/test-distribution-common/pom.xml
index 50ba397589d..ff1052f15a8 100644
--- a/tests/test-distribution/test-distribution-common/pom.xml
+++ b/tests/test-distribution/test-distribution-common/pom.xml
@@ -256,6 +256,16 @@
+
+ org.apache.maven.plugins
+ maven-surefire-plugin
+
+
+ ${infinispan.docker.image.version}
+ ${infinispan.docker.image.name}
+
+
+
diff --git a/tests/test-distribution/test-distribution-common/src/test/java/org/eclipse/jetty/tests/distribution/session/InfinispanSessionDistributionTests.java b/tests/test-distribution/test-distribution-common/src/test/java/org/eclipse/jetty/tests/distribution/session/InfinispanSessionDistributionTests.java
index db7e1f9c6fc..701b09b655c 100644
--- a/tests/test-distribution/test-distribution-common/src/test/java/org/eclipse/jetty/tests/distribution/session/InfinispanSessionDistributionTests.java
+++ b/tests/test-distribution/test-distribution-common/src/test/java/org/eclipse/jetty/tests/distribution/session/InfinispanSessionDistributionTests.java
@@ -21,7 +21,6 @@ import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.StandardOpenOption;
-import java.util.Arrays;
import java.util.List;
import java.util.Properties;
@@ -31,14 +30,13 @@ import org.infinispan.client.hotrod.RemoteCacheManager;
import org.infinispan.client.hotrod.configuration.ClientIntelligence;
import org.infinispan.client.hotrod.configuration.Configuration;
import org.infinispan.client.hotrod.configuration.ConfigurationBuilder;
-import org.infinispan.commons.configuration.XMLStringConfiguration;
+import org.infinispan.commons.configuration.StringConfiguration;
import org.infinispan.commons.marshall.ProtoStreamMarshaller;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.testcontainers.containers.BindMode;
import org.testcontainers.containers.GenericContainer;
import org.testcontainers.containers.output.Slf4jLogConsumer;
-import org.testcontainers.containers.wait.strategy.LogMessageWaitStrategy;
import org.testcontainers.containers.wait.strategy.Wait;
/**
@@ -59,7 +57,7 @@ public class InfinispanSessionDistributionTests extends AbstractSessionDistribut
@Override
public void startExternalSessionStorage() throws Exception
{
- String infinispanVersion = System.getProperty("infinispan.docker.image.version", "11.0.14.Final");
+ String infinispanVersion = System.getProperty("infinispan.docker.image.version", "15.0.0.CR1-1");
infinispan =
new GenericContainer<>(System.getProperty("infinispan.docker.image.name", "infinispan/server") +
":" + infinispanVersion)
@@ -129,7 +127,7 @@ public class InfinispanSessionDistributionTests extends AbstractSessionDistribut
"" +
"", "sessions");
- XMLStringConfiguration xmlConfig = new XMLStringConfiguration(xml);
+ StringConfiguration xmlConfig = new StringConfiguration(xml);
remoteCacheManager.administration().getOrCreateCache("sessions", xmlConfig);
}