From 0a15ed81fdde99920359f209341114119c1aa11a Mon Sep 17 00:00:00 2001 From: Instrumental Date: Tue, 28 Jan 2020 15:54:01 -0600 Subject: [PATCH] Modify for use of JDK 11 Issue-ID: AAF-1066 Signed-off-by: Instrumental Change-Id: I31484958c48b0d9b930921bec2581144e0675970 --- .../java/org/onap/aaf/auth/server/AbsService.java | 4 +- auth/docker/Dockerfile.base | 9 ++- auth/docker/dclean.sh | 1 + cadi/aaf/src/assemble/cadi-aaf.xml | 2 + misc/rosetta/pom.xml | 8 --- pom.xml | 68 +++++++++++++++++----- 6 files changed, 66 insertions(+), 26 deletions(-) diff --git a/auth/auth-core/src/main/java/org/onap/aaf/auth/server/AbsService.java b/auth/auth-core/src/main/java/org/onap/aaf/auth/server/AbsService.java index 678fb28e..0e770e5f 100644 --- a/auth/auth-core/src/main/java/org/onap/aaf/auth/server/AbsService.java +++ b/auth/auth-core/src/main/java/org/onap/aaf/auth/server/AbsService.java @@ -25,7 +25,7 @@ import java.security.NoSuchAlgorithmException; import java.util.Properties; import javax.net.ssl.SSLContext; -import javax.net.ssl.SSLSocketFactory; +import javax.net.ssl.SSLServerSocketFactory; import javax.servlet.Filter; import org.onap.aaf.auth.common.Define; @@ -86,7 +86,7 @@ public abstract class AbsService exte } catch (NoSuchAlgorithmException e) { throw new CadiException("SSLContext issue",e); } - SSLSocketFactory sf = context.getSocketFactory(); + SSLServerSocketFactory sf = context.getServerSocketFactory(); StringBuilder sb = new StringBuilder("Available Cipher Suites: "); boolean first = true; int count=0; diff --git a/auth/docker/Dockerfile.base b/auth/docker/Dockerfile.base index 4ba4dfab..523d63f0 100644 --- a/auth/docker/Dockerfile.base +++ b/auth/docker/Dockerfile.base @@ -18,15 +18,18 @@ # ============LICENSE_END==================================================== # # Use dbuild.sh input parameter to set registry -#FROM ${REGISTRY}/openjdk:11.0.5-jre-slim -FROM ${REGISTRY}/openjdk:8-jdk-alpine +#FROM ${REGISTRY}/openjdk:11-jre-slim +#FROM ${REGISTRY}/openjdk:8-jdk-alpine +FROM ${REGISTRY}/alpine #FROM openjdk:12-jdk-alpine #FROM openjdk:13-jdk-alpine MAINTAINER AAF Team, AT&T 2018 LABEL description="aaf_base" -RUN apk add --no-cache bash &&\ +ENV JAVA_HOME /usr/lib/jvm/java-11-openjdk +RUN apk --no-cache add openjdk11 &&\ + apk add --no-cache bash &&\ apk add --no-cache openssl &&\ apk add --no-cache curl &&\ if [ -n "${DUSER}" ]; then addgroup ${DUSER} && adduser ${DUSER} -G ${DUSER} -D -s /bin/bash; fi diff --git a/auth/docker/dclean.sh b/auth/docker/dclean.sh index 0e974aa6..f27cc4ec 100644 --- a/auth/docker/dclean.sh +++ b/auth/docker/dclean.sh @@ -36,4 +36,5 @@ for AAF_COMPONENT in ${AAF_COMPONENTS}; do $DOCKER image rm $DOCKER_REPOSITORY/$ORG/$PROJECT/aaf_$AAF_COMPONENT:latest fi done + echo "Y" | $DOCKER image prune diff --git a/cadi/aaf/src/assemble/cadi-aaf.xml b/cadi/aaf/src/assemble/cadi-aaf.xml index 0a485b83..63741ffa 100644 --- a/cadi/aaf/src/assemble/cadi-aaf.xml +++ b/cadi/aaf/src/assemble/cadi-aaf.xml @@ -19,6 +19,8 @@ org.onap.aaf.authz:aaf-cadi-client org.onap.aaf.authz:aaf-misc-env org.onap.aaf.authz:aaf-misc-rosetta + javax.xml.bind:jaxb-api + org.glassfish.jaxb:jaxb-runtime diff --git a/misc/rosetta/pom.xml b/misc/rosetta/pom.xml index 73d388dd..2f3ea41d 100644 --- a/misc/rosetta/pom.xml +++ b/misc/rosetta/pom.xml @@ -85,15 +85,7 @@ org.glassfish.jaxb jaxb-runtime - runtime - - com.sun.istack - istack-commons-runtime - 2.2 - runtime - - diff --git a/pom.xml b/pom.xml index f1846665..cdeac0cc 100644 --- a/pom.xml +++ b/pom.xml @@ -29,12 +29,12 @@ org.onap.oparent oparent - 2.1.0 + 3.0.0-SNAPSHOT @@ -55,6 +55,10 @@ 1.9.5 ${project.version} 9.4.12.v20180830 + 3.6.0 2.3.1 3.0-b71 @@ -243,16 +247,37 @@ 3.0.1 - + + + org.eclipse.jetty + jetty-servlet + ${project.jettyVersion} + + + org.eclipse.jetty + jetty-server + ${project.jettyVersion} + + + org.eclipse.jetty + jetty-http + ${project.jettyVersion} + + + org.eclipse.jetty + jetty-io + ${project.jettyVersion} + + + org.eclipse.jetty + jetty-security + ${project.jettyVersion} + + + org.eclipse.jetty + jetty-util + ${project.jettyVersion} + org.slf4j @@ -349,6 +374,12 @@ + + + javax.annotation + javax.annotation-api + 1.3.2 + javax.xml.bind jaxb-api @@ -364,7 +395,18 @@ jaxb-runtime ${project.jaxbVersion} - + -- 2.16.6