Uploaded image for project: 'KIE Cloud'
  1. KIE Cloud
  2. KIECLOUD-188

Verify Server Containers phase incompatibility issues with JDK 11 on kiserver s2i build

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 7.4.0.GA
    • None
    • RHDM, RHPAM
    • None

      During the build of a kjar bundle on the s2i kieserver, there is a verification process executed by the `org.kie.server.services.impl.KieServerContainerVerifier` class. This process is not working on JDK 1:

      INFO Attempting to verify kie server containers with 'java org.kie.server.services.impl.KieServerContainerVerifier  org.openshift.quickstarts:rhpam-kieserver-library:1.4.0-SNAPSHOT'
      [main] WARN org.appformer.maven.integration.embedder.MavenSettings - Environment variable M2_HOME is not set
      [main] ERROR org.kie.server.services.impl.KieServerContainerVerifier - java.se
      org.jboss.modules.ModuleLoadError: java.se
      	at org.jboss.modules.ModuleLoadException.toError(ModuleLoadException.java:74)
      	at org.jboss.modules.Module.getPathsUnchecked(Module.java:1608)
      	at org.jboss.modules.Module.loadModuleClass(Module.java:726)
      	at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:247)
      	at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:410)
      	at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
      	at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:116)
      	at java.base/java.lang.ClassLoader.defineClass1(Native Method)
      	at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1016)
      	at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:423)
      	at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:519)
      	at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:339)
      	at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:126)
      	at org.jboss.modules.Module.loadModuleClass(Module.java:731)
      	at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:247)
      	at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:410)
      	at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
      	at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:116)
      at /opt/eap/standalone/deployments/ROOT.war/WEB-INF/lib/kie-soup-maven-integration-7.4.0.redhat-20190410.jar
      

      This class imports libraries that have a dependency tree on the java.se module from JDK 11. This module includes libraries that has been removed from the standard JDK classpath. For this to work, the classpath must include this dependencies.

      There are two possible solutions:

      1) On JDK 11 environment, add the --add-modules java.se flag in the java command responsible to run the verifier
      2) Add the libraries from the EAP 7.2.x system modules.

              rhn-support-zanini Ricardo Zanini
              rhn-support-zanini Ricardo Zanini
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: