Jrun4 + ColdFusion + Flex + IIS

Source: Internet
Author: User
Jrun4 + ColdFusion + Flex + IIS configured successfully
Article category: Other tutorials published at: 21:01:08

Browsing: 64 times

First of all, I would like to thank the flex provided here. This is my first post here and I hope to help you.
I read some posts yesterday and found that some friends encountered difficulties in configuring Flex + cfusion to run in IIS. I am still familiar with J2EE configuration. I tried to configure it this morning, the process is not complex when the result is passed. The following describes how to configure Flex + cfusion and IIS.

First install jrun. I didn't use the ColdFusion Installation File to install JRun, because cfusion uses the war mode when installing JRun with ColdFusion, and many changes need to be made to the later configuration, to save trouble, it is best to install JRun in the ear mode, so that JRun must be installed separately.

Install JRun, install cfusion after completing the patch, select the J2EE/ear Method for installation, and set the context root to/(Root ). Install flex and then configure cfusion. Decompress cfusion. ear to the cfusion directory and enter this directory. There is a cufsion. War and
META-INF directory, copy several war files under the flex directory to this directory.

Then, set cfusion. war, flex. war, profiler. war, samples. decompress the war to cfusion-war, flex-war, profiler-war, samples-war, and enter the META-INF directory to modify the application. XML file, you only need to add a few webmodules.

<? XML version = "1.0" encoding = "UTF-8"?>
<! Doctype application public "-// Sun Microsystems, Inc. // DTD J2EE application 1.2 //" http://java.sun.com/j2ee/dtds/application_1_2.dtd ">
<Application ID = "application_id">
<Display-Name> Macromedia ColdFusion MX </display-Name>
<Description> Macromedia ColdFusion MX </description>
<Module id = "webmodule_1">
<Web>
<Web-Uri> cfusion-war </Web-Uri>
<Context-root>/</context-root>
</Web>
</Module>
<Module id = "webmodule_2">
<Web>
<Web-Uri> flex-war </Web-Uri>
<Context-root> flex </context-root>
</Web>
</Module>
<Module id = "webmodule_3">
<Web>
<Web-Uri> samples-war </Web-Uri>
<Context-root> samples </context-root>
</Web>
</Module>
<Module id = "webmodule_4">
<Web>
<Web-Uri> profiler-war </Web-Uri>
<Context-root> profiler </context-root>
</Web>
</Module>
</Application>

After saving the file, you can configure it in jrun. I directly configured it in the default server. If you like it, you can create a new one. Delete the default-ear folder in the default server directory, copy the cfusion directory, and restart jrun. If you do not need IIS, you can use it.

Configure IIS below, first install the default server to the System Service (this can be started with the system), and run it in the jrun4 \ bin directory
Jrunsvc.exe-install "default"
Start wsconfig.exe and configure JRun on IIS. Select the IIS Site. Select the configure Web server for ColdFusion application option.

Open the IIS manager, select the newly configured web site, and add several virtual directories, point to cfusion \ cfusion-war \ cfide, cfusion \ flex-war, cfusion \ samples-war, cfusion \ profiler-war, the virtual directory names are cfide, flex, samples, and Profiler. Finally, add an IIS extension, mxml, and process the same file as CFM.

Now all configuration is complete. After IIS is restarted, you can access localhost/samples to see the effect.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.