Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2107520

Summary: An illegal reflective access operation has occurred from tomcat during start
Product: Red Hat Satellite Reporter: Jan Jansky <jjansky>
Component: InstallationAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED WONTFIX QA Contact: Satellite QE Team <sat-qe-bz-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.10.7CC: arsingh, ehelms, nmoumoul, redakkan
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-03-20 20:26:50 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jan Jansky 2022-07-15 10:54:05 UTC
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)

Comment 3 Nikos Moumoulidis 2022-07-29 11:11:02 UTC
If you want to suppress these warnings (which are benign), just add append the options '--add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.util.concurrent=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED' to the JAVA_OPTS property in /etc/tomcat/tomcat.conf.

Moving this to the installer component since that is where the tomcat configuration lives.

Comment 4 Brad Buckingham 2024-02-11 20:37:14 UTC
Upon review of our valid but aging backlog the Satellite Team has concluded that this Bugzilla does not meet the criteria for a resolution in the near term, and are planning to close in a month. This message may be a repeat of a previous update and the bug is again being considered to be closed. If you have any concerns about this, please contact your Red Hat Account team.  Thank you.

Comment 5 Brad Buckingham 2024-03-20 20:26:50 UTC
Thank you for your interest in Red Hat Satellite. We have evaluated this request, and while we recognize that it is a valid request, we do not expect this to be implemented in the product in the foreseeable future. This is due to other priorities for the product, and not a reflection on the request itself. We are therefore closing this out as WONTFIX. If you have any concerns about this feel free to contact your Red Hat Account Team. Thank you.