|
Mailing Lists
|
Home /
Groups /
ColdFusion Talk (CF-Talk)
Absolute references to CFCs failing
Is com a virtual directory? If so you need to have a CF Mapping to that directory.Kumaran Nallore 08/21/02 09:59 A Ian Chia wrote:Jochem van Dieten 08/21/02 10:17 A Is com a virtual directory? If so you need to have a CF Mapping to that directory. For example: If "com" points to c:\abc\def\ghi folder, then you need a "com" cf mapping pointing to that same folder. This should solve the browsing issue too. You should not require a CF Mapping to CFIDE, unless it is also a virtual directory. By default, CFIDE folder is dropped under the webroot. So, this should work out of the box. HTH Kumaran Hi, I've got a CMFX installation under IIS that is driving me a little crazy with CFCs. I've been using CFCs on a local CFMX standalone server that works fine with the absolute namespace addresses. For example: mydomain.com\com\macromedia\test\HelloWorld.cfc I have a simple CFM page that calls the above cfc, but living in the same directory. http://mydomain.com/com/macromedia/test/test.cfm This works fine. *BUT* ... I have the same code, but living in a different directory. I want to address the same CFC, via the absolute notation, as per the MM docs. The same page is here, with a minor change to the namespace param like so: <cfoutput> <cfinvoke component="com.macromedia.test.HelloWorld" method="sayHello" returnVariable="message" /> Server time: #message# </cfoutput> Locally under port 8500 works fine. Under IIS 5.0 online, this gets me the error: Could not find the template com.macromedia.test.helloworld And if I try to hit the CFC directly via http, like: http://mydomain.com/com/macromedia/test/HelloWorld.cfc It gives me a 404. The cfc_explorer isn't invoked. I read on the MM webforums that mapping to the CFIDE can help fix problems like this, so we've created this mapping under IIS, but still no dice. I've also tried to create a mapping using the CF administrator, but CFMX can't find the cfc using the custom mapped directory either. The weird thing is that it works for Flash Remoting calling the same CFC using the absolute name spacing scheme. But it doesn't work when I use it within a CFM. For example, http://mydomain.com/flash_remoting_test/index.htm calling the same CFC from within Flash, using the same absolute namespace like "com.macromedia.test.helloworld" works fine. I'm also concerned that mapping the CFIDE to my public website is just asking for trouble. Has anyone encountered similar problems with suggestions to fix this, and can someone provide comments on the security issues to do with mapping CFIDE onto a public domain (seems like a dodgy fix to me.) Many thanks for the advice, - Ian FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists Ian Chia wrote: ----- Excess quoted text cut - see Original Post for more ----- Just like lpt, nul, etc. com might or might not have a special meaning to the OS. Better change that name. And if that doesn't help, I wouldn't know the answer. Jochem
|
May 24, 2012
|
Latest Fusion Authority Articles
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||