INSTALLING COLDFUSION 10
Installing the J2EE Configuration
Enable sandbox security
Do the following to ensure that ColdFusion sandbox security secures Java access to files and network resources:
1
a
On the WebSphere Administrative Console Security > Secure Administration panel, ensure that the Java 2
Security option is selected.
Click Apply and then click Save.
b
Add the following lines to the Standard PropertiesThat Can Be Read By Anyone section of the JVM's security
2
policy file, java.policy. (For example, this file can be located in C:\Program
Files\WebSphere\AppServer\java\jre\lib\security\java.policy):
grant {
permission java.security.AllPermission;
};
Configure operating system-specific binary support in Windows
This process is required to support the following features that use binaries that are specific to your operating system:
• CFX tags written in C++
• Microsoft Access driver with Unicode support
You do this by configuring the search paths to find the required binary files, which are located in the
cf_webapp_root\WEB-INF\cfusion\lib directory.
Configure search paths
Make a backup copy of the setupCmdLine.bat file, located in the websphere_root\AppServer\bin directory.
1
Open the original file for editing and add the following on a single line before the line that starts with SET
2
WAS_CLASSPATH:
SET CF_APPS_PATH=cf_webapp_root\WEB-INF\cfusion\lib
Replace cf_webapp_root with the path to your web application directory; for example, enter the following:
SET CF_APPS_PATH=%WAS_HOME%\installedApps\%WAS_CELL%\
Adobe_ColdFusion_10.ear\cfusion.war\WEB-
INF\cfusion\lib;%WAS_HOME%\installedApps\%WAS_CELL%\
Adobe_ColdFusion_10.ear\cfusion.war\WEB-INF\flex\jars
Add the CF_APPS_PATH variable to the WAS_CLASSPATH by appending the following text to the path
3
statement:
;%CF_APPS_PATH%
The WAS_CLASSPATH line should look similar to the following:
SET
WAS_CLASSPATH=%WAS_HOME%/properties;%WAS_HOME%/lib/bootstrap.jar;%WAS_HOME%/lib/j2ee.jar;%
WAS_HOME%/lib/lmproxy.jar;%WAS_HOME%/lib/urlprotocols.jar;%CF_APPS_PATH%
Save the file.
4
Add the full path to the cf_webapp_root\WEB-INF\cfusion\lib directory to the WAS_PATH variable in the
5
setupCmdLine.bat file. The WAS_PATH line should look similar to the following:
SET WAS_PATH=%WAS_HOME%\bin;%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin;%PATH%;C:\Program
Files\IBM\WebSphere MQ\bin;C:\Program Files\IBM\WebSphere MQ\java\bin;C:/Program
Files/IBM/WebSphere MQ/WEMPS\bin;%CF_APPS_PATH%;
6
Save the file.
Last updated 7/9/2012
33