Re: Connecting to CFC's in the same directory in CF9.

2010-07-29 Thread John Pullam

For the benefit of anyone who encounters this posting while scanning the list, 
I was just informed that Adobe have verified the behaviour I reported and are 
targeting a hotfix for it.

Nice to know that I wasn't misunderstanding something. 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335846
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Connecting to CFC's in the same directory in CF9.

2010-07-19 Thread John Pullam

I have only one special mapping for a directory that has some externally 
provided cfc's called /cfc but to reference those ones, the code prefaces the 
calls with cfc. 

In the case I am describing above, I'm just doing the simple thing of looking 
for a  cfc in the same directory as the invoking web page, so I don't believe 
that any mapping is needed. 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335464
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Connecting to CFC's in the same directory in CF9.

2010-07-18 Thread John Pullam

I think that I have isolated it pretty well now ...

It can find the CFC if both the invoking web page and the CFC are in the 
document root (c:\inetpub\wwwroot\) and it can find it if I create a 
subdirectory from there, e.g., c:\inetpub\wwwroot\real\ and move them both to 
it.

But if I create a virtual directory that points into my website pages and place 
both modules there then it fails.

I went back to my old CF8 system and tested it the same way and satisfied 
myself that there is no such problem in CF8.

So my conclusion is that CF9 is not able to find the CFC when it is in a 
virtual directory, even though the calling page is in the same virtual 
directory. I am using a new Windows 7 Professional system which means I am 
running IIS 7. So I figure that the issue is either a CF9 bug or something that 
needs to be changed in the IIS 7 setup. (But if I can access the web page, 
could anything else need to be done to access the CFC?)

Any ideas? If I get nothing back I will post this to Adobe and see if they can 
provide help. 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335452
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Connecting to CFC's in the same directory in CF9.

2010-07-18 Thread Andrew Scott

That is a limitation when it comes to Virtual Directories, it won't work
like that.

Regards,
Andrew Scott


-Original Message-
From: John Pullam [mailto:jpul...@mcleansystems.com] 
Sent: Sunday, 18 July 2010 10:26 PM
To: cf-talk
Subject: Re: Connecting to CFC's in the same directory in CF9.


I think that I have isolated it pretty well now ...

It can find the CFC if both the invoking web page and the CFC are in the
document root (c:\inetpub\wwwroot\) and it can find it if I create a
subdirectory from there, e.g., c:\inetpub\wwwroot\real\ and move them both
to it.

But if I create a virtual directory that points into my website pages and
place both modules there then it fails.

I went back to my old CF8 system and tested it the same way and satisfied
myself that there is no such problem in CF8.

So my conclusion is that CF9 is not able to find the CFC when it is in a
virtual directory, even though the calling page is in the same virtual
directory. I am using a new Windows 7 Professional system which means I am
running IIS 7. So I figure that the issue is either a CF9 bug or something
that needs to be changed in the IIS 7 setup. (But if I can access the web
page, could anything else need to be done to access the CFC?)

Any ideas? If I get nothing back I will post this to Adobe and see if they
can provide help. 



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335454
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Connecting to CFC's in the same directory in CF9.

2010-07-18 Thread John Pullam

That surprises me. Virtual directories work fine in CF8 and I have been using 
them like that on my development desktop for several years without a problem. 
Can you please provide me more information about your statement?

Specifically:
- what is the limitation?
- is it an IIS issue or CF?
- did it just happen on CF9?
- is there any documentation that explains this limitation?

If I can't use virtual directories, what is the approach that others use for 
testing on a desktop with multiple CF websites? Put all the data on the c: 
drive in wwwroot? (It seems more logical to me to use virtual directories and 
keep them with the rest of my files.)

Thanx.



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335459
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Connecting to CFC's in the same directory in CF9.

2010-07-18 Thread Brad Wood

What ColdFusion mappings do you have set up on the CF8 and CF9 boxes?  That 
could explain a difference in behavior.

 If I can't use virtual directories, what is the approach that others use 
 for testing on a desktop with multiple CF websites?

Install Apache, set up multiple sites, and use your host file to have a 
separate domain for each of them.  For instance, www.example.com could be 
devww.example.com on your desktop.

~Brad 


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335460
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Connecting to CFC's in the same directory in CF9.

2010-07-17 Thread Maureen

On Fri, Jul 16, 2010 at 5:09 PM, John Pullam jpul...@mcleansystems.com wrote:


 So I may have a CF9 bug here ... it can't find the CFC even though it is in 
 the same directory. Any other ideas?

Are the mappings different on the server and the localhost?
Operating systems different?
Case of file name match case of the cfc being called?

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335443
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Connecting to CFC's in the same directory in CF9.

