bpurcell.org - Changing the URL for CFCHART
Calendar
SunMonTueWedThuFriSat
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  

Subject Archives
Amazon EC2 (15)
ColdFusionMX (155)
Corvette (3)
Flash Lite (4)
Flash Media Server (5)
Flash Player (3)
Flex (39)
General Web Dev (14)
HDTV (3)
Jboss (1)
Jquery (2)
JRun (59)
Max 2003 (3)
Other (33)
PC Hardware (16)
Software (17)
SpatialKey (7)
Wireless (8)
Working Out (1)

RSS Feed
Feed Listing

Site Contents
Home
My Blog
ColdFusion
JRun
Flex
Wireless & Networking
Hardware & Gadgets
HDTV
Software Picks
Pictures
Contact Me
Search


My Articles & Papers
Flex Performance
Server/Client
mm.com Under the Hood
Multiple Instances of CFMX
Multiple Instance Config
NLB with ColdFusion
Clustering CFMX for J2EE
Multi-Tier Hardware LB w CFMX
Cisco CSS & Coldfusion MX
JRun 4 Jini based Clustering
WiFi Growth

2ID Tacweb

Other Hobbys
Body-For-Life Challenge

Personal Projects
Family Pool
Deck Gate

username:
password:
 

 
Viewing Individual Entry / Main
January 30, 2004

I ran into a case where I needed to change the mapping for CFCHART.  It needs to be changed in two locations.  The first change modifies the HTML that is rendered to the user and the second change modifies the servlet mapping that handles the requests.  

  1. {cfmx-root}/lib/neo-graphing.xml     
    Below changes cfchart engine to generate the image path based on this config.      
    /CFIDE/GraphData.cfm   ==>   /images/GraphData.cfm  
  2. {cfmx-root}/wwwroot/WEB-INF/web.xml   servlet mapping   
    When a request is handled to /images/Graphdata.cfm the GraphServlet will be invoked to find and serve the charts.
    /CFIDE/GraphData.cfm   ==> /images/GraphData.cfm  

Comments

Thank you for this info. I had been unable to get CFCHART to display charts until making this change.

I can find no other reference to your mapping fix in any support bulletins or forums...but it must be a common problem -- charts would not display for me running CFMX6.1 locally, on a dev server, or in a production environment??!?

Until I discovered this change the only way I could use CFCHART was to generate the chart into a binary variable and output it using CFCONTENT per an example in Ben Forta's book ('pretty cool, but not very straightforward).

Anyway, thanks again for this jewel of info..


I'm having the same problem (page hangs and no Flash is presented). This is for a new site I created in IIS where I added CFIDE as a virtual directory. How would I modify these XML files if they're in fact still "pointing" to the right location (CFIDE). Anyone??

TIA


Alright. I got this working but only for one graph (not new ones), so I guess it's not working again. blah


Jose,

Although the URL says CFIDE/GraphData.cfm, it has nothing to do with a physical file in the CFIDE directory.

The reason why it doesn't work is most likely the absence of a virtual dir called 'JRunScripts'. This virtual dir should point to [cfroot]\runtime\lib\wsconfig\1 with NO read and write permissions and execute permissions set to 'Script and Executables'.

HTH, Ruud


We have a problem where our CFIDE is not in our site root, it's in another site. How do we reference that directory to make it work? THis is so frustrating.


