Re: [flexcoders] Flex/ColdFusion use-mappings ignored?

2008-05-06 Thread Tom Chiverton
On Friday 02 May 2008, Battershall, Jeff wrote:
 As I said, I'm willing to be convinced otherwise, but you'd have to make
 sure that your paths are correct 

Dev. is the same as live, as far as ColdSpring is concerned (a 'coldspring' 
mapping) and the generated CFCs use a relative path of '/com/foo/bar/baz' so 
as long as ...

 and that CF has write permissions on 
 the directory that you've designated for your proxies, although I
 suppose some big, fat exeception would be thrown if it didn't. 

... we either remember to set the permissions, or understand the exception 
when creating the bean, it's fine.

 Another thing I've used at times in Flex/CF integration are pre-defined
 destinations to specific source locations in remoting-config.xml - how
 would auto-generated remote proxies work with that?

Exactly the same as to any other CFC. That's one of the strengths of 
autogenerating them - your Flex app now does not care you've got 
AOP/ColdSpring in the back end, it just sees a CFC.

-- 
Tom Chiverton, convinced yet ?



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
Regulated by The Solicitors Regulation Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
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/



RE: [flexcoders] Flex/ColdFusion use-mappings ignored?

2008-05-06 Thread Battershall, Jeff
Tom,

C'mon - I'm not questioning your decision to take that approach - all I
was just trying to help the guy with the off-the-wall behavior he was
seeing. What's your take on his problem?

Jeff

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom Chiverton
Sent: Tuesday, May 06, 2008 6:14 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex/ColdFusion use-mappings ignored?


On Friday 02 May 2008, Battershall, Jeff wrote:
 As I said, I'm willing to be convinced otherwise, but you'd have to 
 make sure that your paths are correct

Dev. is the same as live, as far as ColdSpring is concerned (a
'coldspring' 
mapping) and the generated CFCs use a relative path of
'/com/foo/bar/baz' so 
as long as ...

 and that CF has write permissions on
 the directory that you've designated for your proxies, although I
 suppose some big, fat exeception would be thrown if it didn't. 

... we either remember to set the permissions, or understand the
exception 
when creating the bean, it's fine.

 Another thing I've used at times in Flex/CF integration are 
 pre-defined destinations to specific source locations in 
 remoting-config.xml - how would auto-generated remote proxies work 
 with that?

Exactly the same as to any other CFC. That's one of the strengths of 
autogenerating them - your Flex app now does not care you've got 
AOP/ColdSpring in the back end, it just sees a CFC.

-- 
Tom Chiverton, convinced yet ?



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England
and Wales under registered number OC307980 whose registered office
address is at Halliwells LLP, 3 Hardman Square, Spinningfields,
Manchester, M3 3EB.  A list of members is available for inspection at
the registered office. Any reference to a partner in relation to
Halliwells LLP means a member of Halliwells LLP.  Regulated by The
Solicitors Regulation Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and
may be confidential or legally privileged.  If you are not the addressee
you must not read it and must not use any information contained in nor
copy it nor inform any person other than Halliwells LLP or the addressee
of its existence or contents.  If you have received this email in error
please delete it and notify Halliwells LLP IT Department on 0870 365
2500.

For more information about Halliwells LLP visit www.halliwells.com.



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





Re: [flexcoders] Flex/ColdFusion use-mappings ignored?

2008-05-06 Thread Tom McNeer
On Tue, May 6, 2008 at 9:51 AM, Battershall, Jeff 
[EMAIL PROTECTED] wrote:

   C'mon - I'm not questioning your decision to take that approach - all I
  was just trying to help the guy with the off-the-wall behavior he was
  seeing. What's your take on his problem?
 







I'm still here, by the way. And still mystified.

Although unfortunately, I haven't had the opportunity to do any more
testing.

There's no reason in the world why the mappings should work on one CF8
installation and not on another, given identical mappings and identical
remoting-configs. But that sure seems to be what's going on.

I don't expect anyone to do extensive legwork on something this arcane. I'll
keep hammering at it myself.

Mainly, I'm just looking to see if anyone has either a) seen this sort of
behavior before, or b) can quickly see a stupid mistake I'm making.

-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560


Re: [flexcoders] Flex/ColdFusion use-mappings ignored?

2008-05-06 Thread Tom Chiverton
On Tuesday 06 May 2008, Tom McNeer wrote:
 I don't expect anyone to do extensive legwork on something this arcane.
 I'll keep hammering at it myself.

I'd take the .xml config files and 'diff' them, might produce a ton of false 
positives, and you might have to tidy up the XML first, but it might be 
useful.

-- 
Tom Chiverton
Helping to evangelistically maintain integrated e-services
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
Regulated by The Solicitors Regulation Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
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/



