diff --git a/jetty-cdi/src/main/java/org/eclipse/jetty/cdi/CdiConfiguration.java b/jetty-cdi/src/main/java/org/eclipse/jetty/cdi/CdiConfiguration.java
index 98d644931f8..9e674ffbf3e 100644
--- a/jetty-cdi/src/main/java/org/eclipse/jetty/cdi/CdiConfiguration.java
+++ b/jetty-cdi/src/main/java/org/eclipse/jetty/cdi/CdiConfiguration.java
@@ -21,8 +21,6 @@ package org.eclipse.jetty.cdi;
import org.eclipse.jetty.annotations.AnnotationConfiguration;
import org.eclipse.jetty.plus.webapp.PlusConfiguration;
import org.eclipse.jetty.webapp.AbstractConfiguration;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
/**
*
CDI Configuration
@@ -32,8 +30,6 @@ import org.slf4j.LoggerFactory;
*/
public class CdiConfiguration extends AbstractConfiguration
{
- private static final Logger LOG = LoggerFactory.getLogger(CdiConfiguration.class);
-
public CdiConfiguration()
{
protectAndExpose("org.eclipse.jetty.cdi.CdiServletContainerInitializer");
diff --git a/pom.xml b/pom.xml
index 9db48373d95..403e3295710 100644
--- a/pom.xml
+++ b/pom.xml
@@ -32,7 +32,7 @@
2.0.0-RC1
2.0.0-RC1
2.0.0-RC4
- 2.0.0-RC2
+ 2.0.0-RC4
9.4.8.Final
4.0.1
2.4.0
@@ -43,7 +43,8 @@
5.7.0
3.6.0
1.3.1
- 3.1.3.Final
+ 4.0.0.Beta1
+ 3.4.1.Final
1.0.5
1.10.8
@@ -65,6 +66,7 @@
false
5.5
+ 2.2
@@ -1107,6 +1109,11 @@
junit-jupiter
${junit.version}
+
+ org.hamcrest
+ hamcrest
+ ${hamcrest.version}
+
org.testcontainers
testcontainers
diff --git a/tests/jetty-http-tools/pom.xml b/tests/jetty-http-tools/pom.xml
index bfbd448b7c4..d601319dda8 100644
--- a/tests/jetty-http-tools/pom.xml
+++ b/tests/jetty-http-tools/pom.xml
@@ -19,7 +19,6 @@
org.hamcrest
hamcrest
- 2.1
diff --git a/tests/test-cdi/pom.xml b/tests/test-cdi/pom.xml
index f744b618d23..9bcbf0d8c46 100644
--- a/tests/test-cdi/pom.xml
+++ b/tests/test-cdi/pom.xml
@@ -3,7 +3,7 @@
org.eclipse.jetty.tests
tests-parent
- 10.0.0-SNAPSHOT
+ 11.0.0-SNAPSHOT
4.0.0
@@ -43,6 +43,12 @@
${weld.version}
test
+
+ org.jboss.logging
+ jboss-logging
+ ${jboss.logging.version}
+ test
+
org.eclipse.jetty
jetty-slf4j-impl
@@ -52,6 +58,11 @@
org.eclipse.jetty.toolchain
jetty-test-helper
+
+ org.eclipse.jetty.toolchain
+ jetty-jakarta-servlet-api
+ test
+
diff --git a/tests/test-cdi/src/test/java/org/eclipse/jetty/cdi/tests/EmbeddedWeldTest.java b/tests/test-cdi/src/test/java/org/eclipse/jetty/cdi/tests/EmbeddedWeldTest.java
index 41782b22654..de3bab167d4 100644
--- a/tests/test-cdi/src/test/java/org/eclipse/jetty/cdi/tests/EmbeddedWeldTest.java
+++ b/tests/test-cdi/src/test/java/org/eclipse/jetty/cdi/tests/EmbeddedWeldTest.java
@@ -20,24 +20,8 @@ package org.eclipse.jetty.cdi.tests;
import java.io.File;
import java.util.EnumSet;
-import javax.enterprise.inject.Produces;
-import javax.enterprise.inject.spi.BeanManager;
-import javax.enterprise.inject.spi.InjectionPoint;
-import jakarta.inject.Inject;
-import jakarta.inject.Named;
import jakarta.servlet.DispatcherType;
-import jakarta.servlet.Filter;
-import jakarta.servlet.FilterChain;
-import jakarta.servlet.FilterConfig;
-import jakarta.servlet.ServletContextEvent;
-import jakarta.servlet.ServletContextListener;
-import jakarta.servlet.ServletException;
-import jakarta.servlet.ServletRequest;
-import jakarta.servlet.ServletResponse;
-import jakarta.servlet.http.HttpServlet;
-import jakarta.servlet.http.HttpServletRequest;
-import jakarta.servlet.http.HttpServletResponse;
import org.eclipse.jetty.annotations.AnnotationConfiguration;
import org.eclipse.jetty.cdi.CdiConfiguration;
import org.eclipse.jetty.cdi.CdiDecoratingListener;
@@ -48,7 +32,6 @@ import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.servlet.ListenerHolder;
import org.eclipse.jetty.servlet.ServletContextHandler;
import org.eclipse.jetty.webapp.WebAppContext;
-import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.ValueSource;
@@ -98,8 +81,6 @@ public class EmbeddedWeldTest
context.getServletHandler().addListener(new ListenerHolder(MyContextListener.class));
// Setup Jetty weld integration
- /*
- TODO: uncomment when Weld 4 is used.
switch (mode)
{
case "none": // Do nothing, let weld work it out.
@@ -153,8 +134,6 @@ public class EmbeddedWeldTest
break;
}
- */
-
return server;
}
@@ -217,8 +196,7 @@ public class EmbeddedWeldTest
webapp.setInitParameter(org.eclipse.jetty.cdi.CdiServletContainerInitializer.CDI_INTEGRATION_ATTRIBUTE, org.eclipse.jetty.cdi.CdiDecoratingListener.MODE);
webapp.addBean(new ServletContextHandler.Initializer(webapp, new org.eclipse.jetty.cdi.CdiServletContainerInitializer()));
- // TODO: uncomment with Weld 4.
- // webapp.addBean(new ServletContextHandler.Initializer(webapp, new org.jboss.weld.environment.servlet.EnhancedListener()));
+ webapp.addBean(new ServletContextHandler.Initializer(webapp, new org.jboss.weld.environment.servlet.EnhancedListener()));
String pkg = EmbeddedWeldTest.class.getPackage().getName();
webapp.getServerClassMatcher().add("-" + pkg + ".");
diff --git a/tests/test-cdi/src/test/java/org/eclipse/jetty/cdi/tests/FriendlyGreetings.java b/tests/test-cdi/src/test/java/org/eclipse/jetty/cdi/tests/FriendlyGreetings.java
index a5ddb822d39..b090fcdf049 100644
--- a/tests/test-cdi/src/test/java/org/eclipse/jetty/cdi/tests/FriendlyGreetings.java
+++ b/tests/test-cdi/src/test/java/org/eclipse/jetty/cdi/tests/FriendlyGreetings.java
@@ -18,9 +18,9 @@
package org.eclipse.jetty.cdi.tests;
-import javax.enterprise.inject.Produces;
-import javax.enterprise.inject.spi.InjectionPoint;
-import javax.inject.Named;
+import jakarta.enterprise.inject.Produces;
+import jakarta.enterprise.inject.spi.InjectionPoint;
+import jakarta.inject.Named;
public class FriendlyGreetings
{
diff --git a/tests/test-cdi/src/test/java/org/eclipse/jetty/cdi/tests/GreetingsServlet.java b/tests/test-cdi/src/test/java/org/eclipse/jetty/cdi/tests/GreetingsServlet.java
index da717ecf6ef..519792c07a0 100644
--- a/tests/test-cdi/src/test/java/org/eclipse/jetty/cdi/tests/GreetingsServlet.java
+++ b/tests/test-cdi/src/test/java/org/eclipse/jetty/cdi/tests/GreetingsServlet.java
@@ -19,13 +19,14 @@
package org.eclipse.jetty.cdi.tests;
import java.io.IOException;
-import javax.enterprise.inject.spi.BeanManager;
-import javax.inject.Inject;
-import javax.inject.Named;
-import javax.servlet.ServletException;
-import javax.servlet.http.HttpServlet;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
+
+import jakarta.enterprise.inject.spi.BeanManager;
+import jakarta.inject.Inject;
+import jakarta.inject.Named;
+import jakarta.servlet.ServletException;
+import jakarta.servlet.http.HttpServlet;
+import jakarta.servlet.http.HttpServletRequest;
+import jakarta.servlet.http.HttpServletResponse;
public class GreetingsServlet extends HttpServlet
{
diff --git a/tests/test-cdi/src/test/java/org/eclipse/jetty/cdi/tests/MyContextListener.java b/tests/test-cdi/src/test/java/org/eclipse/jetty/cdi/tests/MyContextListener.java
index 2ca48f5d355..1e3c4ea39be 100644
--- a/tests/test-cdi/src/test/java/org/eclipse/jetty/cdi/tests/MyContextListener.java
+++ b/tests/test-cdi/src/test/java/org/eclipse/jetty/cdi/tests/MyContextListener.java
@@ -18,10 +18,10 @@
package org.eclipse.jetty.cdi.tests;
-import javax.enterprise.inject.spi.BeanManager;
-import javax.inject.Inject;
-import javax.servlet.ServletContextEvent;
-import javax.servlet.ServletContextListener;
+import jakarta.enterprise.inject.spi.BeanManager;
+import jakarta.inject.Inject;
+import jakarta.servlet.ServletContextEvent;
+import jakarta.servlet.ServletContextListener;
public class MyContextListener implements ServletContextListener
{
diff --git a/tests/test-cdi/src/test/java/org/eclipse/jetty/cdi/tests/MyFilter.java b/tests/test-cdi/src/test/java/org/eclipse/jetty/cdi/tests/MyFilter.java
index 7c9a122b161..623136a59df 100644
--- a/tests/test-cdi/src/test/java/org/eclipse/jetty/cdi/tests/MyFilter.java
+++ b/tests/test-cdi/src/test/java/org/eclipse/jetty/cdi/tests/MyFilter.java
@@ -19,14 +19,15 @@
package org.eclipse.jetty.cdi.tests;
import java.io.IOException;
-import javax.enterprise.inject.spi.BeanManager;
-import javax.inject.Inject;
-import javax.servlet.Filter;
-import javax.servlet.FilterChain;
-import javax.servlet.FilterConfig;
-import javax.servlet.ServletException;
-import javax.servlet.ServletRequest;
-import javax.servlet.ServletResponse;
+
+import jakarta.enterprise.inject.spi.BeanManager;
+import jakarta.inject.Inject;
+import jakarta.servlet.Filter;
+import jakarta.servlet.FilterChain;
+import jakarta.servlet.FilterConfig;
+import jakarta.servlet.ServletException;
+import jakarta.servlet.ServletRequest;
+import jakarta.servlet.ServletResponse;
public class MyFilter implements Filter
{
diff --git a/tests/test-webapps/test-weld-cdi-webapp/pom.xml b/tests/test-webapps/test-weld-cdi-webapp/pom.xml
index 6729f201a08..797d902d0aa 100644
--- a/tests/test-webapps/test-weld-cdi-webapp/pom.xml
+++ b/tests/test-webapps/test-weld-cdi-webapp/pom.xml
@@ -35,5 +35,10 @@
weld-servlet-core
${weld.version}
+
+ org.jboss.logging
+ jboss-logging
+ ${jboss.logging.version}
+