Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jetty 11 #550

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 30 additions & 11 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,13 @@
<dep.jackson.version>2.13.4</dep.jackson.version>
<dep.jakarta.activation-api.version>1.2.2</dep.jakarta.activation-api.version>
<dep.jakarta.servlet-api.version>4.0.3</dep.jakarta.servlet-api.version>
<dep.jakarta.xml.bind-api.version>2.3.3</dep.jakarta.xml.bind-api.version>
<dep.javax.annotation-api.version>1.3.2</dep.javax.annotation-api.version>
<dep.jaxb.runtime.version>2.3.8</dep.jaxb.runtime.version>
<dep.jakarta.xml.bind-api.version>3.0.1</dep.jakarta.xml.bind-api.version>
<dep.jaxb.runtime.version>3.0.1</dep.jaxb.runtime.version>
<dep.jdom2.version>2.0.6.1</dep.jdom2.version>
<dep.jersey.version>2.40</dep.jersey.version>
<dep.jetty.version>10.0.15</dep.jetty.version>
<dep.jersey.version>3.1.3</dep.jersey.version>
<dep.jetty.version>11.0.16</dep.jetty.version>
<dep.junit-jupiter.version>5.8.2</dep.junit-jupiter.version>
<dep.logback.version>1.3.12</dep.logback.version>
<dep.logback.version>1.4.14</dep.logback.version>
<!-- seems to have an impact with java 11 integration, update with caution -->
<dep.maven-surefire-plugin.version>3.1.0</dep.maven-surefire-plugin.version>
<dep.mockito.version>5.4.0</dep.mockito.version>
Expand Down Expand Up @@ -199,11 +198,6 @@
<artifactId>jakarta.xml.bind-api</artifactId>
<version>${dep.jakarta.xml.bind-api.version}</version>
</dependency>
<dependency>
<groupId>javax.annotation</groupId>
<artifactId>javax.annotation-api</artifactId>
<version>${dep.javax.annotation-api.version}</version>
</dependency>
<dependency>
<groupId>net.spy</groupId>
<artifactId>spymemcached</artifactId>
Expand Down Expand Up @@ -308,6 +302,12 @@
<artifactId>junit-jupiter</artifactId>
<version>${dep.junit-jupiter.version}</version>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.hamcrest</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
Expand Down Expand Up @@ -923,6 +923,25 @@
<artifactId>duplicate-finder-maven-plugin</artifactId>
<version>1.5.1</version>
<configuration>
<exceptions>
<exception>
<conflictingDependencies>
<dependency>
<groupId>org.glassfish.jersey.containers</groupId>
<artifactId>jersey-container-jetty-http</artifactId>
<version>${dep.jersey.version}</version>
</dependency>
<dependency>
<groupId>org.glassfish.jersey.test-framework.providers</groupId>
<artifactId>jersey-test-framework-provider-jetty</artifactId>
<version>${dep.jersey.version}</version>
</dependency>
</conflictingDependencies>
<resources>
<resource>org/glassfish/jersey/jetty/internal/localization.properties</resource>
</resources>
</exception>
</exceptions>
<printEqualFiles>false</printEqualFiles>
<failBuildInCaseOfDifferentContentConflict>true</failBuildInCaseOfDifferentContentConflict>
<failBuildInCaseOfEqualContentConflict>false</failBuildInCaseOfEqualContentConflict>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/emissary/client/EmissaryClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import emissary.config.Configurator;

import com.google.common.annotations.VisibleForTesting;
import jakarta.ws.rs.core.MediaType;
import org.apache.hc.client5.http.auth.AuthCache;
import org.apache.hc.client5.http.auth.AuthScope;
import org.apache.hc.client5.http.auth.Credentials;
Expand Down Expand Up @@ -36,7 +37,6 @@
import java.util.Properties;
import java.util.concurrent.TimeUnit;
import javax.annotation.Nullable;
import javax.ws.rs.core.MediaType;

