Installing an EAR file or WAR files
If your computer is already running a J2EE application server, the installation wizard creates an EAR file or WAR files, which you deploy using application-server-specific tools. The ColdFusion MX J2EE configuration must run out of an expanded directory structure. Different J2EE application servers have different functionality with regard to deployment and an expanded directory structure, as follows:
• Deploy compressed archive to working directory On some J2EE application servers (such as IBM WebSphere), the deployment process expands the EAR/WAR file into a working directory and from that point forward, the expanded directory is considered to be the application. For these application servers, you deploy the compressed EAR/WAR file and work in the resulting directory structure.
• Deploy expanded archive as working directory On other application servers (such as JRun 4 and BEA WebLogic), the deployment process expands the EAR/WAR file into a temporary directory and (conceptually), the compressed EAR/WAR file is still considered to be the application. For these application servers, you must expand the EAR/WAR file manually and then deploy the expanded directory structure, which becomes your working directory. The following discussions provide installation procedures for Windows and UNIX. For more about deployment and configuration, see “ColdFusion MX J2EE deployment and configuration”
Installing an EAR file or WAR files in Windows
This section explains how to install the ColdFusion MX 6.1 J2EE configuration in a Windows platform. If you are updating an existing deployment of ColdFusion MX for J2EE, see “Updating from ColdFusion MX for J2EE” before continuing.
Note: The Windows installer requires a computer that supports at least 256 colors.
To install ColdFusion MX 6.1 in Windows (J2EE configuration):
1 Read the online version of the Release Notes for any late-breaking information or updates. For more information, see www.macromedia.com/go/proddoc_releasenotes.
2 Make sure that your operating system meets the system requirements described in “System requirements”
3 Review the “Installation considerations for Windows”
4 Determine and record environment information, as described in “Preparing to install using the J2EE configuration”
5 Close any applications that are currently running on your computer.
6 Insert the CD or download the setup file from the Macromedia website.
7 If the installation wizard does not start automatically when you insert the CD, locate setup.exe on the CD and double-click it. If you are installing from a network or a downloaded file, locate the ColdFusion MX 6.1 installation executable file (coldfusion-61-win.exe) and double-click it. The installation wizard starts.
8 Follow the instructions in the wizard, and let it run to completion. After the Pre-Installation Summary pane, the files are copied to your computer.
9 Deploy ColdFusion MX 6.1 and configure Java settings, as required by your application server. For more information, see “ColdFusion MX J2EE deployment and configuration”
10 Open the ColdFusion MX Administrator in a browser (http://localhost:portnumber/contextroot/CFIDE/administrator/index.cfm). Because opening the ColdFusion MX Administrator for the first time automatically invokes the Configuration Wizard, it is best to open the Administrator at this time.
11 Answer the questions asked by the Configuration Wizard. Completion of the Configuration Wizard and display of the ColdFusion MX Administrator indicate a successful install of ColdFusion MX.
12 Configure and manage your system, as described in Chapter 4, “Configuring Your System,”
13 Code and test ColdFusion MX CFM pages. Store CFM pages under the web application root (either cfusion-ear\cfusion-war or cfusion-war) and access these pages using a URL of the form http://hostname:portnumber/context-root/filename.cfm, as follows:
■ hostname The machine name, IP address, localhost, or 127.0.0.1.
■ portnumber The port number used by your application server’s web server.
■ contextroot The context root for the ColdFusion MX web application. For more information, see “Context root”
■ filename The directory path and file to display. The path is relative to the cfusion-war directory.
For example, to display a CFM file located at c:\JRun4\servers\default\cfusion-ear\cfusionwar\eisapp\index.cfm using the built-in JRun web server and a context root of cfmx, you
specify the URL as http://127.0.0.1:8100/cfmx/eisapp/index.cfm.
Installing an EAR file or WAR files on UNIX
This section explains how to install the ColdFusion MX 6.1 J2EE configuration on UNIX. If you are updating an existing deployment of ColdFusion MX for J2EE, see “Updating from ColdFusion MX for J2EE” before continuing.
By default, the ColdFusion MX 6.1 J2EE install places files into the /opt/cfmx directory. To install it into a different directory, you must create that directory before running the installation.
To install ColdFusion MX 6.1 on UNIX (J2EE configuration):
1 Read the online version of the Release Notes for any late-breaking information or updates. For more information, see www.macromedia.com/go/proddoc_releasenotes.
2 Make sure that your operating system meets the system requirements described in “System requirements for UNIX”
3 Review the “Installation considerations for UNIX”
4 Determine and record environment information, as described in “Preparing to install using the J2EE configuration”
5 Log in as root.
6 Copy the installation file that is appropriate for your platform and locale from the CD or Macromedia website, and save it to a directory on your local disk.
The installation files for supported server configuration platforms are as follows:
■ coldfusion-61-lin.bin
■ coldfusion-61-sol.bin
■ coldfusion-61-other.jar
7 Using the cd command, go to the directory with the installation file.
8 Start the installation with the following command:
./<filename>
The installation program starts. To use coldfusion-61-other.jar to install on a UNIX platform other than Solaris or Linux, enter the following command (for more information, see “Installation considerations for UNIX”
java_home/bin/java -jar coldfusion-61-other.jar
Note: To run the UNIX installer in GUI mode, type ./ -i gui
9 Follow the prompts, and let the installation program run to completion.
Caution: For security reasons, it is crucial that you do not use root for the runtime user.
After the Pre-Installation Summary, the files are copied to your computer.
10 Deploy ColdFusion MX 6.1 and configure Java settings, as required by your application server. For more information, see “ColdFusion MX J2EE deployment and configuration”
11 Open the ColdFusion MX Administrator in a browser (http://hostname:portnumber/contextroot/CFIDE/administrator/index.cfm). Because opening the ColdFusion MX Administrator for the first time automatically invokes the Configuration Wizard, it is best to open the Administrator at this time.
12 Answer the questions asked by the Configuration Wizard.
Completion of the Configuration Wizard and display of the ColdFusion MX Administrator indicate a successful install of ColdFusion MX.
Note: If you deployed the rds.war file, and a Configuration Wizard error message indicates that RDS is not installed or not enabled, edit the rds.properties file to match the ColdFusion context root, restart the application server, and re-open the ColdFusion MX Administrator.
13 Configure and manage your system, as described in Chapter 4, “Configuring Your System,”
14 Code and test ColdFusion MX CFM pages. Store CFM pages under the web application root (either cfusion-ear/cfusion-war or cfusion-war) and access these pages using a URL of the form http://hostname:portnumber/context-root/filename.cfm, as follows:
■ hostname The machine name, IP address, localhost, or 127.0.0.1.
■ portnumber The port number used by your application server’s web server.
■ contextroot The context root for the ColdFusion MX web application. For more information, see “Context root”
■ filename The directory path and file to display. The path is relative to the cfusion-war directory.
For example, to display a CFM file located at /opt/jrun4/servers/default/cfusion-ear/cfusionwar/eisapp/index.cfm using the built-in JRun web server and a context root of cfmx, you specify the URL as http://127.0.0.1:8100/cfmx/eisapp/index.cfm.