2010-07-16 Thread John Pullam

This is a variation of a question I posted a few days ago that didn't get 
resolved, so please bear with me. It seems simple but I am not getting anywhere 
with it.

I have a test page (TestCFC.cfm) that binds to a CFC (TestCFC2.cfm) that is in 
the same directory. This used to work on CF8 but it doesn't on CF9. I keep 
being told that The specified CFC TestCFC2 could not be found.

I don't understand why it can't be found because the manual says that for bind 
expressions, The componentPath value must be a dot-delimited path from the web 
root or the directory that contains the current page.

My calling page contains:
cfform
  cfselect name=oSLevel bind=cfc:TestCFC2.GetRoles() bindonload=true 
value=m /
  /cfform

The CFC it calls is:

cfcomponent
!--- Function to populate the Roles drop-down ---
cffunction name=GetRoles access=remote returnType=array
cfset var result=ArrayNew(2)
cfset var i=2
cfset var item=

cfset result[1][1]=
cfset result[1][2]=-- Select --
cfset result[2][1]=m
cfset result[2][2]=person

cfreturn result
/cffunction
/cfcomponent

Can anyone tell me what I am doing wrong? Or is this a CF9 bug?


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335434
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Connecting to CFC's in the same directory in CF9.

2010-07-16 Thread brad

In your E-mail you said the component file name was TestCFC2.cfm . 
Shouldn't that be TestCFC2.cfc?

~Brad

 Original Message 
Subject: Connecting to CFC's in the same directory in CF9.
From: John Pullam jpul...@mcleansystems.com
Date: Fri, July 16, 2010 4:42 pm
To: cf-talk cf-talk@houseoffusion.com


This is a variation of a question I posted a few days ago that didn't
get resolved, so please bear with me. It seems simple but I am not
getting anywhere with it.

I have a test page (TestCFC.cfm) that binds to a CFC (TestCFC2.cfm) that
is in the same directory. This used to work on CF8 but it doesn't on
CF9. I keep being told that The specified CFC TestCFC2 could not be
found.

I don't understand why it can't be found because the manual says that
for bind expressions, The componentPath value must be a dot-delimited
path from the web root or the directory that contains the current page.

My calling page contains:
cfform
 cfselect name=oSLevel bind=cfc:TestCFC2.GetRoles()
bindonload=true value=m /
 /cfform



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335435
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Connecting to CFC's in the same directory in CF9.

2010-07-16 Thread James Holmes

Did you apply the latest update for CF9? That fixes a bug for
cfajaxproxy related to this, so it may solve this problem too.

--
WSS4CF - WS-Security framework for CF
http://wss4cf.riaforge.org/



On 17 July 2010 05:42, John Pullam jpul...@mcleansystems.com wrote:

 This is a variation of a question I posted a few days ago that didn't get 
 resolved, so please bear with me. It seems simple but I am not getting 
 anywhere with it.

 I have a test page (TestCFC.cfm) that binds to a CFC (TestCFC2.cfm) that is 
 in the same directory. This used to work on CF8 but it doesn't on CF9. I keep 
 being told that The specified CFC TestCFC2 could not be found.

 I don't understand why it can't be found because the manual says that for 
 bind expressions, The componentPath value must be a dot-delimited path from 
 the web root or the directory that contains the current page.

 My calling page contains:
 cfform
      cfselect name=oSLevel bind=cfc:TestCFC2.GetRoles() 
 bindonload=true value=m /
      /cfform

 The CFC it calls is:

 cfcomponent
 !--- Function to populate the Roles drop-down ---
 cffunction name=GetRoles access=remote returnType=array
    cfset var result=ArrayNew(2)
    cfset var i=2
    cfset var item=

    cfset result[1][1]=
    cfset result[1][2]=-- Select --
        cfset result[2][1]=m
    cfset result[2][2]=person

        cfreturn result
    /cffunction
    /cfcomponent

 Can anyone tell me what I am doing wrong? Or is this a CF9 bug?


 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335439
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Connecting to CFC's in the same directory in CF9.

2010-07-16 Thread John Pullam

OK, several replies ...

1 - Yes, I made that stupid error. After I renamed it to CFC, it worked 
correctly on the live CF9 system.

2 - Even with that fixed, it fails on my desktop (that was the original problem 
and I was trying to narrow it down). So when I have the calling page on 
localhost and the CFC in the same directory, it can't find it.

3 - I just applied the 9.0.1 update (after much grief) and that didn't fix it.

So I may have a CF9 bug here ... it can't find the CFC even though it is in the 
same directory. Any other ideas? 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335440
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm