The instructions at www.macromedia.com/go/cfmx7_j2eecert provide detailed, application-server-specific ColdFusion MX 7 deployment instructions. Depending on your application server, the instructions describe deployment of an EAR file or WAR files in either a compressed archive or an expanded directory structure. When you deploy ColdFusion MX 7 on an existing version of JRun 4, you must expand the EAR file or WAR files manually before deployment.
The following procedures describe EAR and WAR deployment on an existing version of JRun 4.
Tip: The instructions for expanding the cfusion.ear file also apply when deploying ColdFusion MX 7 on BEA WebLogic.
Before you deploy ColdFusion MX 7 as an enterprise application on an existing JRun server, you must expand the EAR and the WAR files that it contains.
Note: If you are already using an application with an empty context root, you must use a context root other than / for the cfusion-ear file. If you specified / when you installed ColdFusion MX 7, you can change it by opening the cfusion-ear/META-INF/application.xml file in a text editor and modifying the context-root element. After you deploy the cfusion-ear file, you access ColdFusion pages by specifying http://hostname:portnumber/contextroot/pagename
.cfm.
If you are updating an existing deployment of ColdFusion MX or ColdFusion MX 6.1 for J2EE, you must undeploy ColdFusion MX or ColdFusion MX 6.1 for J2EE before you deploy ColdFusion MX 7, as described in Updating from ColdFusion MX or ColdFusion MX 6.1 for J2EE.
md cfusion-ear (mkdir cfusion-ear on UNIX)
jar
command:cd cfusion-ear java_home/bin/jar -xvf ../cfusion.earThis 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).
md cfusion-war (mkdir cfusion-war on UNIX)
jar
command:cd cfusion-war java_root/bin/jar -xvf ../cfusion.warThis expands the cfusion.war file.
cd .. md rds-war (mkdir rds-war on UNIX)
jar
command:cd rds-war java_root/bin/jar -xvf ../rds.warThis expands rds.war.
cd .. del cfusion.war (rm cfusion.war on UNIX) del rds.war (rm rds.war on UNIX)
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.When you deploy ColdFusion MX 7 as a web application on an existing JRun server, you expand the cfusion.war file, deploy it, and optionally modify the context root. For complete information on deploying ColdFusion MX 7 on JRun 4 as a WAR file, see www.macromedia.com/go/cfmx7_j2eecert.