/**
* Base class of all the actions that use HttpClient.
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/emissary/client/EmissaryResponse.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import emissary.client.response.BaseEntity;

import com.fasterxml.jackson.databind.ObjectMapper;
import jakarta.ws.rs.core.MediaType;
import org.apache.commons.io.IOUtils;
import org.apache.hc.core5.http.ClassicHttpResponse;
import org.apache.hc.core5.http.Header;
Expand All @@ -17,7 +18,6 @@
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.util.Arrays;
import javax.ws.rs.core.MediaType;

public class EmissaryResponse {

Expand Down
6 changes: 3 additions & 3 deletions src/main/java/emissary/client/response/Agent.java
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package emissary.client.response;

import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlElement;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;

import java.io.Serializable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;

@XmlAccessorType(XmlAccessType.NONE)
public class Agent implements Comparable<Agent>, Serializable {
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/emissary/client/response/AgentList.java
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
package emissary.client.response;

import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlElement;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.io.Serializable;
import java.util.Set;
import java.util.SortedSet;
import java.util.TreeSet;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;

@XmlAccessorType(XmlAccessType.NONE)
public class AgentList implements Serializable {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
package emissary.client.response;

import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlRootElement;

import java.util.Comparator;
import java.util.HashSet;
import java.util.Set;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import javax.annotation.Nullable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name = "agents")
@XmlAccessorType(XmlAccessType.NONE)
Expand Down
11 changes: 6 additions & 5 deletions src/main/java/emissary/client/response/BaseResponseEntity.java
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
package emissary.client.response;

import jakarta.xml.bind.annotation.XmlAccessOrder;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorOrder;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlElement;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;
import javax.annotation.Nullable;
import javax.xml.bind.annotation.XmlAccessOrder;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorOrder;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;

@XmlAccessorType(XmlAccessType.NONE)
@XmlAccessorOrder(XmlAccessOrder.ALPHABETICAL)
Expand Down
7 changes: 4 additions & 3 deletions src/main/java/emissary/client/response/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@

import emissary.config.ConfigEntry;

import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlElement;

import java.io.Serializable;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;

@XmlAccessorType(XmlAccessType.NONE)
public class Config implements Serializable {
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/emissary/client/response/ConfigList.java
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
package emissary.client.response;

import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlElement;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;

@XmlAccessorType(XmlAccessType.NONE)
public class ConfigList implements Serializable {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
package emissary.client.response;

import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlRootElement;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name = "configs")
@XmlAccessorType(XmlAccessType.NONE)
public class ConfigsResponseEntity extends BaseResponseEntity {
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/emissary/client/response/Directory.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

import emissary.directory.DirectoryEntry;

import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlElement;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;

import java.io.Serializable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;

@XmlAccessorType(XmlAccessType.NONE)
public class Directory implements Comparable<Directory>, Serializable {
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/emissary/client/response/DirectoryList.java
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
package emissary.client.response;

import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlElement;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.io.Serializable;
import java.util.Set;
import java.util.SortedSet;
import java.util.TreeSet;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;

@XmlAccessorType(XmlAccessType.NONE)
public class DirectoryList implements Serializable {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
package emissary.client.response;

import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlRootElement;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name = "directories")
@XmlAccessorType(XmlAccessType.NONE)
public class DirectoryResponseEntity extends BaseResponseEntity {
Expand Down
8 changes: 4 additions & 4 deletions src/main/java/emissary/client/response/MapResponseEntity.java
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
package emissary.client.response;

import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlRootElement;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.Map;
import java.util.TreeMap;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name = "mapResponseEntity")
@XmlAccessorType(XmlAccessType.NONE)
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/emissary/client/response/PeerList.java
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package emissary.client.response;

import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlElement;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.io.Serializable;
import java.util.Set;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;

@XmlAccessorType(XmlAccessType.NONE)
public class PeerList implements Serializable {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
package emissary.client.response;

import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlRootElement;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.HashSet;
import java.util.Set;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name = "peers")
@XmlAccessorType(XmlAccessType.NONE)
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/emissary/client/response/PlaceList.java
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
package emissary.client.response;

import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlElement;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.io.Serializable;
import java.util.Set;
import java.util.SortedSet;
import java.util.TreeSet;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;

@XmlAccessorType(XmlAccessType.NONE)
public class PlaceList implements Serializable {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
package emissary.client.response;

import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlRootElement;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.HashSet;
import java.util.Set;
import javax.annotation.Nullable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name = "places")
@XmlAccessorType(XmlAccessType.NONE)
Expand Down
5 changes: 2 additions & 3 deletions src/main/java/emissary/server/InitializeContext.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@
import emissary.core.EmissaryException;
import emissary.directory.EmissaryNode;

import jakarta.servlet.ServletContextEvent;
import jakarta.servlet.ServletContextListener;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

/**
* Initialize the application from inside the webapp context This initializer performs the following actions
* <ol>
Expand Down
Loading