[flexcoders] Flex/ColdFusion use-mappings ignored?

2008-05-02 Thread Tom McNeer
Hi,

In developing a Flex application locally, I am compiling against a
remoting-config.xml which has the use-mappings value set to true. And in
the development environment, this works fine.

However, when I deploy it to a production server (a VPS), the mappings are
ignored. I can only hit the CFCs by following a path from the webroot. While
this is a slight pain in itself, it's a real problem with ColdSpring, which
is outside the webroot. When Flex calls ColdSpring's remote proxy CFC, there
is an error because the beanUtils cannot be found.

I have tested this using a Hello World method in a test.cfc. No matter
what I do, the use-mappings setting seems to be ignored.

Both servers are CF8.

Can anyone suggest what I'm doing wrong, please?

-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560


RE: [flexcoders] Flex/ColdFusion use-mappings ignored?

2008-05-02 Thread Dale Fraser
Works fine for us.

 

Are you sure the mapping is setup right on production.

 

Regards

Dale Fraser

 http://learncf.com/ http://learncf.com

 http://flexcf.com/ http://flexcf.com

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom McNeer
Sent: Friday, 2 May 2008 9:13 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex/ColdFusion use-mappings ignored?

 

Hi,

In developing a Flex application locally, I am compiling against a
remoting-config.xml which has the use-mappings value set to true. And in
the development environment, this works fine.

However, when I deploy it to a production server (a VPS), the mappings are
ignored. I can only hit the CFCs by following a path from the webroot. While
this is a slight pain in itself, it's a real problem with ColdSpring, which
is outside the webroot. When Flex calls ColdSpring's remote proxy CFC, there
is an error because the beanUtils cannot be found.

I have tested this using a Hello World method in a test.cfc. No matter
what I do, the use-mappings setting seems to be ignored.

Both servers are CF8. 

Can anyone suggest what I'm doing wrong, please?

-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560 

 



Re: [flexcoders] Flex/ColdFusion use-mappings ignored?

2008-05-02 Thread Tom McNeer
Hi Dale,

Thanks for the response.

On Fri, May 2, 2008 at 9:46 AM, Dale Fraser [EMAIL PROTECTED] wrote:

Works fine for us.
 



As far as I can tell, it works fine for everybody. And it works fine for me
in the dev environment. I've never heard of a problem like this, which is
why I figure I'm doing something wrong.

 Are you sure the mapping is setup right on production.
 

Yep, I'm afraid it is. I've run numerous tests, including some very basic
ones.

An example is: ColdSpring is mapped outside the webroot. I can create a
ColdSpring bean factory within an Application.cfc and use it,  based on the
mapping.

But when my Flex app calls a ColdSpring remote proxy CFC (which is
*within*the webroot), it finds the proxy CFC properly, but then errors
out when
attempting to access a CFC under the ColdSpring mapping.

I've also done some simple Hello World tests where I placed a CFC based on
a mapping and tried to access it from a Flex app. No go.

I admit it makes no sense. I'm just hoping someone might have an idea of
what to look for.

-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560


RE: [flexcoders] Flex/ColdFusion use-mappings ignored?

2008-05-02 Thread Battershall, Jeff
I admit I haven't played with ColdSpring's capability of auto-generating
remote proxies.  Personally I have my doubts about this approach as it
doesn't seem to support a source-control managed environment, but I'm
willing to be convinced otherwise.  In any event - it would seem that
your having trouble finding your proxies - is that correct? I had
thought that ColdSpring is actually creating those in a directory of
your choosing.  Are you sure you've got a mapping set up to THAT
directory? Are you absolutely sure those proxy CFCs are physically where
you think they are? Furthernore, I'm not sure why you're placing your
remote proxies in the ColdSpring framework directory at all.  Is there
some reason that particular mapped directory must be used?  To me
something about what you're trying to do seems inherently problematic. 
 
Jeff

-Original Message-
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Tom McNeer
Sent: Friday, May 02, 2008 11:00 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex/ColdFusion use-mappings ignored?


Hi Dale,

Thanks for the response.


On Fri, May 2, 2008 at 9:46 AM, Dale Fraser [EMAIL PROTECTED]
wrote:




Works fine for us.




As far as I can tell, it works fine for everybody. And it works
fine for me in the dev environment. I've never heard of a problem like
this, which is why I figure I'm doing something wrong. 




Are you sure the mapping is setup right on
production.


Yep, I'm afraid it is. I've run numerous tests, including some
very basic ones.

An example is: ColdSpring is mapped outside the webroot. I can
create a ColdSpring bean factory within an Application.cfc and use it,
based on the mapping.

