首页 > 解决方案 > 带有 java11 的 Openliberty 有警告

问题描述

我在 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

如何解决这个问题?

标签: javawebsphere-libertyjava-11open-liberty

解决方案


这是 OpenLiberty 中的一个已知错误,请参阅open-liberty#7180

根据错误设置JAVA_HOME将修复该问题。


推荐阅读