Skip to main content
Inspiring
August 20, 2009
Question

CF9 CFC Mapping Error + Flash Builder

  • August 20, 2009
  • 1 reply
  • 1881 views

Hey all,

     I am using ORM Generator to generate some CFCs and Services on a localhost. I store those cfcs on C:\ColdFusion9\wwwroot\cfcs\example_orm and the Flex Project under C:\ColdFusion9\wwwroot\MyFlexProject. Then I connect to the cold fusion service throught flash builders Data/Services wizard; everything works fine I can bind those services to components and do a full CRUD. The problem occurs when i generate another ORM and store it under C:\ColdFusion9\wwwroot\cfcs\example2_orm, then again i connect to the service using Data/Services wizard in flash builder; i can connect to i no problem, but when i try to do the same exact thing as i did with the first generated ORM it gives me an error "Unable to invoke CFC - Mapping for component Regions not found.". This does not make any sense at all. I have been working to resolve this issue for 2 days now and cannot figure out what is happening. Please help!

P.S. I have set up the mappings like so:

     Logical Path: /cfcs

     Directory Path: C:\ColdFusion9\wwwroot\cfcs

mxml service 1:

     Destination: "ColdFusion"

     Source: "cfcs.example_orm.exampleService"

     AS3:

     [RemoteClass(alias="cfcs.example_orm.exampleService")]

mxml service 2:

     Destination: "ColdFusion"

     Source: "cfcs.example2_orm.exampleService2"

     AS3:

     [RemoteClass(alias="cfcs.example2_orm.exampleService2")]

Service 1 works without any problems but service 2 gives me an error. I am really lost as to why this would not work. Any help appreciated!

This topic has been closed for replies.

1 reply

Inspiring
September 8, 2009

When using ORM generator to generate cfcs make sure that Application.cfc has unique app names in order to solve the problem above.