Uploaded image for project: 'JBoss Web Server'
  1. JBoss Web Server
  2. JWS-1430

RPM shutdown throws warnings with Java 11

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 5.2.0.ER2
    • 5.0.2.GA
    • rpm, tomcat
    • None
    • 1
    • +
    • Workaround Exists
    • Hide

      Add the following to /etc/opt/rh/jws5/tomcat/tomcat.conf::

      JDK_JAVA_OPTIONS="--add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED"
      export JDK_JAVA_OPTIONS
      
      Show
      Add the following to /etc/opt/rh/jws5/tomcat/tomcat.conf:: JDK_JAVA_OPTIONS= "--add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED" export JDK_JAVA_OPTIONS

      On Java 11, RPM shutdown throws warnings like the following to /var/log/messages:

      Aug  5 17:09:59 node-0 server: 05-Aug-2019 17:09:59.714 INFO [Thread-3] org.apache.catalina.core.StandardService.stopInternal Stopping service [Catalina]
      Aug  5 17:09:59 node-0 server: WARNING: An illegal reflective access operation has occurred
      Aug  5 17:09:59 node-0 server: WARNING: Illegal reflective access by org.apache.catalina.loader.WebappClassLoaderBase (file:/opt/rh/jws5/root/usr/share/java/tomcat/catalina.jar) to field java.io.ObjectStreamClass$Caches.localDescs
      Aug  5 17:09:59 node-0 server: WARNING: Please consider reporting this to the maintainers of org.apache.catalina.loader.WebappClassLoaderBase
      Aug  5 17:09:59 node-0 server: WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
      Aug  5 17:09:59 node-0 server: WARNING: All illegal access operations will be denied in a future release
      Aug  5 17:09:59 node-0 server: 05-Aug-2019 17:09:59.741 INFO [Thread-3] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["ajp-nio-8009"]
      Aug  5 17:09:59 node-0 server: 05-Aug-2019 17:09:59.745 INFO [Thread-3] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-8080"]
      Aug  5 17:09:59 node-0 server: 05-Aug-2019 17:09:59.745 INFO [Thread-3] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-8080"]
      Aug  5 17:09:59 node-0 server: 05-Aug-2019 17:09:59.746 INFO [Thread-3] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["ajp-nio-8009"]
      Aug  5 17:09:59 node-0 systemd: Stopped Apache Tomcat Web Application Container.
      

              rhn-support-csutherl Coty Sutherland
              rhn-support-aogburn Aaron Ogburn
              Jan Onderka Jan Onderka
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: