Not sure I can answer all the parts of your question, but I recently
worked through an issue with MACR tech support on the use of a JRUN
virtual mapping.
In my case, we wanted to move the location of the files which make up
the CF Administrator... for example, instead of using the
CFIDE/administrator directory that is buried down inside the
cfusion.ear directory, we wanted to point to a different copy of
CFIDE/adminsitrator (for example, /opt/webroot/CFIDE/administrator).
<virtual-mapping>
<resource-path>/CFIDE/administrator/*</resource-path>
<system-path>/opt/webroot/CFIDE/administrator/</system-path>
</virtual-mapping>
By inserting a "virtual mapping" in the jrun-web.xml, we were able to
"intercept" requests to /CFIDE/administrator and redirect them as
desired. However, be aware that any such mappings will be be
accessible by any webserver connected to the JRUN instance in question
(just like a ColdFusion mapping). In my case, this enabled the CF
administrator application on every webserver, which caused me even
greater pains, so I scrapped the idea.
Hope this makes sense,
-Ben
----- Original Message -----
From: Mike Chabot <[EMAIL PROTECTED]>
Date: Tue, 20 Jul 2004 10:23:48 -0400
Subject: Virtual Mappings in jrun-web.xml
To: CF-Talk <[EMAIL PROTECTED]>
I upgraded a CFMX 6.0 install to CFMX 6.1, and then attached it to my
Web server (Sun ONE). Inside jrun-web.xml there are two virtual
mappings, one of which is below.
<virtual-mapping>
<resource-path>/*</resource-path>
<system-path>C:/CFusionMX/wwwroot/</system-path>
</virtual-mapping>
On other servers, I also have two direct CFMX 6.1 installs, one
installed as a stand-alone server, the other installed as a stand
alone server then attached using wsconfig. Neither of these other two
installs have the above virtual mapping, so my guess is that it is a
hold-over from CFMX 6.0. It may have been the case that mappings under
CFMX 6.0 were stored in jrun-web.xml, while mappings under CFMX6.1 are
now stored in neo-runtime.xml.
When this mapping is here, the following is what happens when I
request a cfmx file that is under the Sun ONE Web root.
1. httpd.exe (Sun ONE) confirms that the directory exists
2. jrun.exe looks for the file a couple times in C:/CfusionMX/wwwroot, and fails
3. jrun.exe looks for the file under the Sun ONE Web root and succeeds.
Step 2 seems wasteful, since it seems to happen (fail) for every
single request. Without the virtual mapping, step 2 is eliminated and
everything seems to work fine. So, does anyone have any idea how/why
the virtual mapping got added? Why would I want to add a virtual
mapping using jrun-web.xml instead of using CFAdmin?
The default mappings in CFAdmin are usually one for the Web server
root / and one for /CFIDE. Do I actually need a mapping to define the
root, since I do not know of any place where I actually make use of
this mapping in my code?
Thank you,
Mike Chabot________________________________
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

