Using the cfcompile utility on ColdFusion MX 7 J2EE configuration
Issue
In order to utilize the cfcompile utility for ColdFusion MX 7 in the J2EE configuration, three variables must first be set.
Reason
The CFUSION_HOME, J2EEJAR, andWEBINF variables within the cfcompile utility are not automatically populated during the ColdFusion MX 7 J2EE installation.
Solution
- Backup the cfcompile.sh (Unix) or cfcompile.bat (Windows) file located in<cfusionmx_install_directory>\WEB-INF\cfusion\bin.
- Open the cfcompile file in a text editor.
- Set the
CFUSION_HOME,J2EEJAR, andWEBINFvariables according to your configuration:-
CFUSION_HOME:the path to the \WEB-INF\cfusion directory.
For example:
CFUSION_HOME=C:\JRun4\servers\cf7\cfusion-ear\cfusion-war\WEB-INF\cfusion -
J2EEJAR:the path to the JAR file with the J2EE class files.
For example:
J2EEJAR=C:\JRun4\lib\jrun.jar
For WebLogic: WEBLOGIC install/server/lib/weblogic.jar
For WebSphere: /AppServer/lib/j2ee.jar -
WEBINF:the path to the \cfusion-war\WEB-INF directory.
For example:
WEBINF=C:\JRun4\servers\cf7\cfusion-ear\cfusion-war\WEB-INF
-
- Save the file and run
cfcompileaccording to thedocumentation.
This content requires Flash
To view this content, JavaScript must be enabled, and you need the latest version of the Adobe Flash Player.
Download the free Flash Player now!
