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:

  1. Stop the ColdFusion Application Server.
  2. 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.
  3. Restart the ColdFusion Application Server.
If the issue still persists you must manually enable access to internal ColdFusion Java components:

  1. Stop the ColdFusion Application Server.
  2. Open the neo-runtime.xml for editing and locate the following string:



    <var name="disableServiceFactory"><boolean value="true" /></var>



  3. Set the boolean value to false:



    <var name="disableServiceFactory"><boolean value="false" /></var>



  4. Save neo-runtime.xml and restart the ColdFusion Application Server.
  5. Go to ColdFusion Administrator > Server Settings > Settings and select the Disable Access to Internal ColdFusion Java components option.
  6. Click Submit Changes.

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy