Entries Tagged as “General”
Applying Updates on a Locked down ColdFusion 10 Server
Administrator | Adobe ColdFusion 10 | ColdFusion | General | productivity | Updates
Note: This is valid from Hotfix 9 onwards.
Depending on the user account that you have used to Lock down your server, you might need to consider the following few more steps for providing appropriate permissions to be able to apply the updates from ColdFusion Administrator.
Hotfix needs two things to be installed properly from ColdFusion Administrator.
1)
The user that is configured for ColdFusion Service should be permitted to
Start/Stop the service. More on this to setup is explained below.
2) Since ColdFusion runs with the user you have setup for ColdFusion service, that user should have write/delete/update permissions for some of the ColdFusion directories. Notably, till now (Hotfix 9) the update files are there for the following directories:
<CFHome>\cfusion\bin\ (Write)
<CFHome>\cfusion\hf-updates\ (Write)
<CFHome>\cfusion\lib\ (Write)
<CFHome>\cfusion\lib\updates\ (Write + Delete)
<CFHome>\cfusion\runtime\lib\ (Write)
<CFHome>\cfusion\wwwroot\CFIDE\adminapi\ (Write)
<CFHome>\cfusion\wwwroot\CFIDE\administrator\ (Write)
<CFHome>\cfusion\wwwroot\CFIDE\componentutils\ (Write)
<CFHome>\cfusion\wwwroot\CFIDE\scripts\ (Write)
Note: New directories may or may not get added in the future Hotfixes but the above set will always be there for ColdFusion 10.
If you are running multi-instace scenario you have to set the same for all child instance folders and their service accounts
When lockdown guide is being imposed the above two requirements should also be implemented in order to be able to apply Hotfixes from the ColdFusion administrator.
Setting up the ColdFusion Service user as required in #1:
Down load and Install Windows tool named SubInACL.exe (Installer name is SubInACL.msi) to give service start/stop permissions from
http://www.microsoft.com/en-us/download/confirmation.aspx?id=23510
Once you install it, the tool subinacl.exe gets installed
under
C:\Program Files (x86)\Windows Resource Kits\Tools
Then, run the tool as follows from command prompt by
replacing <MachineName> and <username> with your username and machine
name.
a) For machine’s local user
C:\Program Files (x86)\Windows Resource Kits\Tools>subinacl.exe /service "\\<MachineName>\ColdFusion 10 Application Server" /grant=<username>=TO
b) If the user is a Domain user you have to replace <Domainname> as well along with <MachineName>, <username> in the following command.
C:\Program Files (x86)\Windows Resource Kits\Tools>subinacl.exe /service "\\<MachineName>\ColdFusion 10 Application Server" /grant=<Domainname>\<username>=TO
More details on this are explained in the below resource.
http://support.microsoft.com/default.aspx?scid=kb;en-us;288129
This is a one-time setup that you have to do.
Once this is done -> Restart ColdFusion service -> Open ColdFusion server Administrator -> Apply Update -> You should be able to apply the Hotfix successfully now.
Adobe Announces ColdFusion Summit 2013
Adobe ColdFusion | General
We recently announced that Adobe will be holding our first ever ColdFusion Summit conference!
Event Details:
October 24th and 25th
Manadalay Bay Resort & Casino, Las Vegas, Nevada
Registration cost: $250
Each paid registration will receive a FREE copy of ColdFusion Builder (MSRP value of $299!)
Registration along with further details will be available soon.
Please follow this blog for updates.
Unable to re-install ColdFusion Builder 2.0.1
Adobe ColdFusion Builder 2.0.1 | CFBuilder | General
In the following case it is possible to occur.
If you have deleted CFB 2/2.0.1 plugins installation directory manually without uninstalling using uninstaller, you may not be able to install next time unless you have cleaned-up the old stuff lying in your Mac OS X machine.
Only if that is the case please do the following (otherwise it is never ever recommended to do this ) :
Take a backup and delete the file: /Library/Application Support/Adobe/Uninstall/{b8c666c3-1efd-11b2-bf3c-e04be4b2b610}.db
Try installing now. You would be able to install now.
JSON backward Compatibility: Flag to enable CF8 behavior
ColdFusion | ColdFusion Functions | General | web application | web application development
JSON serialization was introduced in CF8 for the first time. It was used heavily to serialize CFC and other CF data objects. In “CumulativeHotfix1 for ColdFusion 9.0.1”, some of its outstanding issues were fixed. Few of issues addressed in hotfix were that of string to number conversion, and number getting converted to double.
The change in behavior of JSON serialization, which fixed some of the basic problems of CF developer at one hand, also had a side effect of breaking old application built on CF8. Migration from CF8 to later version might require making few changes in the developer’s code.
To achieve backward compatibility and to address a scenario where old behavior of JSON serialization has to be retained, a JVM flag had been introduced at the same time. If enabled, it would bypass the latest changes for JSON serialization and fall back to CF8 behavior.
Here I am describing the JVM flag and the way to enable it. This will bring back the old behavior where a string with leading zero like '000' will be output as 0.0 rather than 000, an invalid number in javascript. Similarly all the number will be retained in double/float format. A number like 1.23E4 will be converted to 12340 and so on. So you can make use of this flag if you have got stuck upgrading to latest CF server.
To achieve the CF8 behavior, one can add a JVM system property json.numberasdouble=true to jvm.config. It is applicable to CF "CumulativeHotfix1 for ColdFusion 9.0.1" and later .
jvm.config file is located at $CF_HOME/cfusion/bin/jvm.config. Open the file and you will find “-Djava.awt.headless=true” as one of the entry in java.args parameters.
Please add the suggested flag just after former headless entry as -Djson.numberasdouble=true.
JRE should be used or JDK should be used with ColdFusion 10 ?
Administrator | Adobe ColdFusion | Adobe ColdFusion 10 | ColdFusion | Docs | General | WebServices
There is a bit of confusion whether to use JRE or JDK with ColdFusion when you want to use an externally installed one.
This blog entry clarifies on whether to use jre7 or jdk7.
Note:Unless there is a specific reason, it is generally recommended to use the latest patched JRE/JDK of major Java version supported. As of 8th March 2013, for Java 1.7 the latest patched version is Java 1.7 Update 17.
The decision on whether JRE or JDK should be used is determined by whether JRE/JDK contains Server VM or not as ColdFusion runs only on top of Server VM. ColdFusion can't run on Client VM.
For all platforms, JRE that comes along with JDK contains server VM.
Even the public JRE that is available from Oracle contains Server VM for all platforms except for Windows 32-bit JRE.
So, from this it can be derived as follows:
1. For Win 64, Linux 32, Linux 64, Solaris 64-bit, Mac 64-bit you can use any of public JRE from Oracle or the JRE that is contained within JDK. We would recommend you to use Public JRE from Oracle. For Mac OS X there is an extra note below before which you want to conclude whether to use public JRE or JDK's JRE.
2. For Windows 32-bit, you can use the JRE that is contained within JDK
OR
You can use the Win 32- Public JRE by customizing it to contain Server VM.
(To customize it you can copy <JDK_HOME>\jre\bin\server\ directory and its content to Public JRE (jre\bin\server ). It would at same directory level as client directory.
Note for Mac OS X Installations:
For Mac also public JRE as well JDK contained JRE contains server VM.
If you are using Web Services you would need one file from JDK(tools.jar). JRE
doesn’t contain this file.
Since full version of ColdFusion 10 is shipped before Java 7 and Mac OS X
used to ship JDK earlier which contains this file by default, we never shipped
it along with ColdFusion installation.
With update 8 for Java 1.7 support on mac OS X, we are just copying this
tools.jar from installed JDK to <ColdFusion_Home>\cfusion\lib\.
Going forward we will be shipping it along with ColdFusion installer for Mac as
well but for ColdFusion 10 this file is not there.
So, consider using JRE or JDK depending on the need for Mac OS X
OR
Just use JRE itself and only if needed you can copy tools.jar(it is same for
all platforms) to <ColdFusion_Home>\cfusion\lib.
So if you are using ColdFusion 10 on Mac OS X with JRE 1.7 you might want to
copy tools.jar to <ColdFusion_Home>\cfusion\lib\