You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2021/10/21 18:33:17 UTC

[Bug 65645] New: illegal reflective access warning when deploying app using Tomcat manager

https://bz.apache.org/bugzilla/show_bug.cgi?id=65645

            Bug ID: 65645
           Summary: illegal reflective access warning when deploying app
                    using Tomcat manager
           Product: Tomcat 9
           Version: 9.0.54
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
          Assignee: dev@tomcat.apache.org
          Reporter: abhishekm@formsite.com
  Target Milestone: -----

We recently upgraded to Java 11 and seeing the following warning when using
Tomcat manager to deploy an app.


WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by
org.apache.catalina.loader.WebappClassLoaderBase
(file:/opt/apache-tomcat-9.0.54/lib/catalina.jar) to field
java.io.ObjectStreamClass$Caches.localDescs
WARNING: Please consider reporting this to the maintainers of
org.apache.catalina.loader.WebappClassLoaderBase
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

Command to deploy the app is:

wget --connect-timeout=60 --http-user=$TC_MGR_USERNAME
--http-password=$TC_MGR_PASSWORD --no-check-certificate --header='Host:
$hostname'
'https://$ip_address/mgr/text/deploy?war=file:$WAR&path=/app1&update=true' -O -

Environment: 
Tomcat 9.0.54
Cent OS 7 
# java -version
openjdk version "11.0.12" 2021-07-20 LTS
OpenJDK Runtime Environment 18.9 (build 11.0.12+7-LTS)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.12+7-LTS, mixed mode, sharing)


I see that it was fixed in https://bz.apache.org/bugzilla/show_bug.cgi?id=62901
but I am able to see the problem.

Thank you in for looking into this. Please let me know if you need any
additional information.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 65645] illegal reflective access warning when deploying app using Tomcat manager

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=65645

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
             Status|NEW                         |RESOLVED

--- Comment #1 from Mark Thomas <ma...@apache.org> ---
If you don't use the startup scripts provided with the standard Tomcat
distribution from the ASF then you have to take responsibility for ensuring
that all the configuration performed by those scripts is still performed.

In this particular instance you have not set:

--add-opens=java.base/java.io=ALL-UNNAMED

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org