Technote Details :: JavaScript errors when using MX Widgets on ColdFusion
Issue
When viewing a page which uses widgets in a browser, I get a JavaScript error message saying
WDG_Messages is undefined
I am using ColdFusion MX 7 as application server.

Reason
This happens because you are using the DevNet edition of ColdFusion. This adds, for every dynamic cfm page, a "watermark" at the top of the page, which looks like this:
<META NAME="ColdFusionMXEdition" CONTENT="ColdFusion DevNet Edition - Not for Production Use.">
The problem is, coldfusion adds this to every page, without differentiating by content type - even in js files.
Solution
For ColdFusion MX 7, there is no workaround for this issue, except remove the existing DevNet serial number for the ColdFusion MX 7 installation , so it will automatically become the free Developer's Edition which does not produce the watermark but has an IP restriction to localhost and 2 other IP addresses.
To do this, follow the next steps (where $CFHOME is the root of your coldfusion installation):
- Stop the ColdFusion MX Application Server.
- Backup $CFHOME/lib/license.properties
- Open the original $CFHOME/lib/license.properties with a text editor.
- Find the line with the serial number, such as "sn=CXX7NN-NNNNN-NNNNN-NNNNNN"
- Remove everything on that line after "sn=" (this removes the serial number)
- Save the file
- Start the ColdFusion MX Application Server.
- Check the System Information page in the ColdFusion Administrator to confirm that it has been changed into the Developer Edition.
For more details concerning this issue also check out this note.