I am trying to create proxy cfc to handle RPC calls in my CB
application. If I placed that proxy.cfc in a folder called remote or
any other folder name & accessed that corresponding URL from browser
http:// MyLocalRailoUrl /remote/proxy.cfc?method=
{ myFuncationName } &fwreinit=1
It is giving me error message as " invalid component definition, can't
find remote.config/Coldbox "
If I placed that same proxy.cfc inside cfcs folder & accessed that
URL from browser, it is giving result.
http:// MyLocalRailoUrl /cfcs/proxy.cfc?method=
{ myFuncationName } &fwreinit=1
Whether "cfcs" folder is any special folder name which will
automatically detect by railo / cb?
As per naming convention & coding standard of my project, I should not
use cfcs folder to place proxy.cfc.
Do I want to add any configuration details to fix this issue?
Can I ask if you are using Ajax Calls or Flash Remoting?
If you are not using flash remoting, then the proxy is really and
technically not needed. In other words you would call your handler from your
JS as you would normally, without the use of the proxy.
From: coldbox@googlegroups.com [mailto:coldbox@googlegroups.com] On
Behalf Of CF Mitrah
Sent: Tuesday, 5 July 2011 8:57 PM
To: ColdBox Platform
Subject: [coldbox:10633] invalid component definition, can't find
{foldername}.config/Coldbox
I am trying to create proxy cfc to handle RPC calls in my CB application.
If I
placed that proxy.cfc in a folder called remote or any other folder name
&
accessed that corresponding URL from browser
http:// MyLocalRailoUrl /remote/proxy.cfc?method= {
myFuncationName } &fwreinit=1 It is giving me error message as " invalid
component definition, can't find remote.config/Coldbox "
If I placed that same proxy.cfc inside cfcs folder & accessed that URL
from
browser, it is giving result.
http:// MyLocalRailoUrl /cfcs/proxy.cfc?method= { myFuncationName
Someone might correct me if I am wrong here as I don't do Flex stuff with
ColdBox as of yet, but I do recall something in the past that the proxy for
Flash Remoting had to be in the root of the application.
Thanks a lot for your reply. It is working fine, If I placed the
proxy.cfc in web root.
But I am wondering, how it is working in from cfcs folder but not from
some other folder.
I hope, some one can help on this?
The problem is the Application.cfc loading in the config file, when you load
it from the directory that you want too, the application.cfc is loaded but
it will not be from the root of the application like the config.cfc is
expected to be loaded from.
So you could look at that and force the application.cfc to look from the
root of the application to load the config.cfc file.
You can house your cfc in a remote/ directory if desired, but you need to set the appMapping setting. You can read more about and how to setup the proxy here.