具有Java11的Openliberty有警告

时间:2019-09-12 10:45:18

标签: java websphere-liberty java-11 open-liberty

我在JRE Runtume版本11上使用了带有JavaEE 8的OpenLiberty版本19.0.0.4。
当我运行应用程序服务器时,收到以下警告:

[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

如何解决此问题?

1 个答案:

答案 0 :(得分:3)

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

根据错误设置JAVA_HOME将解决此问题。