User guide

27
INSTALLING COLDFUSION 9
Installing the J2EE Configuration
Last updated 1/20/2012
cd cfusion-ear
java_home/bin/jar -xvf ../cfusion.ear
This expands the cfusion.ear file into cfusion.war and rds.war (rds.war is not included if you specified a context
root of / when you ran the installation wizard).
c In cfusion-ear, make a new directory named cfusion-war.
md cfusion-war (mkdir cfusion-war on UNIX)
d Change to the cfusion-war directory and expand the cfusion.war file with the jar command:
cd cfusion-war
java_root/bin/jar -xvf ../cfusion.war
This expands the cfusion.war file.
e (If rds.war exists) Go up one level to cfusion-ear, make a new directory named rds-war.
cd ..
md rds-war (mkdir rds-war on UNIX)
f (If rds.war exists) Change to the rds-war directory and expand rds.war with the jar command:
cd rds-war
java_root/bin/jar -xvf ../rds.war
This expands rds.war.
g Go up one level to the cfusion-ear file, and delete the cfusion.war and rds.war files:
cd ..
del cfusion.war (rm cfusion.war on UNIX)
del rds.war (rm rds.war on UNIX)
h Open the cfusion-ear/META-INF/application.xml file in a text editor.
i Change the web-uri element from cfusion.war to cfusion-war (or the name of the directory that contains the
expanded cfusion.war file). Change the
web-uri element for rds.war to rds-war. A directory name in the web-
uri element cannot contain a dot.
j Save the application.xml file.
2 Deploy ColdFusion 9 by copying the cfusion-ear directory structure to the jrun_root/servers/servername directory.
If auto deploy is enabled, JRun 4 either deploys the application immediately (if the JRun server is running), or when
you start the JRun server.
3 Review the server log (jrun_root/logs/servername-event.log) to ensure that ColdFusion 9 deployed successfully.
When using WAR deployment, JRun uses the directory name of the expanded cfusion.war file as the context root.
You can optionally modify the context root. By setting the context root to slash (/), you do not have to include the
context root in the URL when accessing CFM pages.
Set the context root to /
1 Stop the JRun server that is running ColdFusion.
2 Delete the jrun_root/servers/servername/default-ear directory and all subdirectories.
3 Start the JRun server that is running ColdFusion.
4 Ensure that the admin JRun server is running.
5 Start the JRun server instance "admin" and browse to http://localhost:8000 from a browser on the computer where
JRun is installed to access the JRun Management Console (JMC).