Adobe
Products

Top destinations

  • Adobe Creative Cloud
  • Creative Suite
  • Adobe Marketing Cloud
  • Acrobat
  • Photoshop
  • SiteCatalyst
  • Students
  • Elements family

Adobe Creative Cloud

  • What is Adobe Creative Cloud?
  • Design
  • Web
  • Photography
  • Video
  • Students
  • Teams
  • Enterprise
  • Educational institutions

Design and photography

  • Photoshop
  • Illustrator
  • InDesign
  • Adobe Muse
  • Lightroom

Video

  • Adobe Premiere
  • After Effects

Web development and HTML5

  • Edge Tools & Services [opens in a new window]
  • Dreamweaver
  • Gaming [opens in a new window]

Adobe Marketing Cloud

  • What is Adobe Marketing Cloud?
  • Digital analytics
  • Social marketing
  • Web experience management
  • Testing and targeting
  • Media optimization

Analytics

  • SiteCatalyst
  • Adobe Discover
  • Insight

Social

  • Adobe Social

Experience Manager

  • CQ
  • Scene7

Target

  • Test&Target
  • Recommendations
  • Search&Promote

Media Optimizer

  • AdLens
  • AudienceManager
  • AudienceResearch

Document services

  • Acrobat
  • EchoSign [opens in a new window]
  • FormsCentral [opens in a new window]
  • SendNow [opens in a new window]
  • Acrobat.com [opens in a new window]

Publishing

  • Digital Publishing Suite

  • See all products
Business solutions

By business need

  • Digital analytics
  • Digital publishing
  • Document management
  • Media optimization
  • Social marketing
  • Testing and targeting
  • Video editing and serving
  • Web development [opens in a new window]
  • Web experience management
  • See all business needs

By industry

  • Broadcast
  • Education
  • Financial services
  • Government
  • Publishing
  • Retail
  • See all industries
Support & Learning

I need help

  • Products
  • Adobe Creative Cloud
  • Adobe Marketing Cloud
  • Forums [opens in a new window]

I want to learn

  • Training and tutorials
  • Certification [opens in a new window]
  • Adobe Developer Connection
  • Adobe Design Center
  • Adobe TV [opens in a new window]
  • Adobe Marketing Center
  • Adobe Labs [opens in a new window]
Download
  • Product trials
  • Adobe Flash Player
  • Adobe Reader
  • Adobe AIR
  • See all downloads
Company
  • Careers at Adobe
  • Investor Relations
  • Newsroom
  • Privacy
  • Corporate Social Responsibility
  • Customer Showcase
  • Contact us
  • More company info
Buy
  • For personal and professional use
  • For students, educators, and staff
  • For small and medium businesses
  • Volume Licensing
  • Special offers
  • Adobe Marketing Cloud sales [opens in a new window]
Search
 
Info Sign in
Why sign in? Sign in to manage your account and access trial downloads, product extensions, community areas, and more.
Welcome,
My Adobe
My orders
My information
My preferences
My products and services
Sign out
My cart
Privacy My Adobe
Adobe
Products Sections Buy   Search  
Solutions Company
Help Learning
Sign in Sign out Privacy My Adobe
Date Date
Qty:
Subtotal
Promotions
Estimated Shipping
VAT
Calculated at checkout
Total
Checkout
ColdFusion Help / 

Changing the web root in JRun 4 and ColdFusion MX J2EE Configuration on JRun 4 when using JWS

Adobe Community Help


Products Affected

  • ColdFusion

Contact support

 
By clicking Submit, you accept the Adobe Terms of Use.
 

Changing the web root from the default web application root is a common practice in J2EE server configuration. It is especially useful in a clustered environment where multiple JRun server instances share a common code base. This TechNote provides the steps to change the web root for the JRun internal web server (JWS).

JRun

When you deploy a J2EE web application in JRun, by default, the web root is the web application's root. For example, for the default-war application, it is the {jrun.home}/servers/{server-instance}/default-ear/default-war directory. In certain circumstances, you may want to change the web root to a different directory. This is typically done in a clustered environment using third-party load balancer with the JWS so that many JRun server instances can share the same directory instead of managing source code in multiple locations. When using JWS, it can be easily achieved by modifying the virtual-mapping setting in the jrun-web.xml file located under the /WEB-INF directory.

