Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-19238

An illegal reflective access operation has occurred from tomcat during start

XMLWordPrintable

    • 0
    • False
    • Moderate
    • None
    • None
    • None
    • None

      Description of problem:
      During every start of tomcat on Satellite 6.10.z i can see the WARNING about Illegal access as below

      Jul 15 12:47:17 satellite.example.com server[6103]: Jul 15, 2022 12:47:17 PM org.apache.coyote.AbstractProtocol init
      Jul 15 12:47:17 satellite.example.com server[6103]: INFO: Initializing ProtocolHandler ["http-bio-127.0.0.1-23443"]
      Jul 15 12:47:17 satellite.example.com server[6103]: Jul 15, 2022 12:47:17 PM org.apache.catalina.startup.Catalina load
      Jul 15 12:47:17 satellite.example.com server[6103]: INFO: Initialization processed in 1322 ms
      Jul 15 12:47:18 satellite.example.com server[6103]: Jul 15, 2022 12:47:18 PM org.apache.catalina.core.StandardService startInternal
      Jul 15 12:47:18 satellite.example.com server[6103]: INFO: Starting service Catalina
      Jul 15 12:47:18 satellite.example.com server[6103]: Jul 15, 2022 12:47:18 PM org.apache.catalina.core.StandardEngine startInternal
      Jul 15 12:47:18 satellite.example.com server[6103]: INFO: Starting Servlet Engine: Apache Tomcat/7.0.76
      Jul 15 12:47:18 satellite.example.com server[6103]: Jul 15, 2022 12:47:18 PM org.apache.catalina.startup.HostConfig deployDirectory
      Jul 15 12:47:18 satellite.example.com server[6103]: INFO: Deploying web application directory /var/lib/tomcat/webapps/candlepin
      Jul 15 12:47:18 satellite.example.com server[6103]: WARNING: An illegal reflective access operation has occurred
      Jul 15 12:47:18 satellite.example.com server[6103]: WARNING: Illegal reflective access by org.apache.catalina.loader.WebappClassLoaderBase$1 (file:/usr/share/java/tomcat/catalina.jar) to method java.lang.ClassLoader.registerAsParallelCapable()
      Jul 15 12:47:18 satellite.example.com server[6103]: WARNING: Please consider reporting this to the maintainers of org.apache.catalina.loader.WebappClassLoaderBase$1
      Jul 15 12:47:18 satellite.example.com server[6103]: WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
      Jul 15 12:47:18 satellite.example.com server[6103]: WARNING: All illegal access operations will be denied in a future release

      Version-Release number of selected component (if applicable):
      my lab satellite ->
      java-11-openjdk-11.0.15.0.9-2.el7_9.x86_64
      java-11-openjdk-headless-11.0.15.0.9-2.el7_9.x86_64
      java-1.8.0-openjdk-1.8.0.332.b09-1.el7_9.x86_64
      java-1.8.0-openjdk-headless-1.8.0.332.b09-1.el7_9.x86_64
      java-client-1.0-1.noarch
      javamail-1.4.6-8.el7.noarch
      javapackages-tools-3.4.1-11.el7.noarch
      satellite-6.10.6-1.el7sat.noarch
      satellite-cli-6.10.6-1.el7sat.noarch
      satellite-common-6.10.6-1.el7sat.noarch
      satellite-installer-6.10.0.7-1.el7sat.noarch
      satellite-maintain-0.0.1-1.el7sat.noarch
      tomcat-7.0.76-16.el7_9.noarch
      tomcat-el-2.2-api-7.0.76-16.el7_9.noarch
      tomcat-jsp-2.2-api-7.0.76-16.el7_9.noarch
      tomcatjss-7.2.5-1.el7.noarch
      tomcat-lib-7.0.76-16.el7_9.noarch
      tomcat-servlet-3.0-api-7.0.76-16.el7_9.noarch

      another satellite ->
      java-11-openjdk-11.0.15.0.9-2.el7_9.x86_64
      java-11-openjdk-headless-11.0.15.0.9-2.el7_9.x86_64
      java-1.8.0-openjdk-1.8.0.332.b09-1.el7_9.x86_64
      java-1.8.0-openjdk-headless-1.8.0.332.b09-1.el7_9.x86_64
      java-client-1.0-2.noarch
      javamail-1.4.6-8.el7.noarch
      javapackages-tools-3.4.1-11.el7.noarch
      satellite-6.10.6-1.el7sat.noarch
      satellite-cli-6.10.6-1.el7sat.noarch
      satellite-common-6.10.6-1.el7sat.noarch
      satellite-installer-6.10.0.7-1.el7sat.noarch
      satellite-maintain-0.0.1-1.el7sat.noarch
      tomcat-7.0.76-16.el7_9.noarch
      tomcat-el-2.2-api-7.0.76-16.el7_9.noarch
      tomcat-jsp-2.2-api-7.0.76-16.el7_9.noarch
      tomcatjss-7.2.5-1.el7.noarch
      tomcat-lib-7.0.76-16.el7_9.noarch
      tomcat-servlet-3.0-api-7.0.76-16.el7_9.noarch

      How reproducible:

      Start/Restart tomcat service.

      Steps to Reproduce:
      1. systemctl restart tomcat

      Actual results:
      Jul 15 12:47:18 satellite.example.com server[6103]: WARNING: An illegal reflective access operation has occurred
      Jul 15 12:47:18 satellite.example.com server[6103]: WARNING: Illegal reflective access by org.apache.catalina.loader.WebappClassLoaderBase$1 (file:/usr/share/java/tomcat/catalina.jar) to method java.lang.ClassLoader.registerAsParallelCapable()
      Jul 15 12:47:18 satellite.example.com server[6103]: WARNING: Please consider reporting this to the maintainers of org.apache.catalina.loader.WebappClassLoaderBase$1
      Jul 15 12:47:18 satellite.example.com server[6103]: WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
      Jul 15 12:47:18 satellite.example.com server[6103]: WARNING: All illegal access operations will be denied in a future release

      Expected results:
      No Warnings (at least contain illegal word)

              jira-bugzilla-migration RH Bugzilla Integration
              jira-bugzilla-migration RH Bugzilla Integration
              RH Bugzilla Integration RH Bugzilla Integration
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: