Search code examples
javawebsphere-libertyjava-11open-liberty

Openliberty with java11 has warnings


I used OpenLiberty version 19.0.0.4 with JavaEE 8 on JRE runtume version 11 .
when i running application server , receive this warnings :

[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

How can fix this ?


Solution

  • This is a known bug in OpenLiberty, see open-liberty#7180

    According to the bug setting JAVA_HOME will fix the issue.