<virtual-mapping><resource-path>/*</resource-path><system-path>C:\\mysource-path</system-path></virtual-mapping>

Note: On Windows platform, you must replace the single backward slash "\" in the path with double backward slash "\\" or a single forward slash "/".

This changes the web root to theC:\mysource-path directory and forces JRun to search both JSP pages and static content in the new web root and ignore anything in the default context root.

ColdFusion MX in the J2EE Configuration on JRun 4

Changing the web root for ColdFusion MX in the J2EE Configuration on JRun requires additional steps. When ColdFusion MX is deployed on JRun as a J2EE application, the core ColdFusion MX application is located under the /WEB-INF/cfusion directory. In order for ColdFusion MX to locate all the configuration files, it has to know where the /WEB-INF directory is. By default, it uses the ColdFusion MX web root as the base. For example, for ColdFusion MX war deployment, it is {jrun.home}/servers/{server-instance}/cfusion-war/WEB-INF. If the ColdFusion MX web root has been changed, you must provide a second virtual mapping in the jrun-web.xml file pointing to the /WEB-INF directory.

For example:

<virtual-mapping><resource-path>/WEB-INF/*</resource-path><system-path>C:/JRun4/servers/cfusion-server/cfusion/WEB-INF</system-path></virtual-mapping>

Since JRun only searches for documents in the new web root, you need to move or copy the /CFIDE directory to the new web root directory to enable the ColdFusion Administrator. Because the /CFIDE directory contains no configuration files, it is safe to share the same /CFIDE directory among multiple ColdFusion MX instances.

Troubleshooting:

Issue Resolution
404 error when clicking a link in the document root even though the content can be seen in the web root directory listing When adding the new web root, be sure the resource path is "/*" rather than just "/".
Unable to start the ColdFusion service Add a virtual mapping to point to the ColdFusion MX /WEB-INF directory.
"404 null" error
"Requested resource 'null' (null) not found" error
After changing the web root, accessing the ColdFusion Administrator generates a 404 error but other CFM pages work correctly. Copy the /CFIDE directory to the new web root.
To the top

Additional Information

  • Configuring the Macromedia ColdFusion MX built-in web server (For ColdFusion MX server edition)
  • JRun 4.0: Turning off Unnecessary JRun Internal Services for Production
Keywords: tn_19400

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy

Products

  • Adobe Creative Cloud
  • Creative Suite
  • Adobe Marketing Cloud
  • Acrobat
  • Photoshop
  • Digital Publishing Suite
  • Elements family
  • SiteCatalyst
  • For education

Download

  • Product trials
  • Adobe Reader
  • Adobe Flash Player
  • Adobe AIR

Support & Learning

  • Product help
  • Forums

Buy

  • For personal and professional use
  • For students, educators, and staff
  • For small and medium businesses
  • Volume Licensing
  • Special offers

Company

  • News room
  • Partner programs
  • Corporate social responsibility
  • Career opportunities
  • Investor Relations
  • Events
  • Legal
  • Security
  • Contact Adobe
Choose your region United States (Change)
Choose your region Close

North America

Europe, Middle East and Africa

Asia Pacific

  • Canada - English
  • Canada - Français
  • Latinoamérica
  • México
  • United States

South America

  • Brasil
  • Africa - English
  • Österreich - Deutsch
  • Belgium - English
  • Belgique - Français
  • België - Nederlands
  • България
  • Hrvatska
  • Česká republika
  • Danmark
  • Eastern Europe - English
  • Eesti
  • Suomi
  • France
  • Deutschland
  • Magyarország
  • Ireland
  • Israel - English
  • ישראל - עברית
  • Italia
  • Latvija
  • Lietuva
  • Luxembourg - Deutsch
  • Luxembourg - English
  • Luxembourg - Français
  • الشرق الأوسط وشمال أفريقيا - اللغة العربية
  • Middle East and North Africa - English
  • Moyen-Orient et Afrique du Nord - Français
  • Nederland
  • Norge
  • Polska
  • Portugal
  • România
  • Россия
  • Srbija
  • Slovensko
  • Slovenija
  • España
  • Sverige
  • Schweiz - Deutsch
  • Suisse - Français
  • Svizzera - Italiano
  • Türkiye
  • Україна
  • United Kingdom
  • Australia
  • 中国
  • 中國香港特別行政區
  • Hong Kong S.A.R. of China
  • India - English
  • 日本
  • 한국
  • New Zealand
  • 台灣

Southeast Asia

  • Includes Indonesia, Malaysia, Philippines, Singapore, Thailand, and Vietnam - English

Copyright © 2013 Adobe Systems Incorporated. All rights reserved.

Terms of Use | Privacy | Cookies

Ad Choices

Reviewed by TRUSTe: site privacy statement