This is an automated email from the ASF dual-hosted git repository. solomax pushed a commit to branch jakarta-spring-6 in repository https://gitbox.apache.org/repos/asf/openmeetings.git
commit af3a454295305abdb6ce86121a3505624f245256 Author: Maxim Solodovnik <solomax...@gmail.com> AuthorDate: Thu Dec 29 13:34:15 2022 +0700 [OPENMEETINGS-2756] spring, cxf, tomcat, wicket --- .../java/org/apache/openmeetings/IApplication.java | 2 +- .../openmeetings/db/util/ApplicationHelper.java | 6 ++--- openmeetings-server/pom.xml | 2 +- .../calendar/caldav/AppointmentManager.java | 4 ++-- .../calendar/caldav/handler/CtagHandler.java | 2 +- .../calendar/caldav/handler/EtagsHandler.java | 6 ++--- .../calendar/caldav/handler/MultigetHandler.java | 2 +- .../calendar/caldav/handler/WebDAVSyncHandler.java | 8 +++---- .../openmeetings/util/OMContextListener.java | 4 ++-- .../web/common/upload/UploadResourceReference.java | 2 +- .../web/room/GroupCustomCssResourceReference.java | 2 +- .../openmeetings/web/user/chat/ChatToolbar.java | 2 +- .../web/util/FileItemResourceReference.java | 2 +- .../web/util/GroupLogoResourceReference.java | 2 +- .../web/util/ProfileImageResourceReference.java | 2 +- .../org/apache/openmeetings/backup/TestExport.java | 4 ++-- .../web/app/TestOmAuthenticationStrategy.java | 2 +- .../webservice/AbstractWebServiceTest.java | 11 ++++----- .../webservice/TestCalendarService.java | 4 ++-- .../openmeetings/webservice/TestErrorService.java | 2 +- .../openmeetings/webservice/TestGroupService.java | 8 +++---- .../openmeetings/webservice/TestUserService.java | 6 ++--- .../webservice/CalendarWebService.java | 24 +++++++++---------- .../openmeetings/webservice/ErrorWebService.java | 20 ++++++++-------- .../openmeetings/webservice/FileWebService.java | 24 +++++++++---------- .../openmeetings/webservice/GroupWebService.java | 22 +++++++++--------- .../openmeetings/webservice/InfoWebService.java | 12 +++++----- .../openmeetings/webservice/NetTestWebService.java | 19 +++++++-------- .../webservice/RecordingWebService.java | 20 ++++++++-------- .../openmeetings/webservice/RoomWebService.java | 27 ++++++++++------------ .../openmeetings/webservice/UserWebService.java | 24 +++++++++---------- .../openmeetings/webservice/WbWebService.java | 23 +++++++++--------- .../webservice/error/ServiceException.java | 2 +- .../util/AppointmentListMessageBodyWriter.java | 10 ++++---- .../util/AppointmentMessageBodyReader.java | 10 ++++---- .../util/AppointmentMessageBodyWriter.java | 10 ++++---- .../webservice/util/AppointmentParamConverter.java | 2 +- .../webservice/util/CalendarParamConverter.java | 2 +- .../webservice/util/DateParamConverter.java | 2 +- .../webservice/util/OmExceptionHandler.java | 4 ++-- .../webservice/util/OmParamConverterProvider.java | 4 ++-- .../webservice/util/RateLimitRequestFilter.java | 15 ++++++------ .../openmeetings/webservice/util/RateLimited.java | 2 +- .../webservice/util/UserMessageBodyWriter.java | 10 ++++---- .../webservice/util/UserParamConverter.java | 2 +- pom.xml | 26 ++++++++++----------- 46 files changed, 200 insertions(+), 201 deletions(-) diff --git a/openmeetings-db/src/main/java/org/apache/openmeetings/IApplication.java b/openmeetings-db/src/main/java/org/apache/openmeetings/IApplication.java index d078f2945..fb0695fa1 100644 --- a/openmeetings-db/src/main/java/org/apache/openmeetings/IApplication.java +++ b/openmeetings-db/src/main/java/org/apache/openmeetings/IApplication.java @@ -23,7 +23,7 @@ import java.util.Set; import java.util.function.Supplier; import javax.annotation.Nonnull; -import javax.servlet.ServletContext; +import jakarta.servlet.ServletContext; import org.apache.openmeetings.db.entity.room.Invitation; import org.apache.openmeetings.util.ws.IClusterWsMessage; diff --git a/openmeetings-db/src/main/java/org/apache/openmeetings/db/util/ApplicationHelper.java b/openmeetings-db/src/main/java/org/apache/openmeetings/db/util/ApplicationHelper.java index d63c6c20a..6769691e9 100644 --- a/openmeetings-db/src/main/java/org/apache/openmeetings/db/util/ApplicationHelper.java +++ b/openmeetings-db/src/main/java/org/apache/openmeetings/db/util/ApplicationHelper.java @@ -29,9 +29,9 @@ import java.util.Enumeration; import java.util.Map; import java.util.UUID; -import javax.servlet.FilterConfig; -import javax.servlet.ServletContext; -import javax.servlet.ServletContextEvent; +import jakarta.servlet.FilterConfig; +import jakarta.servlet.ServletContext; +import jakarta.servlet.ServletContextEvent; import org.apache.openmeetings.IApplication; import org.apache.openmeetings.IWebSession; diff --git a/openmeetings-server/pom.xml b/openmeetings-server/pom.xml index 5bae89146..90aca4946 100644 --- a/openmeetings-server/pom.xml +++ b/openmeetings-server/pom.xml @@ -118,7 +118,7 @@ <id>prepare-web-server</id> <activation> <file> - <missing>web-server/apache-tomcat-9.0.71.tar.gz</missing> <!-- TODO should be in-sync with global property --> + <missing>web-server/apache-tomcat-10.1.4.tar.gz</missing> <!-- TODO should be in-sync with global property --> </file> </activation> <build> diff --git a/openmeetings-service/src/main/java/org/apache/openmeetings/service/calendar/caldav/AppointmentManager.java b/openmeetings-service/src/main/java/org/apache/openmeetings/service/calendar/caldav/AppointmentManager.java index 5c858eade..573a79905 100644 --- a/openmeetings-service/src/main/java/org/apache/openmeetings/service/calendar/caldav/AppointmentManager.java +++ b/openmeetings-service/src/main/java/org/apache/openmeetings/service/calendar/caldav/AppointmentManager.java @@ -18,8 +18,8 @@ */ package org.apache.openmeetings.service.calendar.caldav; -import static javax.servlet.http.HttpServletResponse.SC_NO_CONTENT; -import static javax.servlet.http.HttpServletResponse.SC_OK; +import static jakarta.servlet.http.HttpServletResponse.SC_NO_CONTENT; +import static jakarta.servlet.http.HttpServletResponse.SC_OK; import java.io.IOException; import java.net.URI; diff --git a/openmeetings-service/src/main/java/org/apache/openmeetings/service/calendar/caldav/handler/CtagHandler.java b/openmeetings-service/src/main/java/org/apache/openmeetings/service/calendar/caldav/handler/CtagHandler.java index 3ed451db1..bf7c6525c 100644 --- a/openmeetings-service/src/main/java/org/apache/openmeetings/service/calendar/caldav/handler/CtagHandler.java +++ b/openmeetings-service/src/main/java/org/apache/openmeetings/service/calendar/caldav/handler/CtagHandler.java @@ -18,7 +18,7 @@ */ package org.apache.openmeetings.service.calendar.caldav.handler; -import static javax.servlet.http.HttpServletResponse.SC_OK; +import static jakarta.servlet.http.HttpServletResponse.SC_OK; import java.io.IOException; diff --git a/openmeetings-service/src/main/java/org/apache/openmeetings/service/calendar/caldav/handler/EtagsHandler.java b/openmeetings-service/src/main/java/org/apache/openmeetings/service/calendar/caldav/handler/EtagsHandler.java index 262cd5051..a05b1f4ba 100644 --- a/openmeetings-service/src/main/java/org/apache/openmeetings/service/calendar/caldav/handler/EtagsHandler.java +++ b/openmeetings-service/src/main/java/org/apache/openmeetings/service/calendar/caldav/handler/EtagsHandler.java @@ -18,9 +18,9 @@ */ package org.apache.openmeetings.service.calendar.caldav.handler; -import static javax.servlet.http.HttpServletResponse.SC_NOT_FOUND; -import static javax.servlet.http.HttpServletResponse.SC_NO_CONTENT; -import static javax.servlet.http.HttpServletResponse.SC_OK; +import static jakarta.servlet.http.HttpServletResponse.SC_NOT_FOUND; +import static jakarta.servlet.http.HttpServletResponse.SC_NO_CONTENT; +import static jakarta.servlet.http.HttpServletResponse.SC_OK; import java.io.IOException; import java.net.URI; diff --git a/openmeetings-service/src/main/java/org/apache/openmeetings/service/calendar/caldav/handler/MultigetHandler.java b/openmeetings-service/src/main/java/org/apache/openmeetings/service/calendar/caldav/handler/MultigetHandler.java index c7483f195..7c7f66a19 100644 --- a/openmeetings-service/src/main/java/org/apache/openmeetings/service/calendar/caldav/handler/MultigetHandler.java +++ b/openmeetings-service/src/main/java/org/apache/openmeetings/service/calendar/caldav/handler/MultigetHandler.java @@ -18,7 +18,7 @@ */ package org.apache.openmeetings.service.calendar.caldav.handler; -import static javax.servlet.http.HttpServletResponse.SC_OK; +import static jakarta.servlet.http.HttpServletResponse.SC_OK; import java.io.IOException; import java.util.List; diff --git a/openmeetings-service/src/main/java/org/apache/openmeetings/service/calendar/caldav/handler/WebDAVSyncHandler.java b/openmeetings-service/src/main/java/org/apache/openmeetings/service/calendar/caldav/handler/WebDAVSyncHandler.java index b9fc286c6..59696b6e6 100644 --- a/openmeetings-service/src/main/java/org/apache/openmeetings/service/calendar/caldav/handler/WebDAVSyncHandler.java +++ b/openmeetings-service/src/main/java/org/apache/openmeetings/service/calendar/caldav/handler/WebDAVSyncHandler.java @@ -19,10 +19,10 @@ package org.apache.openmeetings.service.calendar.caldav.handler; -import static javax.servlet.http.HttpServletResponse.SC_FORBIDDEN; -import static javax.servlet.http.HttpServletResponse.SC_NOT_FOUND; -import static javax.servlet.http.HttpServletResponse.SC_OK; -import static javax.servlet.http.HttpServletResponse.SC_PRECONDITION_FAILED; +import static jakarta.servlet.http.HttpServletResponse.SC_FORBIDDEN; +import static jakarta.servlet.http.HttpServletResponse.SC_NOT_FOUND; +import static jakarta.servlet.http.HttpServletResponse.SC_OK; +import static jakarta.servlet.http.HttpServletResponse.SC_PRECONDITION_FAILED; import static org.apache.jackrabbit.webdav.DavServletResponse.SC_INSUFFICIENT_SPACE_ON_RESOURCE; import java.io.IOException; diff --git a/openmeetings-util/src/main/java/org/apache/openmeetings/util/OMContextListener.java b/openmeetings-util/src/main/java/org/apache/openmeetings/util/OMContextListener.java index 409de1771..8d0f84eac 100644 --- a/openmeetings-util/src/main/java/org/apache/openmeetings/util/OMContextListener.java +++ b/openmeetings-util/src/main/java/org/apache/openmeetings/util/OMContextListener.java @@ -21,8 +21,8 @@ package org.apache.openmeetings.util; import java.io.IOException; import java.io.InputStream; -import javax.servlet.ServletContextEvent; -import javax.servlet.ServletContextListener; +import jakarta.servlet.ServletContextEvent; +import jakarta.servlet.ServletContextListener; import org.apache.wicket.util.string.Strings; import org.slf4j.LoggerFactory; diff --git a/openmeetings-web/src/main/java/org/apache/openmeetings/web/common/upload/UploadResourceReference.java b/openmeetings-web/src/main/java/org/apache/openmeetings/web/common/upload/UploadResourceReference.java index ee93c650f..e27570510 100644 --- a/openmeetings-web/src/main/java/org/apache/openmeetings/web/common/upload/UploadResourceReference.java +++ b/openmeetings-web/src/main/java/org/apache/openmeetings/web/common/upload/UploadResourceReference.java @@ -26,7 +26,7 @@ import java.util.List; import java.util.Map; import java.util.concurrent.atomic.AtomicInteger; -import javax.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MediaType; import org.apache.commons.fileupload.FileItem; import org.apache.openmeetings.core.util.WebSocketHelper; diff --git a/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/GroupCustomCssResourceReference.java b/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/GroupCustomCssResourceReference.java index bca95d732..951961fd7 100644 --- a/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/GroupCustomCssResourceReference.java +++ b/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/GroupCustomCssResourceReference.java @@ -23,7 +23,7 @@ import static org.apache.openmeetings.util.OmFileHelper.getGroupCss; import java.io.File; import java.io.IOException; -import javax.servlet.http.HttpServletResponse; +import jakarta.servlet.http.HttpServletResponse; import org.apache.wicket.request.mapper.parameter.PageParameters; import org.apache.wicket.request.resource.IResource; diff --git a/openmeetings-web/src/main/java/org/apache/openmeetings/web/user/chat/ChatToolbar.java b/openmeetings-web/src/main/java/org/apache/openmeetings/web/user/chat/ChatToolbar.java index 15501b539..868941abb 100644 --- a/openmeetings-web/src/main/java/org/apache/openmeetings/web/user/chat/ChatToolbar.java +++ b/openmeetings-web/src/main/java/org/apache/openmeetings/web/user/chat/ChatToolbar.java @@ -31,7 +31,7 @@ import static org.apache.openmeetings.web.room.RoomPanel.isModerator; import java.util.List; -import javax.servlet.http.HttpServletResponse; +import jakarta.servlet.http.HttpServletResponse; import org.apache.openmeetings.core.util.WebSocketHelper; import org.apache.openmeetings.db.dao.basic.ChatDao; diff --git a/openmeetings-web/src/main/java/org/apache/openmeetings/web/util/FileItemResourceReference.java b/openmeetings-web/src/main/java/org/apache/openmeetings/web/util/FileItemResourceReference.java index 4b55126e9..8f83817d5 100644 --- a/openmeetings-web/src/main/java/org/apache/openmeetings/web/util/FileItemResourceReference.java +++ b/openmeetings-web/src/main/java/org/apache/openmeetings/web/util/FileItemResourceReference.java @@ -24,7 +24,7 @@ import java.io.File; import java.io.IOException; import java.util.Map.Entry; -import javax.servlet.http.HttpServletResponse; +import jakarta.servlet.http.HttpServletResponse; import org.apache.openmeetings.db.dto.room.Whiteboard; import org.apache.openmeetings.db.dto.room.Whiteboards; diff --git a/openmeetings-web/src/main/java/org/apache/openmeetings/web/util/GroupLogoResourceReference.java b/openmeetings-web/src/main/java/org/apache/openmeetings/web/util/GroupLogoResourceReference.java index 23366bbc0..fca3b4805 100644 --- a/openmeetings-web/src/main/java/org/apache/openmeetings/web/util/GroupLogoResourceReference.java +++ b/openmeetings-web/src/main/java/org/apache/openmeetings/web/util/GroupLogoResourceReference.java @@ -27,7 +27,7 @@ import static org.apache.openmeetings.web.app.WebSession.getUserId; import java.io.File; import java.io.IOException; -import javax.servlet.http.HttpServletResponse; +import jakarta.servlet.http.HttpServletResponse; import org.apache.openmeetings.db.dao.room.RoomDao; import org.apache.openmeetings.db.dao.user.GroupUserDao; diff --git a/openmeetings-web/src/main/java/org/apache/openmeetings/web/util/ProfileImageResourceReference.java b/openmeetings-web/src/main/java/org/apache/openmeetings/web/util/ProfileImageResourceReference.java index ce7959542..0fe896f25 100644 --- a/openmeetings-web/src/main/java/org/apache/openmeetings/web/util/ProfileImageResourceReference.java +++ b/openmeetings-web/src/main/java/org/apache/openmeetings/web/util/ProfileImageResourceReference.java @@ -33,7 +33,7 @@ import org.apache.wicket.util.io.IOUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import javax.servlet.http.HttpServletResponse; +import jakarta.servlet.http.HttpServletResponse; import java.io.File; import java.io.FileInputStream; import java.io.InputStream; diff --git a/openmeetings-web/src/test/java/org/apache/openmeetings/backup/TestExport.java b/openmeetings-web/src/test/java/org/apache/openmeetings/backup/TestExport.java index 6a22356d3..ef4d7c607 100644 --- a/openmeetings-web/src/test/java/org/apache/openmeetings/backup/TestExport.java +++ b/openmeetings-web/src/test/java/org/apache/openmeetings/backup/TestExport.java @@ -32,8 +32,8 @@ import java.io.Writer; import java.nio.file.Paths; import java.time.LocalDate; -import javax.xml.bind.JAXBContext; -import javax.xml.bind.Marshaller; +import jakarta.xml.bind.JAXBContext; +import jakarta.xml.bind.Marshaller; import org.apache.openmeetings.AbstractOmServerTest; import org.apache.openmeetings.db.dao.file.FileItemDao; diff --git a/openmeetings-web/src/test/java/org/apache/openmeetings/web/app/TestOmAuthenticationStrategy.java b/openmeetings-web/src/test/java/org/apache/openmeetings/web/app/TestOmAuthenticationStrategy.java index 8c0a7c1f4..66929f191 100644 --- a/openmeetings-web/src/test/java/org/apache/openmeetings/web/app/TestOmAuthenticationStrategy.java +++ b/openmeetings-web/src/test/java/org/apache/openmeetings/web/app/TestOmAuthenticationStrategy.java @@ -23,7 +23,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertNull; -import javax.servlet.http.Cookie; +import jakarta.servlet.http.Cookie; import org.apache.openmeetings.AbstractWicketTesterTest; import org.apache.openmeetings.db.entity.user.User; diff --git a/openmeetings-web/src/test/java/org/apache/openmeetings/webservice/AbstractWebServiceTest.java b/openmeetings-web/src/test/java/org/apache/openmeetings/webservice/AbstractWebServiceTest.java index a9c15588d..3e40e1a2a 100644 --- a/openmeetings-web/src/test/java/org/apache/openmeetings/webservice/AbstractWebServiceTest.java +++ b/openmeetings-web/src/test/java/org/apache/openmeetings/webservice/AbstractWebServiceTest.java @@ -19,7 +19,6 @@ package org.apache.openmeetings.webservice; import static java.util.UUID.randomUUID; -import static javax.ws.rs.core.MediaType.APPLICATION_FORM_URLENCODED; import static org.apache.openmeetings.AbstractOmServerTest.createPass; import static org.apache.openmeetings.AbstractOmServerTest.ensureSchema; import static org.apache.openmeetings.AbstractOmServerTest.soapUsername; @@ -35,9 +34,6 @@ import java.io.InputStream; import java.util.ArrayList; import java.util.List; -import javax.ws.rs.core.Form; -import javax.ws.rs.core.MediaType; - import org.apache.cxf.jaxrs.client.WebClient; import org.apache.cxf.jaxrs.ext.multipart.Attachment; import org.apache.cxf.transports.http.configuration.HTTPClientPolicy; @@ -56,6 +52,9 @@ import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Tag; import org.junit.jupiter.api.extension.RegisterExtension; +import jakarta.ws.rs.core.Form; +import jakarta.ws.rs.core.MediaType; + @Tag("webservice") public abstract class AbstractWebServiceTest { private static final String HOST = "localhost"; @@ -115,7 +114,7 @@ public abstract class AbstractWebServiceTest { protected static RoomDTO create(String sid, RoomDTO r) { return getClient(getRoomUrl()) .query("sid", sid) - .type(APPLICATION_FORM_URLENCODED) + .type(MediaType.APPLICATION_FORM_URLENCODED) .post(new Form().param("room", r.toString()), RoomDTO.class); } @@ -146,7 +145,7 @@ public abstract class AbstractWebServiceTest { UserDTO user = getClient(getUserUrl()) .path("/") .query("sid", r.getMessage()) - .type(APPLICATION_FORM_URLENCODED) + .type(MediaType.APPLICATION_FORM_URLENCODED) .post(new Form().param("user", dto.toString()).param("confirm", "" + false), UserDTO.class); assertNotNull(user.getId()); u.setId(user.getId()); diff --git a/openmeetings-web/src/test/java/org/apache/openmeetings/webservice/TestCalendarService.java b/openmeetings-web/src/test/java/org/apache/openmeetings/webservice/TestCalendarService.java index ff962b016..c4f6420f3 100644 --- a/openmeetings-web/src/test/java/org/apache/openmeetings/webservice/TestCalendarService.java +++ b/openmeetings-web/src/test/java/org/apache/openmeetings/webservice/TestCalendarService.java @@ -34,8 +34,8 @@ import java.util.ArrayList; import java.util.Date; import java.util.List; -import javax.ws.rs.core.Form; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.core.Form; +import jakarta.ws.rs.core.Response; import org.apache.openmeetings.AbstractOmServerTest; import org.apache.openmeetings.db.dao.calendar.AppointmentDao; diff --git a/openmeetings-web/src/test/java/org/apache/openmeetings/webservice/TestErrorService.java b/openmeetings-web/src/test/java/org/apache/openmeetings/webservice/TestErrorService.java index 42124d665..02e27cdbd 100644 --- a/openmeetings-web/src/test/java/org/apache/openmeetings/webservice/TestErrorService.java +++ b/openmeetings-web/src/test/java/org/apache/openmeetings/webservice/TestErrorService.java @@ -25,7 +25,7 @@ import static org.junit.jupiter.api.Assertions.assertNotNull; import java.util.Locale; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.core.Response; import org.apache.openmeetings.db.dao.label.LabelDao; import org.apache.openmeetings.db.dto.basic.ServiceResult; diff --git a/openmeetings-web/src/test/java/org/apache/openmeetings/webservice/TestGroupService.java b/openmeetings-web/src/test/java/org/apache/openmeetings/webservice/TestGroupService.java index 89bfa7ea1..1c2ff2127 100644 --- a/openmeetings-web/src/test/java/org/apache/openmeetings/webservice/TestGroupService.java +++ b/openmeetings-web/src/test/java/org/apache/openmeetings/webservice/TestGroupService.java @@ -23,18 +23,18 @@ import static org.apache.openmeetings.AbstractOmServerTest.userpass; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertNotNull; +import static org.junit.jupiter.api.Assertions.assertThrows; import java.util.Collection; -import javax.ws.rs.BadRequestException; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.BadRequestException; +import jakarta.ws.rs.core.Response; import org.apache.openmeetings.db.dto.basic.ServiceResult; import org.apache.openmeetings.db.dto.basic.ServiceResult.Type; import org.apache.openmeetings.db.dto.room.RoomDTO; import org.apache.openmeetings.db.dto.user.GroupDTO; import org.apache.openmeetings.db.entity.room.Room; -import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; class TestGroupService extends AbstractWebServiceTest { @@ -92,7 +92,7 @@ class TestGroupService extends AbstractWebServiceTest { RoomDTO rdto = new RoomDTO(); rdto.setName("Group WS Room"); String msg = sr.getMessage(); - Assertions.assertThrows(BadRequestException.class, () -> create(msg, rdto)); + assertThrows(BadRequestException.class, () -> create(msg, rdto)); } @Test diff --git a/openmeetings-web/src/test/java/org/apache/openmeetings/webservice/TestUserService.java b/openmeetings-web/src/test/java/org/apache/openmeetings/webservice/TestUserService.java index e3319ba6d..932eceb94 100644 --- a/openmeetings-web/src/test/java/org/apache/openmeetings/webservice/TestUserService.java +++ b/openmeetings-web/src/test/java/org/apache/openmeetings/webservice/TestUserService.java @@ -19,7 +19,7 @@ package org.apache.openmeetings.webservice; import static java.util.UUID.randomUUID; -import static javax.ws.rs.core.MediaType.APPLICATION_FORM_URLENCODED; +import static jakarta.ws.rs.core.MediaType.APPLICATION_FORM_URLENCODED; import static org.apache.openmeetings.AbstractOmServerTest.adminUsername; import static org.apache.openmeetings.AbstractOmServerTest.createPass; import static org.apache.openmeetings.AbstractOmServerTest.rnd; @@ -35,8 +35,8 @@ import java.util.Collection; import java.util.Locale; import java.util.TimeZone; -import javax.ws.rs.core.Form; -import javax.ws.rs.core.Response; +import jakarta.ws.rs.core.Form; +import jakarta.ws.rs.core.Response; import org.apache.openmeetings.db.dao.user.UserDao; import org.apache.openmeetings.db.dto.basic.ServiceResult; diff --git a/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/CalendarWebService.java b/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/CalendarWebService.java index 38d29fa93..3de82dd94 100644 --- a/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/CalendarWebService.java +++ b/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/CalendarWebService.java @@ -25,18 +25,18 @@ import java.util.Date; import java.util.List; import java.util.Set; -import javax.jws.WebMethod; -import javax.jws.WebParam; -import javax.jws.WebService; -import javax.ws.rs.DELETE; -import javax.ws.rs.FormParam; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.MediaType; +import jakarta.jws.WebMethod; +import jakarta.jws.WebParam; +import jakarta.jws.WebService; +import jakarta.ws.rs.DELETE; +import jakarta.ws.rs.FormParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.MediaType; import org.apache.cxf.feature.Features; import org.apache.openmeetings.db.dao.calendar.AppointmentDao; diff --git a/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/ErrorWebService.java b/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/ErrorWebService.java index 3561036e9..a84ab1bcc 100644 --- a/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/ErrorWebService.java +++ b/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/ErrorWebService.java @@ -20,16 +20,16 @@ package org.apache.openmeetings.webservice; import static org.apache.openmeetings.webservice.Constants.TNS; -import javax.jws.WebMethod; -import javax.jws.WebParam; -import javax.jws.WebService; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.MediaType; +import jakarta.jws.WebMethod; +import jakarta.jws.WebParam; +import jakarta.jws.WebService; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.MediaType; import org.apache.cxf.feature.Features; import org.apache.openmeetings.db.dao.label.LabelDao; diff --git a/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/FileWebService.java b/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/FileWebService.java index 5642c2f33..c1d587e99 100644 --- a/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/FileWebService.java +++ b/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/FileWebService.java @@ -25,18 +25,18 @@ import java.util.List; import java.util.Optional; import java.util.Set; -import javax.jws.WebMethod; -import javax.jws.WebParam; -import javax.jws.WebService; -import javax.ws.rs.Consumes; -import javax.ws.rs.DELETE; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.MediaType; +import jakarta.jws.WebMethod; +import jakarta.jws.WebParam; +import jakarta.jws.WebService; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.DELETE; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.MediaType; import org.apache.cxf.feature.Features; import org.apache.cxf.jaxrs.ext.multipart.Multipart; diff --git a/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/GroupWebService.java b/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/GroupWebService.java index 4da907296..6901fb608 100644 --- a/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/GroupWebService.java +++ b/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/GroupWebService.java @@ -25,17 +25,17 @@ import java.util.ArrayList; import java.util.Iterator; import java.util.List; -import javax.jws.WebMethod; -import javax.jws.WebParam; -import javax.jws.WebService; -import javax.ws.rs.DELETE; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.MediaType; +import jakarta.jws.WebMethod; +import jakarta.jws.WebParam; +import jakarta.jws.WebService; +import jakarta.ws.rs.DELETE; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.MediaType; import org.apache.cxf.feature.Features; import org.apache.openmeetings.db.dao.user.GroupDao; diff --git a/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/InfoWebService.java b/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/InfoWebService.java index cb6705401..53ed76046 100644 --- a/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/InfoWebService.java +++ b/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/InfoWebService.java @@ -24,12 +24,12 @@ import static org.apache.openmeetings.webservice.Constants.TNS; import java.net.URI; -import javax.jws.WebMethod; -import javax.jws.WebService; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; +import jakarta.jws.WebMethod; +import jakarta.jws.WebService; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; import org.apache.cxf.feature.Features; import org.apache.openmeetings.db.dto.basic.Health; diff --git a/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/NetTestWebService.java b/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/NetTestWebService.java index 7a5ca8db5..1db37f87c 100644 --- a/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/NetTestWebService.java +++ b/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/NetTestWebService.java @@ -24,16 +24,17 @@ import java.io.InputStream; import java.util.concurrent.ThreadLocalRandom; import java.util.concurrent.atomic.AtomicInteger; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.core.Response.Status; + import javax.annotation.PostConstruct; -import javax.ws.rs.Consumes; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.Response; -import javax.ws.rs.core.Response.Status; import org.apache.openmeetings.webservice.util.RateLimited; import org.slf4j.Logger; diff --git a/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/RecordingWebService.java b/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/RecordingWebService.java index 255412cfd..2a8d16741 100644 --- a/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/RecordingWebService.java +++ b/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/RecordingWebService.java @@ -22,16 +22,16 @@ import static org.apache.openmeetings.webservice.Constants.TNS; import java.util.List; -import javax.jws.WebMethod; -import javax.jws.WebParam; -import javax.jws.WebService; -import javax.ws.rs.DELETE; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.MediaType; +import jakarta.jws.WebMethod; +import jakarta.jws.WebParam; +import jakarta.jws.WebService; +import jakarta.ws.rs.DELETE; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.MediaType; import org.apache.cxf.feature.Features; import org.apache.openmeetings.db.dao.record.RecordingDao; diff --git a/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/RoomWebService.java b/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/RoomWebService.java index 88047c6f2..7dfc20c9b 100644 --- a/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/RoomWebService.java +++ b/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/RoomWebService.java @@ -23,18 +23,18 @@ import static org.apache.openmeetings.webservice.Constants.TNS; import java.util.ArrayList; import java.util.List; -import javax.jws.WebMethod; -import javax.jws.WebParam; -import javax.jws.WebService; -import javax.ws.rs.DELETE; -import javax.ws.rs.FormParam; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.MediaType; +import jakarta.jws.WebMethod; +import jakarta.jws.WebParam; +import jakarta.jws.WebService; +import jakarta.ws.rs.DELETE; +import jakarta.ws.rs.FormParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.MediaType; import org.apache.cxf.feature.Features; import org.apache.openmeetings.core.util.WebSocketHelper; @@ -51,7 +51,6 @@ import org.apache.openmeetings.db.entity.room.Room; import org.apache.openmeetings.db.entity.room.RoomFile; import org.apache.openmeetings.db.entity.user.User; import org.apache.openmeetings.db.manager.IClientManager; -import org.apache.openmeetings.db.manager.IWhiteboardManager; import org.apache.openmeetings.db.mapper.RoomMapper; import org.apache.openmeetings.db.util.ws.RoomMessage; import org.apache.openmeetings.service.room.InvitationManager; @@ -94,8 +93,6 @@ public class RoomWebService extends BaseWebService { @Autowired private IClientManager clientManager; @Autowired - private IWhiteboardManager wbManager; - @Autowired private InvitationDao inviteDao; @Autowired private InvitationManager inviteManager; diff --git a/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/UserWebService.java b/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/UserWebService.java index 19acc7c6c..bb26ee6e9 100644 --- a/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/UserWebService.java +++ b/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/UserWebService.java @@ -30,18 +30,18 @@ import java.security.NoSuchAlgorithmException; import java.util.List; import java.util.Locale; -import javax.jws.WebMethod; -import javax.jws.WebParam; -import javax.jws.WebService; -import javax.ws.rs.DELETE; -import javax.ws.rs.FormParam; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.MediaType; +import jakarta.jws.WebMethod; +import jakarta.jws.WebParam; +import jakarta.jws.WebService; +import jakarta.ws.rs.DELETE; +import jakarta.ws.rs.FormParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.MediaType; import org.apache.cxf.feature.Features; import org.apache.openmeetings.core.util.StrongPasswordValidator; diff --git a/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/WbWebService.java b/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/WbWebService.java index 2c88b72fd..4be455b1f 100644 --- a/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/WbWebService.java +++ b/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/WbWebService.java @@ -29,17 +29,18 @@ import java.io.OutputStream; import java.nio.file.Paths; import javax.imageio.ImageIO; -import javax.jws.WebMethod; -import javax.jws.WebParam; -import javax.jws.WebService; -import javax.ws.rs.FormParam; -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; -import javax.ws.rs.Produces; -import javax.ws.rs.QueryParam; -import javax.ws.rs.core.MediaType; + +import jakarta.jws.WebMethod; +import jakarta.jws.WebParam; +import jakarta.jws.WebService; +import jakarta.ws.rs.FormParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.MediaType; import org.apache.commons.codec.binary.Base64; import org.apache.commons.io.FileUtils; diff --git a/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/error/ServiceException.java b/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/error/ServiceException.java index 4b67a9b8c..447ec00dd 100644 --- a/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/error/ServiceException.java +++ b/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/error/ServiceException.java @@ -18,7 +18,7 @@ */ package org.apache.openmeetings.webservice.error; -import javax.xml.ws.WebFault; +import jakarta.xml.ws.WebFault; import org.apache.openmeetings.db.dto.basic.ServiceResult; diff --git a/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/util/AppointmentListMessageBodyWriter.java b/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/util/AppointmentListMessageBodyWriter.java index 087c1cb22..3765fcf3b 100644 --- a/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/util/AppointmentListMessageBodyWriter.java +++ b/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/util/AppointmentListMessageBodyWriter.java @@ -30,11 +30,11 @@ import java.lang.reflect.ParameterizedType; import java.lang.reflect.Type; import java.util.List; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.MessageBodyWriter; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.ext.MessageBodyWriter; +import jakarta.ws.rs.ext.Provider; import org.apache.openmeetings.db.dto.calendar.AppointmentDTO; diff --git a/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/util/AppointmentMessageBodyReader.java b/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/util/AppointmentMessageBodyReader.java index 812fb0f35..68b931059 100644 --- a/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/util/AppointmentMessageBodyReader.java +++ b/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/util/AppointmentMessageBodyReader.java @@ -27,11 +27,11 @@ import java.io.InputStreamReader; import java.lang.annotation.Annotation; import java.lang.reflect.Type; -import javax.ws.rs.Consumes; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.MessageBodyReader; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.ext.MessageBodyReader; +import jakarta.ws.rs.ext.Provider; import org.apache.openmeetings.db.dto.calendar.AppointmentDTO; diff --git a/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/util/AppointmentMessageBodyWriter.java b/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/util/AppointmentMessageBodyWriter.java index 736c2a926..42de63dc1 100644 --- a/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/util/AppointmentMessageBodyWriter.java +++ b/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/util/AppointmentMessageBodyWriter.java @@ -28,11 +28,11 @@ import java.io.Writer; import java.lang.annotation.Annotation; import java.lang.reflect.Type; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.MessageBodyWriter; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.ext.MessageBodyWriter; +import jakarta.ws.rs.ext.Provider; import org.apache.openmeetings.db.dto.calendar.AppointmentDTO; diff --git a/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/util/AppointmentParamConverter.java b/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/util/AppointmentParamConverter.java index f3228015d..b557f1a8e 100644 --- a/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/util/AppointmentParamConverter.java +++ b/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/util/AppointmentParamConverter.java @@ -24,7 +24,7 @@ import static org.apache.openmeetings.util.CalendarPatterns.ISO8601_FULL_FORMAT; import java.util.Date; -import javax.ws.rs.ext.ParamConverter; +import jakarta.ws.rs.ext.ParamConverter; import org.apache.openmeetings.db.dto.calendar.AppointmentDTO; import org.apache.openmeetings.db.dto.calendar.MeetingMemberDTO; diff --git a/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/util/CalendarParamConverter.java b/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/util/CalendarParamConverter.java index 7d4cf1990..31ee459be 100644 --- a/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/util/CalendarParamConverter.java +++ b/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/util/CalendarParamConverter.java @@ -23,7 +23,7 @@ import static org.apache.openmeetings.util.CalendarPatterns.ISO8601_FULL_FORMAT; import java.util.Calendar; import java.util.TimeZone; -import javax.ws.rs.ext.ParamConverter; +import jakarta.ws.rs.ext.ParamConverter; import org.apache.wicket.util.string.Strings; diff --git a/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/util/DateParamConverter.java b/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/util/DateParamConverter.java index 0b454051b..3051c7d38 100644 --- a/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/util/DateParamConverter.java +++ b/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/util/DateParamConverter.java @@ -25,7 +25,7 @@ import static org.apache.openmeetings.util.CalendarPatterns.ISO8601_FULL_FORMAT; import java.text.ParseException; import java.util.Date; -import javax.ws.rs.ext.ParamConverter; +import jakarta.ws.rs.ext.ParamConverter; import org.apache.commons.lang3.time.FastDateFormat; import org.apache.wicket.util.string.Strings; diff --git a/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/util/OmExceptionHandler.java b/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/util/OmExceptionHandler.java index 56aac5d42..2747b252e 100644 --- a/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/util/OmExceptionHandler.java +++ b/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/util/OmExceptionHandler.java @@ -18,8 +18,8 @@ */ package org.apache.openmeetings.webservice.util; -import javax.ws.rs.core.Response; -import javax.ws.rs.ext.ExceptionMapper; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.ExceptionMapper; import org.apache.openmeetings.db.dto.basic.ServiceResult; import org.apache.openmeetings.db.dto.basic.ServiceResult.Type; diff --git a/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/util/OmParamConverterProvider.java b/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/util/OmParamConverterProvider.java index 52fafc7e4..ca5ae0c75 100644 --- a/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/util/OmParamConverterProvider.java +++ b/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/util/OmParamConverterProvider.java @@ -23,8 +23,8 @@ import java.lang.reflect.Type; import java.util.Calendar; import java.util.Date; -import javax.ws.rs.ext.ParamConverter; -import javax.ws.rs.ext.ParamConverterProvider; +import jakarta.ws.rs.ext.ParamConverter; +import jakarta.ws.rs.ext.ParamConverterProvider; import org.apache.openmeetings.db.dto.calendar.AppointmentDTO; import org.apache.openmeetings.db.dto.user.UserDTO; diff --git a/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/util/RateLimitRequestFilter.java b/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/util/RateLimitRequestFilter.java index 50352cb83..6542cbb17 100644 --- a/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/util/RateLimitRequestFilter.java +++ b/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/util/RateLimitRequestFilter.java @@ -20,13 +20,14 @@ package org.apache.openmeetings.webservice.util; import java.util.List; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpSession; -import javax.ws.rs.container.ContainerRequestContext; -import javax.ws.rs.container.ContainerRequestFilter; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.Response; -import javax.ws.rs.core.Response.Status; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerRequestFilter; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.core.Response.Status; + +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpSession; import org.apache.openmeetings.webservice.NetTestWebService; import org.apache.openmeetings.webservice.NetTestWebService.TestType; diff --git a/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/util/RateLimited.java b/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/util/RateLimited.java index 86834f863..3d5a55a62 100644 --- a/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/util/RateLimited.java +++ b/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/util/RateLimited.java @@ -25,7 +25,7 @@ import static java.lang.annotation.RetentionPolicy.RUNTIME; import java.lang.annotation.Retention; import java.lang.annotation.Target; -import javax.ws.rs.NameBinding; +import jakarta.ws.rs.NameBinding; @Retention(RUNTIME) @Target({TYPE, METHOD}) diff --git a/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/util/UserMessageBodyWriter.java b/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/util/UserMessageBodyWriter.java index b97b173c4..0ed1f7edd 100644 --- a/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/util/UserMessageBodyWriter.java +++ b/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/util/UserMessageBodyWriter.java @@ -28,11 +28,11 @@ import java.io.Writer; import java.lang.annotation.Annotation; import java.lang.reflect.Type; -import javax.ws.rs.Produces; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.MessageBodyWriter; -import javax.ws.rs.ext.Provider; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.MultivaluedMap; +import jakarta.ws.rs.ext.MessageBodyWriter; +import jakarta.ws.rs.ext.Provider; import org.apache.openmeetings.db.dto.user.UserDTO; diff --git a/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/util/UserParamConverter.java b/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/util/UserParamConverter.java index 9ffde2ebc..ec4bc8d43 100644 --- a/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/util/UserParamConverter.java +++ b/openmeetings-webservice/src/main/java/org/apache/openmeetings/webservice/util/UserParamConverter.java @@ -18,7 +18,7 @@ */ package org.apache.openmeetings.webservice.util; -import javax.ws.rs.ext.ParamConverter; +import jakarta.ws.rs.ext.ParamConverter; import org.apache.openmeetings.db.dto.user.UserDTO; diff --git a/pom.xml b/pom.xml index dc69a4696..87f3abdee 100644 --- a/pom.xml +++ b/pom.xml @@ -80,15 +80,15 @@ <swagger-plugin.version>2.1.6</swagger-plugin.version> <!-- dependency versions --> <junit.version>5.9.2</junit.version> - <wicket.version>9.12.0</wicket.version> + <wicket.version>10.0.0-M1-SNAPSHOT</wicket.version> <wicket-jquery-ui.version>9.11.0</wicket-jquery-ui.version> <wicketstuff.version>9.12.0</wicketstuff.version> <wicket-bootstrap.version>6.0.0</wicket-bootstrap.version> <font-awesome.version>6.2.0</font-awesome.version> - <spring.version>5.3.24</spring.version> - <tomcat.version>9.0.71</tomcat.version> + <spring.version>6.0.3</spring.version> + <tomcat.version>10.1.4</tomcat.version> <ical4j.version>4.0.0-beta5</ical4j.version> - <cxf.version>3.5.5</cxf.version> + <cxf.version>4.0.0</cxf.version> <io.prometheus.version>0.16.0</io.prometheus.version> <aspectjtools.version>1.9.19</aspectjtools.version> <simple-xml.version>2.7.1</simple-xml.version> @@ -119,7 +119,7 @@ <tika-parsers.version>2.6.0</tika-parsers.version> <slf4j.version>2.0.6</slf4j.version> <logback.version>1.4.5</logback.version> - <jetty.version>9.4.50.v20221201</jetty.version> + <jetty.version>11.0.13</jetty.version> <license.excludedScopes>test</license.excludedScopes> <bcprov-jdk15on.version>1.70</bcprov-jdk15on.version> <mockito.version>5.0.0</mockito.version> @@ -129,7 +129,7 @@ <jasny-bootstrap.version>3.1.3-2</jasny-bootstrap.version> <jodconverter.version>4.4.5</jodconverter.version> <jaxb-runtime.version>2.3.7</jaxb-runtime.version> - <javax.servlet-api.version>3.1.0</javax.servlet-api.version> + <jakarta.servlet-api.version>5.0.0</jakarta.servlet-api.version> <jquery-ui-touch-punch.version>0.2.3-2</jquery-ui-touch-punch.version> <apacheds-test-framework.version>2.0.0.AM26</apacheds-test-framework.version> <swagger.version>2.2.8</swagger.version> @@ -552,7 +552,7 @@ <artifactId>*</artifactId> </exclusion> <exclusion> - <groupId>javax.servlet</groupId> + <groupId>jakarta.servlet</groupId> <artifactId>*</artifactId> </exclusion> </exclusions> @@ -567,7 +567,7 @@ <artifactId>*</artifactId> </exclusion> <exclusion> - <groupId>javax.servlet</groupId> + <groupId>jakarta.servlet</groupId> <artifactId>*</artifactId> </exclusion> <exclusion> @@ -663,9 +663,9 @@ <version>${wicket.version}</version> </dependency> <dependency> - <groupId>javax.servlet</groupId> - <artifactId>javax.servlet-api</artifactId> - <version>${javax.servlet-api.version}</version> + <groupId>jakarta.servlet</groupId> + <artifactId>jakarta.servlet-api</artifactId> + <version>${jakarta.servlet-api.version}</version> <scope>provided</scope> </dependency> <dependency> @@ -1061,8 +1061,8 @@ <scope>test</scope> </dependency> <dependency> - <groupId>javax.servlet</groupId> - <artifactId>javax.servlet-api</artifactId> + <groupId>jakarta.servlet</groupId> + <artifactId>jakarta.servlet-api</artifactId> </dependency> </dependencies> <build>