Open StefanSchade opened 4 years ago
Workaround is to switch to JBOSS / Willdfly.
Adding the suggested VM arguments (see below) to the application server configuration in IntelliJ hanging on deployment, the server does not seem to come up. Incidently this is the same for a Glassfish Server whitout any VM arguments.
--add-modules java.se --add-exports java.base/jdk.internal.ref=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.nio=ALL-UNNAMED --add-opens java.base/sun.nio.ch=ALL-UNNAMED --add-opens java.management/sun.management=ALL-UNNAMED --add-opens jdk.management/com.sun.management.internal=ALL-UNNAMED
Introducing the REST client in the frontend resulted in problems during deployment on Payara. The problem is related to known issues in Payara, see
https://youtrack.jetbrains.com/issue/IDEA-216528
https://github.com/payara/Payara/issues/4619
** Server Log ***
[2020-04-22T20:26:28.177+0200] [Payara 5.201] [WARNING] [] [com.hazelcast.instance.HazelcastInstanceFactory] [tid: _ThreadID=29 _ThreadName=RunLevelControllerThread-1587579986628] [timeMillis: 1587579988177] [levelValue: 900] [[ Hazelcast is starting in a Java modular environment (Java 9 and newer) but without proper access to required Java packages. Use additional Java arguments to provide Hazelcast access to Java internal API. The internal API access is used to get the best performance results. Arguments to be used: --add-modules java.se --add-exports java.base/jdk.internal.ref=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.nio=ALL-UNNAMED --add-opens java.base/sun.nio.ch=ALL-UNNAMED --add-opens java.management/sun.management=ALL-UNNAMED --add-opens jdk.management/com.sun.management.internal=ALL-UNNAMED]]
[2020-04-22T20:26:31.976+0200] [Payara 5.201] [WARNING] [] [org.glassfish.grizzly.http2.Http2AddOn] [tid: _ThreadID=31 _ThreadName=RunLevelControllerThread-1587579986638] [timeMillis: 1587579991976] [levelValue: 900] [[ TLS ALPN (Application-Layer Protocol Negotiation) support is not available. HTTP/2 support will not be enabled.]]
............
java.lang.reflect.InaccessibleObjectException: Unable to make field private final java.util.ArrayList jdk.internal.loader.URLClassPath.loaders accessible: module java.base does not "opens jdk.internal.loader" to unnamed module @1919ec6d