Discussion:
Problem with CFIDE
(too old to reply)
Mihai Baboi
2009-03-06 23:37:54 UTC
Permalink
Hello,

Until now I have been running CF8 as a standalone server on JRun. Because I
also have PHP installed I decided to install it on top of Apache. It all works
well, but I'm having a problem with the images in the ColdFusion Administrator.
It's mapped in jrun-web.xml (I'll post the code at the end) because I want a
different document root for CF and PHP. So after I've done my virtual mappings,
the ColdFusion Administrator works, but it will not display any of the images
in the site. Does anyone else have this problem, or know how to fix it? It's
purely an esthetic problem but it's kind of annoying.

Here's what my virtual mappings in jrun-web.xml look like:

<virtual-mapping>
<resource-path>/WEB-INF</resource-path>
<system-path>C:/usr/coldfusion/wwwroot/WEB-INF</system-path>
</virtual-mapping>

<virtual-mapping>
<resource-path>*</resource-path>
<system-path>D:/work/cfm/www</system-path>
</virtual-mapping>

<virtual-mapping>
<resource-path>/CFIDE/*</resource-path>
<system-path>C:/usr/coldfusion/wwwroot/CFIDE</system-path>
</virtual-mapping>
BKBK
2009-03-15 07:47:33 UTC
Permalink
[i]So after I've done my virtual mappings, the ColdFusion Administrator works,
but it will not display any of the images in the site.[/i]

Are images missing from the Administrator alone or from the whole site,
includng the Administrator?
Mihai Baboi
2009-03-15 09:29:25 UTC
Permalink
[q][i]Originally posted by: [b][b]BKBK[/b][/b][/i]

Are images missing from the Administrator alone or from the whole site,
includng the Administrator?[/q]

I only had my CFIDE folder mapped to this location. I haven't experimented
with other sites but what I can say is that every image in every page of the
administration site is missing (is not displaying actually). Since then, I've
been doing some research. I asked Raymond Camden from
http://www.coldfusionjedi.com/ and he said I should map my virtual directories
in httpd.conf and not jrun-web.xml. I've tried that but it still doesn't work.
I think there's a problem with the rights on the wwwroot folder in the
ColdFusion installation directory because if I move my CFIDE in another
location and map it there it works just fine. For now I've solved the problem
by moving the CFIDE folder in the web root that I mapped, but it still bugs me
that I can't make it work the way I wanted.
BKBK
2009-03-20 04:55:32 UTC
Permalink
Strange. The images are in CFIDE\administrator\images. I therefore expect
Coldfusion to see the images, as it can see the CFM pages. What happens when
you experiment with

<virtual-mapping>
<resource-path>/CFIDE/administrator/*</resource-path>
<system-path>C:/usr/coldfusion/wwwroot/CFIDE/administrator</system-path>
</virtual-mapping>
Mihai Baboi
2009-03-20 18:09:49 UTC
Permalink
[q][i]Originally posted by: [b][b]BKBK[/b][/b][/i][/q]

Actualy, I haven't tryied that. I have tryied this:

<virtual-mapping>
<resource-path>/CFIDE/*</resource-path>
<system-path>C:/usr/coldfusion/wwwroot/CFIDE</system-path>
</virtual-mapping>

and that shoul mean that it has to map every subfolder in CFIDE. Even stranger
is that I mapped this in apache's httpd.conf and it still doesn't work. I've
given up, I'll just map CFIDE in my root folder and that shoul work just fine.
Loading...