diff --git a/xwiki-rendering-macros/xwiki-rendering-macro-toc/pom.xml b/xwiki-rendering-macros/xwiki-rendering-macro-toc/pom.xml
index f5b4dcb3bc..05e53bf10a 100644
--- a/xwiki-rendering-macros/xwiki-rendering-macro-toc/pom.xml
+++ b/xwiki-rendering-macros/xwiki-rendering-macro-toc/pom.xml
@@ -42,9 +42,9 @@
test
- org.mortbay.jasper
- apache-el
- runtime
+ org.glassfish.expressly
+ expressly
+ test
diff --git a/xwiki-rendering-macros/xwiki-rendering-macro-toc/src/main/java/org/xwiki/rendering/macro/toc/TocMacroParameters.java b/xwiki-rendering-macros/xwiki-rendering-macro-toc/src/main/java/org/xwiki/rendering/macro/toc/TocMacroParameters.java
index 8b7c2837cf..fc289e371c 100644
--- a/xwiki-rendering-macros/xwiki-rendering-macro-toc/src/main/java/org/xwiki/rendering/macro/toc/TocMacroParameters.java
+++ b/xwiki-rendering-macros/xwiki-rendering-macro-toc/src/main/java/org/xwiki/rendering/macro/toc/TocMacroParameters.java
@@ -19,7 +19,7 @@
*/
package org.xwiki.rendering.macro.toc;
-import javax.validation.constraints.Min;
+import jakarta.validation.constraints.Min;
import org.xwiki.properties.annotation.PropertyAdvanced;
import org.xwiki.properties.annotation.PropertyDescription;
diff --git a/xwiki-rendering-transformations/xwiki-rendering-transformation-macro/src/main/java/org/xwiki/rendering/macro/parameter/ParameterValueTooHighException.java b/xwiki-rendering-transformations/xwiki-rendering-transformation-macro/src/main/java/org/xwiki/rendering/macro/parameter/ParameterValueTooHighException.java
index 08d3932624..40a5ea3eff 100644
--- a/xwiki-rendering-transformations/xwiki-rendering-transformation-macro/src/main/java/org/xwiki/rendering/macro/parameter/ParameterValueTooHighException.java
+++ b/xwiki-rendering-transformations/xwiki-rendering-transformation-macro/src/main/java/org/xwiki/rendering/macro/parameter/ParameterValueTooHighException.java
@@ -23,7 +23,7 @@
* Exception used when the macro parameter is two high.
*
* @version $Id$
- * @deprecated use {@link javax.validation.constraints.Max} instead
+ * @deprecated use {@link jakarta.validation.constraints.Max} instead
*/
@Deprecated
public class ParameterValueTooHighException extends MacroParameterException
diff --git a/xwiki-rendering-transformations/xwiki-rendering-transformation-macro/src/main/java/org/xwiki/rendering/macro/parameter/ParameterValueTooLowException.java b/xwiki-rendering-transformations/xwiki-rendering-transformation-macro/src/main/java/org/xwiki/rendering/macro/parameter/ParameterValueTooLowException.java
index 2652dd22d4..dbbe34a6a0 100644
--- a/xwiki-rendering-transformations/xwiki-rendering-transformation-macro/src/main/java/org/xwiki/rendering/macro/parameter/ParameterValueTooLowException.java
+++ b/xwiki-rendering-transformations/xwiki-rendering-transformation-macro/src/main/java/org/xwiki/rendering/macro/parameter/ParameterValueTooLowException.java
@@ -23,7 +23,7 @@
* Exception used when the macro parameter is two low.
*
* @version $Id$
- * @deprecated use {@link javax.validation.constraints.Min} instead
+ * @deprecated use {@link jakarta.validation.constraints.Min} instead
*/
@Deprecated
public class ParameterValueTooLowException extends MacroParameterException