Tomcat : Running ColdFusion MX 6.1 as a Tomcat application

This page last changed on May 14, 2007 by Kees de Kooter

Unpack some stuff

Install the CF from the CD and select a Developer Edition setup. Next you choose to install as J2EE Configuration, WAR file. A file called cfusion.war is now places in the selected installation directory.

Unpack this war file (using an unzip utility) and remove tools.jar from WEB-INF/cfusion/lib. Next copy it to the tomcat/webapps directory.

Apply license

By default this is a Developer Edition of CF. Put the appropriate license.properties in WEB-INF/cfusion/lib.

Modify tomcat setup

Add the setenv.bat file to %TOMCAT_HOME%\bin. Make sure that the %TOMCAT_HOME% environment variable is set.

setenv.bat (Windows version)

rem Set a few variables.
set CF_HOME=%TOMCAT_HOME%\webapps\cfusion
set CF_WEB_INF=%CF_HOME%/WEB-INF

rem Concatenate binary file directories into a single variable.
set CF_SHARED_LIB=%CF_WEB_INF%/cfusion/lib
rem The following variable must be on a single line.

rem put this on 1 line!!
set  CF_SHARED_LIBS=%CF_SHARED_LIB%;%CF_SHARED_LIB%/_nti40/bin;
%CF_WEB_INF%/cfusion/jintegra/bin;
%CF_WEB_INF%/WEB-INF/cfusion/jintegra/bin/international

rem Add libraries for binary files to the Windows system path.
set PATH=%PATH%;%CF_SHARED_LIBS%

rem Set JVM options to enable sandbox security (all on one line).


rem put this on 1 line!!
set CF_SECURITY_JVM_OPTIONS=-Djava.security.manager 
-Djava.security.policy="%CF_WEB_INF%/cfusion/lib/coldfusion.policy" -Djava.security.auth.policy="%CF_WEB_INF%/cfusion/lib/neo_jaas.policy"

rem Set JVM options for CORBA. Use if vbjorb.jar is not in
rem your JRE's lib/ext directory.
rem set CF_CORBA_JVM_OPTIONS=-Xbootclasspath/a:"%CF_WEB_INF%/lib/vbjorb.jar"

rem Consolidate JVM options.
rem * Use this line if you've configured CORBA
rem set CF_JVM_OPTIONS=%CF_SECURITY_JVM_OPTIONS% %CF_CORBA_JVM_OPTIONS%
rem * Use this line if you haven't configured CORBA
set CF_JVM_OPTIONS=%CF_SECURITY_JVM_OPTIONS%

rem Populate JAVA_OPTS, which will be used by catalina.bat
rem when starting the JVM.
set JAVA_OPTS=%CF_JVM_OPTIONS%

Add your CF application

Your CF application can be added anywhere under the cfusion directory. Java jar files should be put in cfusion/WEB-INF/lib.

Running multiple instances

Sharing ColdFusion session information with regular webapps

See

Installing ColdFusion MX for J2EE on Tomcat