java11 的 Openliberty 有警告
Openliberty with java11 has warnings
我在 JRE runtume 版本 11 上使用 OpenLiberty 版本 19.0.0.4 和 JavaEE 8。
当我 运行 应用程序服务器时,收到此警告:
[WARNING ] CWWKS3103W: There are no users defined for the BasicRegistry configuration of ID com.ibm.ws.security.registry.basic.config[basic].
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.ibm.ws.util.ThreadContextAccessor (file:/opt/wlp/lib/com.ibm.ws.container.service_1.0.27.jar) to field java.lang.Thread.contextClassLoader
WARNING: Please consider reporting this to the maintainers of com.ibm.ws.util.ThreadContextAccessor
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
如何解决这个问题?
这是 OpenLiberty 中的一个已知错误,请参阅 open-liberty#7180
根据bug设置JAVA_HOME
会修复问题
我在 JRE runtume 版本 11 上使用 OpenLiberty 版本 19.0.0.4 和 JavaEE 8。
当我 运行 应用程序服务器时,收到此警告:
[WARNING ] CWWKS3103W: There are no users defined for the BasicRegistry configuration of ID com.ibm.ws.security.registry.basic.config[basic].
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.ibm.ws.util.ThreadContextAccessor (file:/opt/wlp/lib/com.ibm.ws.container.service_1.0.27.jar) to field java.lang.Thread.contextClassLoader
WARNING: Please consider reporting this to the maintainers of com.ibm.ws.util.ThreadContextAccessor
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
如何解决这个问题?
这是 OpenLiberty 中的一个已知错误,请参阅 open-liberty#7180
根据bug设置JAVA_HOME
会修复问题