Specifications

CHAPTER 5
62
Installing the J2EE Configuration
To avoid this issue, edit run.sh and add the following parameters in the JVA_OPTS arguments
-Djava.security.manager
-Djava.security.policy="cf_root/WEB-INF/cfusion/lib/coldfusion.policy"
-Djava.security.auth.policy="cf_root/WEB-INF/cfusion/lib/neo_jaas.policy"
This document uses the following conventions:
JBOSS_HOME Directory where JBoss is installed, for example, C:\jboss-4.0.5SP1 in Windows or /usr/local/jboss-
4.0.5.SP1 on UNIX
JBOSS_DEPLOY_DIR Application deployment directory in JBoss, for example, C:\jboss-
4.0.5SP1\server\default\deploy
CF_WEBAPP_ROOT Directory where ColdFusion is deployed, for example: C:\jboss-
4.0.5SP1\server\default\deploy\cfusion.ear\cfusion.war
TEMP_LOCATION Temporary location where you extract the cfusion.ear file.
Deploy ColdFusion on JBoss
1 To ensure that ColdFusion can deploy on JBoss 4.0.5, perform the following steps instead of following the
standard instructions in the cfmx-j2ee-readme.txt file:
a Keep periods in the directory names, instead of renaming them with dashes, for example,
\deploy\cfusion.ear\cfusion.war.
b Do not make the updates to application.xml.
2 Set JAVA_HOME to the appropriate JRE or JDK.
3 Install ColdFusion by using the J2EE deployment option.
The installation program creates the cfusion.ear file in the install directory.
4 Extract the cfusion.ear file to a temporary location.
The extraction operation generates cfusion.war rds.war and the META-INF directory files and puts them in
the extracted folder.
5 Extract the cfusion.war file to the TEMP_LOCATION\cfusion.ear\cfusion.war folder.
6 Extract the rds.war file to the TEMP_LOCATION\cfusion.ear\rds.war folder.
7 Copy the META-INF directory to the TEMP_LOCATION\cfusion.ear folder.
8 Stop JBOSS if it is running.
9 Copy the TEMP_LOCATION\cfusion.ear folder and its contents to JBOSS_DEPLOY_DIR.