Create
a directory named cfusion.
The directory can have any name,
but these instructions assume a directory name of cfusion under
your JRun server instance. This directory becomes the context root
into which ColdFusion is deployed. For example, if you are installing
ColdFusion in the default JRun server, the directory is /opt/jrun4/servers/default/cfusion.
Create a directory named CFIDE.
This directory is the
context root into which the remote development service (RDS) application
is deployed, for example, /opt/jrun4/servers/default/CFIDE.
Stop the JRun server to which you want to deploy ColdFusion
by using the JRun Launcher (jrun_root/bin/jrun) or type jrun_root/bin/jrun
stop server_name in a console window.
If you haven't done so already, open a console window, navigate
to the cfusion directory, and use the jar utility to uncompress
the cfusion.war file, by using the following commands:
cd jrun_root/jrun4/servers/servername/cfusion
java_home/bin/jar -xvf cfusion_install_directory/cfusion.war
The
directory jrun_root refers to the directory in which you
installed JRun 4, for example, C:\JRun 4 or /opt/jrun4. Replace servername with
the name of the server to which you are deploying ColdFusion. For
example, if you installed ColdFusion in the default JRun server,
replace servername with default.
Navigate to the CFIDE directory and use the jar utility to
uncompress the rds.war file, using the following commands:
cd jrun_root/jrun4/servers/servername/CFIDE (or cd ../CFIDE)
java_home/bin/jar -xvf cfusion_install_directory/rds.war
Configure JVM settings through the Settings panel of the
JRun Management Console (JMC) or by using a text editor to modify
the jrun_root/bin/jvm.config file. Ensure that the following entries
are in the JVM classpath (java.class.path):
To enable COM support
(Windows only), add the following jIntegra binary directories to
the JVM’s native library path (java.library.path):
WEB-INF/cfusion/jintegra/bin
WEB-INF/cfusion/jintegra/bin/international
(optional) To enable CORBA support, copy the vbjorb.jar file
to the WEB-INF/cfusion/lib directory and define the following argument:
-Xbootclasspath/a:"cf_webapp_root/WEB-INF/cfusion/lib/vbjorb.jar"
To enable charting (UNIX only), define the following argument:
-Djava.awt.graphicsenv=com.gp.java2d.ExGraphicsEnvironment"
and
specify
com.gp.java2d.ExHeadlessGraphicsEnvironment
instead
of
com.gp.java2d.ExGraphicsEnvironment.
In addition to enabling
sandbox security in the ColdFusion 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"
To use cfregistry
in Windows, to use the cfreport tag for Crystal
Reports, and to use any C++ CFX custom tags, 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
If
you are running Solaris without X Windows, to use the cfdocument tag, you
must set the headless switch to true in the jvm.config file, as
follows:
java.awt.headless=true
Start the JRun server the way you stopped it in step 3, either
by using the JRun Launcher or by typing jrun_root/bin/jrun start server_name in a
command window. If autodeploy is enabled, JRun 4 deploys the application automatically
when you start the JRun server.
Review the server log (jrun_root/logs/servername-event.log)
to ensure that ColdFusion deployed successfully.
Start the ColdFusion Administrator to run the Configuration
Wizard.