From b03892b1b3e0557994b1c7bf01a10a6a1e8a244a Mon Sep 17 00:00:00 2001 From: Grzegorz Grzybek Date: Wed, 21 Jun 2023 16:31:34 +0200 Subject: [PATCH] [#1802] Switch samples-jsp from javax to jakarta --- .../helloworld-jsp-noclasses/pom.xml | 4 ++-- samples/samples-jsp/helloworld-jsp/pom.xml | 24 +++++++++---------- .../helloworld/jsp/internal/Activator.java | 6 ++--- 3 files changed, 16 insertions(+), 18 deletions(-) diff --git a/samples/samples-jsp/helloworld-jsp-noclasses/pom.xml b/samples/samples-jsp/helloworld-jsp-noclasses/pom.xml index d82cd38ae9..d4366e6d13 100644 --- a/samples/samples-jsp/helloworld-jsp-noclasses/pom.xml +++ b/samples/samples-jsp/helloworld-jsp-noclasses/pom.xml @@ -60,11 +60,11 @@ org.osgi - osgi.cmpn + org.osgi.service.servlet provided - + jakarta.servlet diff --git a/samples/samples-jsp/helloworld-jsp/pom.xml b/samples/samples-jsp/helloworld-jsp/pom.xml index cda857cea7..81ba26f016 100644 --- a/samples/samples-jsp/helloworld-jsp/pom.xml +++ b/samples/samples-jsp/helloworld-jsp/pom.xml @@ -43,28 +43,26 @@ org.ops4j.pax.web.samples.helloworld.jsp.internal.Activator - - javax.servlet;version="[3.1,5)", - javax.servlet.http;version="[3.1,5)", + + jakarta.servlet;version="[6,7)", + jakarta.servlet.http;version="[6,7)", - - org.osgi.framework;version="[1.8,2)", + + org.osgi.framework;version="[1.10,2)", org.osgi.util.tracker;version="[1.5,2)", - - org.osgi.service.http;version="[1.2,2)", - org.ops4j.pax.web.service;version="${pax-web.osgi.version}", + org.ops4j.pax.web.service.http;version="${pax-web.osgi.version}", - javax.el, + jakarta.el, org.apache.el, org.apache.jasper.el, org.apache.jasper.runtime, org.apache.taglibs.standard.tag.rt.core, - javax.servlet.jsp, - javax.servlet.jsp.tagext, + jakarta.servlet.jsp, + jakarta.servlet.jsp.tagext, @@ -111,11 +109,11 @@ org.osgi - osgi.cmpn + org.osgi.service.servlet provided - + jakarta.servlet diff --git a/samples/samples-jsp/helloworld-jsp/src/main/java/org/ops4j/pax/web/samples/helloworld/jsp/internal/Activator.java b/samples/samples-jsp/helloworld-jsp/src/main/java/org/ops4j/pax/web/samples/helloworld/jsp/internal/Activator.java index 50d5a635d9..a446223c3b 100644 --- a/samples/samples-jsp/helloworld-jsp/src/main/java/org/ops4j/pax/web/samples/helloworld/jsp/internal/Activator.java +++ b/samples/samples-jsp/helloworld-jsp/src/main/java/org/ops4j/pax/web/samples/helloworld/jsp/internal/Activator.java @@ -15,14 +15,14 @@ */ package org.ops4j.pax.web.samples.helloworld.jsp.internal; -import javax.servlet.Servlet; -import javax.servlet.ServletException; +import jakarta.servlet.Servlet; +import jakarta.servlet.ServletException; import org.ops4j.pax.web.service.WebContainer; +import org.ops4j.pax.web.service.http.NamespaceException; import org.osgi.framework.BundleActivator; import org.osgi.framework.BundleContext; import org.osgi.framework.ServiceReference; -import org.osgi.service.http.NamespaceException; import org.osgi.util.tracker.ServiceTracker; import org.osgi.util.tracker.ServiceTrackerCustomizer;