But when my Flex app calls a ColdSpring remote proxy CFC (which
is within the webroot), it finds the proxy CFC properly, but then errors
out when attempting to access a CFC under the ColdSpring mapping.

I've also done some simple Hello World tests where I placed a
CFC based on a mapping and tried to access it from a Flex app. No go.

I admit it makes no sense. I'm just hoping someone might have an
idea of what to look for.

-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560  



Re: [flexcoders] Flex/ColdFusion use-mappings ignored?

2008-05-02 Thread Tom Chiverton
On Friday 02 May 2008, Battershall, Jeff wrote:
 remote proxies.  Personally I have my doubts about this approach as it
 doesn't seem to support a source-control managed environment, 

We've got the folder for the generated RemoteProxies under source control, but 
not the files in it. 
Seems to work well.

-- 
Tom Chiverton
Helping to elementarily streamline cutting-edge e-business
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
Regulated by The Solicitors Regulation Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
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/



RE: [flexcoders] Flex/ColdFusion use-mappings ignored?

2008-05-02 Thread Battershall, Jeff
As I said, I'm willing to be convinced otherwise, but you'd have to make
sure that your paths are correct and that CF has write permissions on
the directory that you've designated for your proxies, although I
suppose some big, fat exeception would be thrown if it didn't. In this
case, you'd have to wonder what it is about the two enviroments that are
different - because something is.

Another thing I've used at times in Flex/CF integration are pre-defined
destinations to specific source locations in remoting-config.xml - how
would auto-generated remote proxies work with that?

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom Chiverton
Sent: Friday, May 02, 2008 11:42 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex/ColdFusion use-mappings ignored?


On Friday 02 May 2008, Battershall, Jeff wrote:
 remote proxies.  Personally I have my doubts about this approach as it

 doesn't seem to support a source-control managed environment,

We've got the folder for the generated RemoteProxies under source
control, but 
not the files in it. 
Seems to work well.

-- 
Tom Chiverton
Helping to elementarily streamline cutting-edge e-business
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England
and Wales under registered number OC307980 whose registered office
address is at Halliwells LLP, 3 Hardman Square, Spinningfields,
Manchester, M3 3EB.  A list of members is available for inspection at
the registered office. Any reference to a partner in relation to
Halliwells LLP means a member of Halliwells LLP.  Regulated by The
Solicitors Regulation Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and
may be confidential or legally privileged.  If you are not the addressee
you must not read it and must not use any information contained in nor
copy it nor inform any person other than Halliwells LLP or the addressee
of its existence or contents.  If you have received this email in error
please delete it and notify Halliwells LLP IT Department on 0870 365
2500.

For more information about Halliwells LLP visit www.halliwells.com.



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





Re: [flexcoders] Flex/ColdFusion use-mappings ignored?

2008-05-02 Thread Tom McNeer
Jeff,

I think you've misunderstood. I'll try to be clearer.

On Fri, May 2, 2008 at 11:34 AM, Battershall, Jeff 
[EMAIL PROTECTED] wrote:

Personally I have my doubts about this approach as it doesn't seem to
 support a source-control managed environment, but I'm willing to be
 convinced otherwise.




Tom's solution seems best. But the files are physically generated, so you
could generate them locally and place them under source control, then deploy
them with everything else. However, that's not the issue here.



 In any event - it would seem that your having trouble finding your proxies
 - is that correct?



No. The proxy is found -- it's within the webroot, and the path in the Flex
app points to it correctly. The error comes when the proxy is invoked,
because in its setup, it invokes one of the core ColdSpring files, and the
mapping is not followed.

 Furthernore, I'm not sure why you're placing your remote proxies in the
 ColdSpring framework directory at all.




As explained above, I'm not.

But let's make this simpler:

I have a Hello World test Flex app. It calls a test.cfc with a
sayHello() method.

The webroot of the site is at D:\myWebStuff\myTest.

The CFC lies at D:\myWebStuff\myTest\test\test.cfc.

I set up a CF mapping called myTest which points directly to the
D:\myWebStuff\myTest directory. I can place a .cfm file there and invoke the
test.cfc with a path of myTest.test.test. So as far as CF is concerned,
the mapping is set correctly.

However, if my Flex app sets a RemoteObject call with a source of
myTest.test.test, the CFC is not found, even though use-mappings is set to
true. If I set the source to simply test.test -- the path from my
webroot -- the CFC is found and invoked correctly.

Moreover, this problem is only occurring on this Production server. On my
local machine, the same .swf, same CFC, same mappings, same
remoting-config.xml, respect the mapping and call the CFC correctly.

That's what's crazy - the different behavior in the two environments, when
the environments seem to be the same.



-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560