Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-17159

[eap72-openjdk11-openshift-rhel8, eap-cd-openshift-rhel8, eap73-openjdk11-openshift-rhel8] Application in eap72-openjdk11-sso-s2i template does not build with JDK11

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 7.3.0.CD18
    • 7.2.2.GA, 7.3.0.CD17, 7.3.0.Beta
    • OpenShift
    • None
    • Blocks Testing
    • Hide

      Use -p SOURCE_REPOSITORY_REF=7.3.x as part of new app to use the 7.3.x branch.

      Show
      Use -p SOURCE_REPOSITORY_REF=7.3.x as part of new app to use the 7.3.x branch.
    • Hide

      Standalone application:
      1. Clone redhat-sso-quickstart and checkout 7.0.x-ose branch used in the build.
      2. Build with mvn -V -Popenshift clean package

      Build from template:
      1. Checkout and replace templates for the stream:

      for resource in \
        eap72-openjdk11-image-stream.json \
        eap72-openjdk11-amq-persistent-s2i.json \
        eap72-openjdk11-amq-s2i.json \
        eap72-openjdk11-basic-s2i.json \
        eap72-openjdk11-https-s2i.json \
        eap72-openjdk11-sso-s2i.json \
        eap72-openjdk11-starter-s2i.json \
        eap72-openjdk11-third-party-db-s2i.json \
        eap72-openjdk11-tx-recovery-s2i.json 
      do
       oc replace --force -f \
      https://raw.githubusercontent.com/jboss-container-images/jboss-eap-7-openshift-image/eap72-openjdk11-ubi8/templates/${resource}  
      done
      

      2. Initiate the application build (replace <NAMESPACE_NAME> with your namespace and <OPENSHIFT_HOST> with your OpenShift host ip):

      oc new-app --template=eap72-openjdk11-sso-s2i -p SSO_REALM=xpaas -p HTTPS_KEYSTORE=secure-eap-app-<NAMESPACE_NAME>.<OPENSHIFT_HOST>.nip.io.keystore -p SSO_SAML_KEYSTORE_SECRET=eap-app-secret -p SSO_SAML_KEYSTORE_PASSWORD=password -p SSO_SERVICE_URL= -p SSO_TRUSTSTORE=truststore -p HOSTNAME_HTTPS=secure-eap-app-<NAMESPACE_NAME>.<OPENSHIFT_HOST>.nip.io -p JGROUPS_ENCRYPT_KEYSTORE=jgroups.jceks -p HTTPS_PASSWORD=password -p SSO_SAML_CERTIFICATE_NAME=secure-eap-app-<NAMESPACE_NAME>.<OPENSHIFT_HOST>.nip.io -p HTTPS_NAME=secure-eap-app-<NAMESPACE_NAME>.<OPENSHIFT_HOST>.nip.io -p JGROUPS_ENCRYPT_PASSWORD=xpaasQEpassword -p JGROUPS_ENCRYPT_SECRET=eap-app-secret -p SSO_URL=https://secure-sso-app-<NAMESPACE_NAME>.<OPENSHIFT_HOST>.nip.io/auth -p SSO_TRUSTSTORE_SECRET=eap-app-secret -p SSO_PASSWORD=creator -p SSO_SAML_KEYSTORE=secure-eap-app-<NAMESPACE_NAME>.<OPENSHIFT_HOST>.nip.io.keystore -p HTTPS_SECRET=eap-app-secret -p JGROUPS_ENCRYPT_NAME=secret-key -p SSO_USERNAME=client -p APPLICATION_NAME=eap-app -p IMAGE_STREAM_NAMESPACE=<NAMESPACE_NAME> -p SSO_TRUSTSTORE_PASSWORD=password
      

      3. Check the resulting build in the namespace.

      Show
      Standalone application: 1. Clone redhat-sso-quickstart and checkout 7.0.x-ose branch used in the build. 2. Build with mvn -V -Popenshift clean package Build from template: 1. Checkout and replace templates for the stream: for resource in \ eap72-openjdk11-image-stream.json \ eap72-openjdk11-amq-persistent-s2i.json \ eap72-openjdk11-amq-s2i.json \ eap72-openjdk11-basic-s2i.json \ eap72-openjdk11-https-s2i.json \ eap72-openjdk11-sso-s2i.json \ eap72-openjdk11-starter-s2i.json \ eap72-openjdk11-third-party-db-s2i.json \ eap72-openjdk11-tx-recovery-s2i.json do oc replace --force -f \ https://raw.githubusercontent.com/jboss-container-images/jboss-eap-7-openshift-image/eap72-openjdk11-ubi8/templates/${resource} done 2. Initiate the application build (replace <NAMESPACE_NAME> with your namespace and <OPENSHIFT_HOST> with your OpenShift host ip): oc new-app --template=eap72-openjdk11-sso-s2i -p SSO_REALM=xpaas -p HTTPS_KEYSTORE=secure-eap-app-<NAMESPACE_NAME>.<OPENSHIFT_HOST>.nip.io.keystore -p SSO_SAML_KEYSTORE_SECRET=eap-app-secret -p SSO_SAML_KEYSTORE_PASSWORD=password -p SSO_SERVICE_URL= -p SSO_TRUSTSTORE=truststore -p HOSTNAME_HTTPS=secure-eap-app-<NAMESPACE_NAME>.<OPENSHIFT_HOST>.nip.io -p JGROUPS_ENCRYPT_KEYSTORE=jgroups.jceks -p HTTPS_PASSWORD=password -p SSO_SAML_CERTIFICATE_NAME=secure-eap-app-<NAMESPACE_NAME>.<OPENSHIFT_HOST>.nip.io -p HTTPS_NAME=secure-eap-app-<NAMESPACE_NAME>.<OPENSHIFT_HOST>.nip.io -p JGROUPS_ENCRYPT_PASSWORD=xpaasQEpassword -p JGROUPS_ENCRYPT_SECRET=eap-app-secret -p SSO_URL=https://secure-sso-app-<NAMESPACE_NAME>.<OPENSHIFT_HOST>.nip.io/auth -p SSO_TRUSTSTORE_SECRET=eap-app-secret -p SSO_PASSWORD=creator -p SSO_SAML_KEYSTORE=secure-eap-app-<NAMESPACE_NAME>.<OPENSHIFT_HOST>.nip.io.keystore -p HTTPS_SECRET=eap-app-secret -p JGROUPS_ENCRYPT_NAME=secret-key -p SSO_USERNAME=client -p APPLICATION_NAME=eap-app -p IMAGE_STREAM_NAMESPACE=<NAMESPACE_NAME> -p SSO_TRUSTSTORE_PASSWORD=password 3. Check the resulting build in the namespace.

      The default application defined in eap72-openjdk11-sso-s2i template fails to build with JDK11 with the following:

      [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ rh-sso-app-jee-jsp ---
      [INFO] Changes detected - recompiling the module!
      [WARNING] File encoding has not been set, using platform encoding ANSI_X3.4-1968, i.e. build is platform dependent!
      [INFO] Compiling 3 source files to /tmp/src/app-jee-jsp/target/classes
      [INFO] -------------------------------------------------------------
      [ERROR] COMPILATION ERROR :
      [INFO] -------------------------------------------------------------
      [ERROR] Source option 5 is no longer supported. Use 6 or later.
      [ERROR] Target option 1.5 is no longer supported. Use 1.6 or later.
      [INFO] 2 errors
      [INFO] -------------------------------------------------------------
      [INFO] ------------------------------------------------------------------------
      [INFO] Reactor Summary:
      [INFO]
      [INFO] RH-SSO Quickstart: app-jee-html5 ................... SUCCESS [01:09 min]
      [INFO] RH-SSO Quickstart: app-jee-jsp ..................... FAILURE [ 18.750 s]
      [INFO] RH-SSO Quickstart: app-profile-jee-html5 ........... SKIPPED
      [INFO] RH-SSO Quickstart: app-profile-jee-jsp ............. SKIPPED
      [INFO] RH-SSO Quickstart: app-profile-jee-vanilla ......... SKIPPED
      [INFO] RH-SSO Quickstart: app-profile-jee-saml ............ SKIPPED
      [INFO] RH-SSO Quickstart: service-jee-jaxrs ............... SKIPPED
      [INFO] RH-SSO Quickstart: parent 7.0.0.GA ................. SKIPPED
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 01:30 min
      [INFO] Finished at: 2019-07-09T14:17:52Z
      [INFO] ------------------------------------------------------------------------
      [WARNING] The requested profile "openshift" could not be activated because it does not exist.
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project rh-sso-app-jee-jsp: Compilation failure: Compilation failure:
      [ERROR] Source option 5 is no longer supported. Use 6 or later.
      [ERROR] Target option 1.5 is no longer supported. Use 1.6 or later.
      [ERROR] -> [Help 1]
      org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project rh-sso-app-jee-jsp: Compilation failure
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:213)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
      at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
      at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
      at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
      at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
      at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
      at org.apache.maven.cli.MavenCli.execute (MavenCli.java:954)
      at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
      at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
      at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke (Method.java:566)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
      at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
      at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
      Caused by: org.apache.maven.plugin.compiler.CompilationFailureException: Compilation failure
      at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute (AbstractCompilerMojo.java:858)
      at org.apache.maven.plugin.compiler.CompilerMojo.execute (CompilerMojo.java:129)
      at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
      at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
      at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
      at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
      at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
      at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
      at org.apache.maven.cli.MavenCli.execute (MavenCli.java:954)
      at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
      at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
      at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke (Method.java:566)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
      at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
      at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
      [ERROR]
      [ERROR] Re-run Maven using the -X switch to enable full debug logging.
      [ERROR]
      [ERROR] For more information about the errors and possible solutions, please read the following articles:
      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException 
      [ERROR]
      [ERROR] After correcting the problems, you can resume the build with the command
      [ERROR] mvn <goals> -rf :rh-sso-app-jee-jsp
      

      This is a blocker considering we do not have a SSO demonstration deployment for OpenShift, which is regression compared to JDK8 EAP imagestream.

      Note: I don't consider this problem to live on EAP side - it is a problem of the RHSSO quickstart. However, we need a JBEAP tracker.

              kwills@redhat.com Ken Wills
              mjurc@redhat.com Michal Jurc
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

                Created:
                Updated:
                Resolved: