Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-87506

Unable to determine server capabilities when starting 6.2 on JDK11

    Details

    • Fix Priority:
      4
    • JDK:
      Oracle OpenJDK 11

      Description

      Steps to reproduce:

      1. Build ee-6.2.x on JDK8 with the following build properties
        jsp.precompile=off
        javac.compiler=modern
        
      2. Start 6.2 portal instance on tomcat using jdk 11

      Expected result:
      Portal instance is successfully started without error.
      Actual result:

      19:18:44,360 INFO  [localhost-startStop-1][VerifyProcess:65] Verifying com.liferay.portal.verify.VerifyWiki
      19:18:44,365 INFO  [localhost-startStop-1][VerifyProcess:65] Verifying com.liferay.portal.verify.VerifyWorkflow
      19:18:44,430 ERROR [localhost-startStop-1][ServerCapabilitiesUtil:61] Unable to determine server capabilities
      java.lang.reflect.InaccessibleObjectException: Unable to make field private final jdk.internal.loader.BuiltinClassLoader jdk.internal.loader.BuiltinClassLoader.parent accessible: module java.base does not "opens jdk.internal.loader" to unnamed module @194b2216
      	at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:340)
      	at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:280)
      	at java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:176)
      	at java.base/java.lang.reflect.Field.setAccessible(Field.java:170)
      	at com.liferay.portal.server.DeepNamedValueScanner._scanObject(DeepNamedValueScanner.java:521)
      	at com.liferay.portal.server.DeepNamedValueScanner._scan(DeepNamedValueScanner.java:455)
      	at com.liferay.portal.server.DeepNamedValueScanner._scanObject(DeepNamedValueScanner.java:526)
      	at com.liferay.portal.server.DeepNamedValueScanner._scan(DeepNamedValueScanner.java:455)
      	at com.liferay.portal.server.DeepNamedValueScanner._scanObject(DeepNamedValueScanner.java:526)
      	at com.liferay.portal.server.DeepNamedValueScanner._scan(DeepNamedValueScanner.java:455)
      	at com.liferay.portal.server.DeepNamedValueScanner._scanObject(DeepNamedValueScanner.java:526)
      	at com.liferay.portal.server.DeepNamedValueScanner._scan(DeepNamedValueScanner.java:455)
      	at com.liferay.portal.server.DeepNamedValueScanner._scanObject(DeepNamedValueScanner.java:526)
      	at com.liferay.portal.server.DeepNamedValueScanner._scan(DeepNamedValueScanner.java:455)
      	at com.liferay.portal.server.DeepNamedValueScanner._scanObject(DeepNamedValueScanner.java:526)
      	at com.liferay.portal.server.DeepNamedValueScanner._scan(DeepNamedValueScanner.java:455)
      	at com.liferay.portal.server.DeepNamedValueScanner.scan(DeepNamedValueScanner.java:138)
      	at com.liferay.portal.server.capabilities.TomcatServerCapabilities.determineSupportsHotDeploy(TomcatServerCapabilities.java:43)
      	at com.liferay.portal.server.capabilities.TomcatServerCapabilities.determine(TomcatServerCapabilities.java:29)
      	at com.liferay.portal.server.capabilities.ServerCapabilitiesUtil.determineServerCapabilities(ServerCapabilitiesUtil.java:58)
      	at com.liferay.portal.servlet.MainServlet.initServerDetector(MainServlet.java:969)
      	at com.liferay.portal.servlet.MainServlet.init(MainServlet.java:280)
      	at javax.servlet.GenericServlet.init(GenericServlet.java:158)
      	at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1230)
      	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1174)
      	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1066)
      	at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5409)
      	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5707)
      	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
      	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:1017)
      	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:993)
      	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
      	at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:712)
      	at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:2003)
      	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
      	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
      	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
      	at java.base/java.lang.Thread.run(Thread.java:834)
      

      Does not appear to affect functionality. Server still fully starts and user can login. User can still use deploy directory to hot deploy wars.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Days since last comment:
                  45 weeks, 3 days ago

                  Packages

                  Version Package