SXI Forum

A place to collect usefull tips, tricks and implementation strategies.

You are not logged in.

#1 21-11-2018 11:13:40

SeanR
Administrator
Registered: 20-11-2018
Posts: 148

AccessControlException MBeanTrustPermission

If you come across a StdError logfile and in it on about line 4 you see the following

java.security.AccessControlException: access denied ("javax.management.MBeanTrustPermission" "register")

X-Layer will not be running correctly.  This may be because you are not using the embedded version of the JRE that is distributed with the XLayer or you may be running on a unix system where no JRE is embedded in the XLayer.

To fix this issue you need to find where java is running from.  In most cases this will be found in the JAVA_HOME environment variable.

Search for the JRE and locate the following file - java.policy (it will be in the jre\lib\security directory)
add the following

permission javax.management.MBeanTrustPermission "register";

to the bottom of the file inside the grant { block above the };

You should be good to go now. 

Delete the StdError log file and restart XLayer.

Offline

#2 21-11-2018 11:41:06

SeanR
Administrator
Registered: 20-11-2018
Posts: 148

Re: AccessControlException MBeanTrustPermission

If you copy the permission line (permission javax.management.MBeanTrustPermission “register”;) from this forum into the java.policy file you will have to change the Unicode quotes represented in this forum, to ASCII quotes after the copy, otherwise the line will be ignored and you will still get mbean registration error.

For additional information on java management beans see https://en.wikipedia.org/wiki/Java_Mana … Extensions

Offline

Board footer

Powered by FluxBB