We are having CFMX6.1 and IIS 6 with multiple sites. The sites that use cfchart are failing to show the FLASH chart in the browser. Though the swf files are getting created in the \CFusionMX\charting\cache directory. To one of the sites in question, I have also created the 'jrunscripts' vir. directory (with Scripts and Executables rights) pointing to \CFusionMX\runtime\lib\wsconfig\1 folder. But no luck. I also tried tweaking permissions on the 'charting' directory to no avail :( Can anyone help please ??!?!?!?!?


Thanks for the information about the jrunscripts virtual directory. That resolved our issue.


Can someone email me this method of serving CFCHART through CFCONTENT? I want to give it a try and see if it solves our problem with cfchart hanging.

Thanks


I'm having the same problem. The one about the charts not showing up. Can someone post a solution?


Thanks for posting this. I had been tearing my hair out trying to create a virtual directory in IIS to do this but no luck - your changes to the xml files fixed it tho!


Spent half-a-day looking for a way to get CFCHART to work (image is in cache but nothing shows on the browser). Tried the changes to the XML, no luck. Until I ran across a Macromedia article which relates to IIS and CF. GraphData needs to exist as a file on the CFIDE (or wherever the servlet is mapped to). In our case we had a CFIDE physical directory under IIS with just the scripts directory. So, I created a blank GraphData.cfm there and lo and behold the Graph appeared on the browser.

Article was http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_18516

Go to item #4


I've figured out the problem... for me anyway. When I monitored the http traffic during a page with cfchart, I could see it was doing a GET request on:

/CFIDE/GraphData.cfm?graphCache=wc50&graphID=Images/100001.SWF

So, then I tried doing a get request for that file... I got a 404 error.

Then, I looked at my apache settings. I noticed that I was doing some crazy URL rewriting with MOD rewrite. At that point I set my mod_rewrite code to *not* fire if the URL had /CFIDE in it.

Now the chart displays and I don't even have a real "/CFIDE" directory in my web root. I think what's happening is that the JRUN connector sees the request for the "/CFIDE/GraphData.cfm" file and it magically responds with the flash movie.

Cheers, Jon http://www.jonathanblock.com


Big THANKS to Joey regarding the creation of the 2 x blank files in the inetpub/wwwroot/CFIDE folder.... worked!


I know this is an old blog article but it may still help someone else to post a comment. I just recently was working on a dashboard for a company that is involved in credit repair, http://www.freecreditfixletters.com for their affiliate program. Working local on my machine, it was working fine with the flash charts, but when I uploaded to the demo site on the staging server, we had issues with the flash charts. The fix in our case was that we had to add an Alias in the vhost definition for Apache, like so: Alias /CFIDE "C:\Path\To\CFIDE"

Doing that right there worked out great, I didn't need to change the xml documents stated in the blog entry. I'm not sure how IIS handles this, I mainly use Apache.


DITTO: Thanks Joey for URL to NT Auth issue regarding the creation of the 2 x blank files - sorted me out!


Using cfgraph (MX7) with rewrite doesn't work.

the case. i've a domain name : www.domain.com then i've an under domain : name1.domain.com

when i use cf graph from name1.domain.com, the graph does'nt display anything.

i 've a rewrite methode to /CFIDE/ but the image (jpg or swf) doesn't appear. it seems there is a folder Images that i can't access. how can i can succeed to have the cfgraph fully work.

thanks for your help


Using cfgraph (MX7) with rewrite doesn't work.

the case. i've a domain name : www.domain.com then i've an under domain : name1.domain.com

when i use cf graph from name1.domain.com, the graph does'nt display anything.

i 've a rewrite methode to /CFIDE/ but the image (jpg or swf) doesn't appear. it seems there is a folder Images that i can't access. how can i can succeed to have the cfgraph fully work.

thanks for your help


Microsoft Windows 7 has to conservation as a key design element, emphasis is to enable end users to better power management and centralized management for the IT professionals tools.

Microsoft's engineers to make <a href="http://www.buysellkey.com/windows-7-power-management.html"><span>Windows 7 the power management</span></a> features than any previous version of Windows are easier to use, while providing optimal settings for the user the ability. Microsoft officials said, will be released in October this year,<a href="http://www.buysellkey.com/products.html"><span>Windows 7 product key </span></a> in the default settings for when to start any application with more intelligent capabilities. For example, Bluetooth wireless services only in the device when connected to the network will start; the DVD drive does not always start.


 
Page Render Time:204