User Guide
ColdFusion MX 7 J2EE deployment and configuration 43
Security In addition to enabling sandbox security in the ColdFusion MX Administrator, the
application server must be running a security manager (
java.lang.SecurityManager) and you
must define the following JVM arguments:
-Djava.security.manager
-Djava.security.policy="
cf_webapp_root/WEB-INF/cfusion/lib/coldfusion.policy"
-Djava.security.auth.policy="
cf_webapp_root/WEB-INF/cfusion/lib/
neo_jaas.policy"
Additional setup
To use cfregistry on Windows, to use the cfreport tag for Crystal Reports, and
to use any C++ CFX custom tags, you must add cfusion/lib to the Java library path. Add the
following directory to the JVM’s native library path (
java.library.path):
WEB-INF/cfusion/lib
Additionally, certain application servers require that you disable server-specific policy-file
permissions in order to enable the ColdFusion security manager. For more information, see the
application-server-specific instructions at www.macromedia.com/go/cfmx7_j2eecert.
If the version of the tools.jar file in your application server’s JRE is different from the version of
the tools.jar file in the WEB-INF/cfusion/lib directory, you should rename or delete the WEB-
INF/cfusion/lib/tools.jar file to ensure that your application server’s tools.jar file is used.
ColdFusion MX 7 J2EE configuration directory structure
The following table describes the directories under the cf_webapp_root web application directory
when you use the J2EE configuration:
Directory Description
cfdocs Documentation for ColdFusion MX 7.
CFIDE Files for the ColdFusion MX Administrator.
WEB-INF/cfclasses Compiled ColdFusion templates in your ColdFusion MX
applications.
WEB-INF/cfc-skeletons Support for ColdFusion components that are exported as web
services.
WEB-INF/cfform Files that support Flash forms.
WEB-INF/cftags Templates for ColdFusion MX.
WEB-INF/gateway Files that support event gateways.
WEB-INF/cfusion/bin Executable files used by ColdFusion MX.
WEB-INF/cfusion/cfx CFX tag include file and examples.
WEB-INF/cfusion/charting Files for the ColdFusion MX graphing and charting engine.
WEB-INF/cfusion/Custom Tags Repository for your custom tags.
WEB-INF/cfusion/db Sample databases: in Windows, the files for sample Microsoft
Access databases and ODBC services; on UNIX, the files for the
sample PointBase databases. Also includes software for installing
ODBC support and other database system-specific files.