Modify for use of JDK 11 81/100881/2
authorInstrumental <jgonap@stl.gathman.org>
Tue, 28 Jan 2020 21:54:01 +0000 (15:54 -0600)
committerInstrumental <jgonap@stl.gathman.org>
Tue, 28 Jan 2020 22:13:50 +0000 (16:13 -0600)
Issue-ID: AAF-1066
Signed-off-by: Instrumental <jgonap@stl.gathman.org>
Change-Id: I31484958c48b0d9b930921bec2581144e0675970

auth/auth-core/src/main/java/org/onap/aaf/auth/server/AbsService.java
auth/docker/Dockerfile.base
auth/docker/dclean.sh
cadi/aaf/src/assemble/cadi-aaf.xml
misc/rosetta/pom.xml
pom.xml

index 678fb28..0e770e5 100644 (file)
@@ -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<ENV extends BasicEnv, TRANS extends Trans> 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;
index 4ba4dfa..523d63f 100644 (file)
 #  ============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
index 0e974aa..f27cc4e 100644 (file)
@@ -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
index 0a485b8..63741ff 100644 (file)
@@ -19,6 +19,8 @@
        <include>org.onap.aaf.authz:aaf-cadi-client</include>
        <include>org.onap.aaf.authz:aaf-misc-env</include>
        <include>org.onap.aaf.authz:aaf-misc-rosetta</include>
+       <include>javax.xml.bind:jaxb-api</include>
+       <include>org.glassfish.jaxb:jaxb-runtime</include>
       </includes>
     </dependencySet>
 
index 73d388d..2f3ea41 100644 (file)
         <dependency>
           <groupId>org.glassfish.jaxb</groupId>
           <artifactId>jaxb-runtime</artifactId>
-          <scope>runtime</scope>
         </dependency>
-        <dependency>
-          <groupId>com.sun.istack</groupId>
-          <artifactId>istack-commons-runtime</artifactId>
-          <version>2.2</version>
-          <scope>runtime</scope>
-        </dependency>
-        
     </dependencies>
 
             
diff --git a/pom.xml b/pom.xml
index f184666..cdeac0c 100644 (file)
--- a/pom.xml
+++ b/pom.xml
     <parent>
         <groupId>org.onap.oparent</groupId>
         <artifactId>oparent</artifactId>
-        <version>2.1.0</version>
         <!-- Official Released Version
+        <version>2.1.0</version>
 
         Frankfurt working Version
-        <version>3.0.0-SNAPSHOT</version>
     -->
+        <version>3.0.0-SNAPSHOT</version>
     </parent>
 
     <properties>
         <mockito.version>1.9.5</mockito.version>
         <project.interfaceVersion>${project.version}</project.interfaceVersion>
         <project.jettyVersion>9.4.12.v20180830</project.jettyVersion>
+        <!--
+            This version requires changes in how to start Jetty  
+               <project.jettyVersion>9.4.26.v20200117</project.jettyVersion>
+        -->
         <project.cassVersion>3.6.0</project.cassVersion>
         <project.jaxbVersion>2.3.1</project.jaxbVersion>
         <project.glassfishJaxbVersion>3.0-b71</project.glassfishJaxbVersion>
                 <version>3.0.1</version>
             </dependency>
 
-            <!-- JettyVersion is partly covered in "OParent" dependency> <groupId>org.eclipse.jetty</groupId> 
-                <artifactId>jetty-servlet</artifactId> <version>${project.jettyVersion}</version> 
-                </dependency><dependency> <groupId>org.eclipse.jetty</groupId> <artifactId>jetty-server</artifactId> 
-                <version>${project.jettyVersion}</version> </dependency> <dependency> <groupId>org.eclipse.jetty</groupId> 
-                <artifactId>jetty-http</artifactId> <version>${project.jettyVersion}</version> 
-                </dependency> <dependency> <groupId>org.eclipse.jetty</groupId> <artifactId>jetty-io</artifactId> 
-                <version>${project.jettyVersion}</version> </dependency> <dependency> <groupId>org.eclipse.jetty</groupId> 
-                <artifactId>jetty-security</artifactId> <version>${project.jettyVersion}</version> 
-                </dependency> <dependency> <groupId>org.eclipse.jetty</groupId> <artifactId>jetty-util</artifactId> 
-                <version>${project.jettyVersion}</version> </dependency> -->
+                                   <!-- JettyVersion is partly covered in "OParent" dependency> -->
+                       <dependency>
+                               <groupId>org.eclipse.jetty</groupId>
+                               <artifactId>jetty-servlet</artifactId>
+                               <version>${project.jettyVersion}</version>
+                       </dependency>
+                       <dependency>
+                               <groupId>org.eclipse.jetty</groupId>
+                               <artifactId>jetty-server</artifactId>
+                               <version>${project.jettyVersion}</version>
+                       </dependency>
+                       <dependency>
+                               <groupId>org.eclipse.jetty</groupId>
+                               <artifactId>jetty-http</artifactId>
+                               <version>${project.jettyVersion}</version>
+                       </dependency>
+                       <dependency>
+                               <groupId>org.eclipse.jetty</groupId>
+                               <artifactId>jetty-io</artifactId>
+                               <version>${project.jettyVersion}</version>
+                       </dependency>
+                       <dependency>
+                               <groupId>org.eclipse.jetty</groupId>
+                               <artifactId>jetty-security</artifactId>
+                               <version>${project.jettyVersion}</version>
+                       </dependency>
+                       <dependency>
+                               <groupId>org.eclipse.jetty</groupId>
+                               <artifactId>jetty-util</artifactId>
+                               <version>${project.jettyVersion}</version>
+                       </dependency> 
 
             <dependency>
                 <groupId>org.slf4j</groupId>
             </dependency>
 
           <!-- Javax removed as of JDK 9 -->
+          <!--  Annotation MAY not be needed -->
+          <dependency>
+            <groupId>javax.annotation</groupId>
+            <artifactId>javax.annotation-api</artifactId>
+            <version>1.3.2</version>
+          </dependency>
           <dependency>
             <groupId>javax.xml.bind</groupId>
             <artifactId>jaxb-api</artifactId>
             <artifactId>jaxb-runtime</artifactId>
             <version>${project.jaxbVersion}</version>
           </dependency>
-          
+          <!-- 
+          <dependency>
+                   <groupId>com.sun.xml.bind</groupId>
+                   <artifactId>jaxb-impl</artifactId>
+                   <version>2.2.11</version>
+                 </dependency>
+                 <dependency>
+                       <groupId>com.sun.xml.bind</groupId>
+                       <artifactId>jaxb-core</artifactId>
+                       <version>2.2.11</version>
+                  </dependency>
+                   -->
         </dependencies>
     </dependencyManagement>