Issue
Accessing the ColdFusion Administrator may fail with the following error:
Permission denied for creating Java object: coldfusion.server.SystemInfo.
Access to Java objects in the ColdFusion package has been disabled by the administrator
Reason
The neo-runtime.xml file was corrupted and the following setting was enabled in the ColdFusion Administrator:
- Disable access to internal Coldfusion Java components
This setting disables the ability for CFML code to access and create Java objects that are part of the internal ColdFusion implementation. This prevents an unauthenticated CFML template from reading or modifying administration and configuration information for this server.
Solution
To resolve this issue, copy the neo-runtime.bak file to neo-runtime.xml:
-
Stop the ColdFusion Application Server.
-
Copy the {cf-root}\lib\neo-runtime.bak file to {cf-root}\lib\neo-runtime.xml. This will revert some of your ColdFusion Administrator settings back to a previous state.
-
Restart the ColdFusion Application Server.
-
Stop the ColdFusion Application Server.
-
Open the neo-runtime.xml for editing and locate the following string:
<var name="disableServiceFactory"><boolean value="true" /></var>
-
Set the boolean value to false:
<var name="disableServiceFactory"><boolean value="false" /></var>
-
Save neo-runtime.xml and restart the ColdFusion Application Server.
-
Go to ColdFusion Administrator > Server Settings > Settings and select the Disable Access to Internal ColdFusion Java components option.
-
Click Submit Changes.