Han,
On 8/4/22 00:49, Han Li wrote:
Hi Mohan,
You can open CATALINA_BASE/conf/catalina.policy file, add following statement
within “grant” section:
permission java.lang.RuntimePermission "getenv.*";
While this will likely fix the "problem", it may not be the best
solution. The OP is running under a Security Manager, probably for a
reason. It would be best to restrict the getenv privilege to the minimum
necessary to run the application properly in that environment. That may
be something closer to
grant codeBase "file:some/specific.jar" {
permission java.lang.RuntimePermission "getenv.oneVariableName";
}
Thanks,
-chris
2022年8月4日 11:33,Mohan T <moha...@ramco.com.INVALID> 写道:
Dear All,
We are using tomcat 8.5 on suse linux 7.
We are invoking Catalina.sh in java security enabled mode.
Kindly help me in resolving this .
Thanks
Mohan
Exception:
Error in Full Agent Registration Info Resolver reading environment
variable/system property
java.security.AccessControlException: access denied ("java.lang.RuntimePermission"
"getenv.")
at
java.security.AccessControlContext.checkPermission(AccessControlContext.java:472)
at
java.security.AccessController.checkPermission(AccessController.java:884)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
at java.lang.System.getenv(System.java:894)
DISCLAIMER: This communication contains information which is confidential and the
copyright of Ramco Systems Ltd, its subsidiaries or a third party ("Ramco").
This email may also contain legally privileged information. Confidentiality and legal
privilege attached to this communication are not waived or lost by reason of mistaken
delivery to you.This email is intended to be read or used by the addressee only. If you
are not the intended recipient, any use, distribution, disclosure or copying of this
email is strictly prohibited without the express written approval of Ramco. Please delete
and destroy all copies and email Ramco at le...@ramco.com immediately. Any views
expressed in this communication are those of the individual sender, except where the
sender specifically states them to be the views of Ramco. Except as required by law,
Ramco does not represent, warrant and/or guarantee that the integrity of this
communication has been maintained nor that the communication is free of errors, virus,
interception or interference. If you do not wish to receive such communications, please
forward this communication to market...@ramco.com and express your wish not to receive
such communications henceforth.