If I get this right, you have the App.cfc in the server root and 2 
Application.cfc's each in one of the flex app directories (app1, 
app2) which are subfolders in the server root.
If that is the case, App.cfc doesn't *see* those Application.cfc's.
App.cfc runs in the context it lives in, not in the context it is invoked from, 
if that makes sense.

App.cfc will look for an Application.cfc in it's own folder and upwards to the 
root, untill it finds one, but never looks in sub 
directories.

Does that make sense?

regards,
Muzak

----- Original Message ----- 
From: "EECOLOR" <[EMAIL PROTECTED]>
To: <flexcoders@yahoogroups.com>
Sent: Thursday, September 28, 2006 10:57 AM
Subject: Re: [flexcoders] Bugs in the Remoting adapter which comes with 
ColdFusion


> The problem with the Application.cfc (Bug #2) appears to be even worse then
> i thought. It can be tested with the following simple files:
>
> Application.cfc (change the name for each directory)
>
> <cfcomponent>
> <cfset this.name = "app2" />
> </cfcomponent>
>
> App.cfc
>
> <cfcomponent extends="fly.TestApp">
> <cffunction name="test" access="remote" returntype="any">
>  <cfreturn "TEST (#application.applicationName#):
> #getDirectoryFromPath(getCurrentTemplatePath())#" />
> </cffunction>
> </cfcomponent>
>
> App2.mxml (app1 looks exactly the same).
>
> <?xml version="1.0" encoding="utf-8"?>
> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"; layout="absolute"
> applicationComplete="start()">
>
> <mx:Script>
>  <![CDATA[
>   import fly.utils.cfDump;
>   import mx.rpc.events.FaultEvent;
>   import mx.rpc.events.ResultEvent;
>   import mx.rpc.remoting.RemoteObject;
>   public function start():void
>   {
>    var ro:RemoteObject = new RemoteObject();
>    ro.destination = "ColdFusion";
>    ro.source = "App";
>    ro.addEventListener(ResultEvent.RESULT, _result);
>    ro.addEventListener(FaultEvent.FAULT, _fault);
>
>    ro.test();
>   };
>
>   public function _result(e:ResultEvent):void
>   {
>    //will push the event over a local connection to our debug panel which
> shows it like cfDump in coldfusion would.
>    cfDump(e);
>   };
>
>   public function _fault(e:FaultEvent):void
>   {
>    cfDump(e);
>   };
>  ]]>
> </mx:Script>
> </mx:Application>
>
>
> I will now test to see if i can set up a windows 2000 server with IIS to see
> if i can replicate the problem there.
>
>
> Greetz Erik
> 




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/flexcoders/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to