Expand my Community achievements bar.

Problem with "Contact Manager Using Cold Fusion" Example

Avatar

Level 1
Hello,



I'm hoping for ideas as to why the data is not interacting
with the contactmgr.mxml file in Tom Jordahl's Contact Manager app.



TestContactAssempler.cfm works fine - records are returned.
Services-config has been modified and the other xml file has been
tweaked, but what is up with the
{server.name}:{server.port}:{context.root} variables? Surely they
need to be changed. What is context.root?



The paths extracted after unzipping the file did not match
with the instructions, so I had to do some tweaking. For example,
http://localhost:8700/samples/dataservice/contact/contactmgr.mxml



was not extracted; my contactmgr.mxml file was actually
located here:



c:\fds2\jrun4\servers\default\samples\contact_sample\dataservice\contact\



I copied the entire contact folder to go under the samples
folder in order to get contactmgr.mxml to be located in the address
given in the instructions, but no luck seeing the data in the mxml
file.



Other unzip anomalies include the fact that there are not two
directories called /samples/contact and /samples/db, but rather
samples/contact, and samples/contact/db. So what am I to do? Change
these directories to match the instructions?



Anyway, I'd really like to get this to work. Any help greatly
appreciated. Thanks.



Sincerely,

Andrew
9 Replies

Avatar

Level 1
Thank you for your reply. Couple of things regarding that
thread:



#17, #19, #20 refer to CFusionMX7\wwwroot as the location to
unzip/map to. I am using IIS, and extracted to inetpub\wwwroot
instead. Could that be my problem?



My testcontactasembler.cfm works fine at port 80 (rather than
8500)



#23 - line regarding the DataService did not have to be
changed.



{server-name} - can it be 127.0.0.1?



Sincerely,

Andy

Avatar

Level 2
Level 2
Everything should work fine on an external web server.

Just be sure the potential "gotchas" in 17, 19 & 20 are
correct in your webroot.

127.0.0.1 or localhost is fine.

The only other suggestion is if you are still stuck, to try
and follow those instructions using the built-in web server just as
another test.

Avatar

Level 2
Level 2
Also, make sure the project properties in Flex Builder
reflect the correct webroot and port.

Avatar

Level 1
Thank you. I'll try your suggestions.



I have an error in Flex Builder when I create Flex project
stating that there is an error on line 6 (which is commented text)
that "Interface Imanaged was not found."

Avatar

Level 1
Also, isn't it when I install Flex Data Services that I can
specify to use the built in web server? Do I have to
uninstall/reinstall to make that change or is there a setting
elsewhere, such as the Registry? .



Or, do I have to make the change on the CF side, which seems
more likely, but also more difficult given that this is a
development server for IIS/CF?



Hope that makes sense :-)

Avatar

Level 2
Level 2
Not sure about the Flex Builder error.


This
livedoc
will assist you in enabling the built-in webserver. You
are not using the FDS2 built-in web server, you are using the
ColdFusion built-in web server (on port 8500 by default for single
server configurations). (See steps 17-21 in step-by-step
thread)

Avatar

Level 1
Hey,



In that step-by-step thread, steps 23-24 read:



23. Find this line of code: ds = new
DataService("cfcontact");

24. Change cfcontact to cfcontact-default



I was looking at that cfcontact-default, and I didn't see it
elsewhere in the code, and it really was the part of this that
didn't make sense. So I changed it back to what it was in step 23,
ds = new DataService("cfcontact"); and lo and behold, it is
working.



Can you tell me what cfcontact-default was all about?



Thanks for your help.



Andrew

Avatar

Level 2
Level 2
Steps #23 and #24 must have been in response to an isolated
configuration issue

I have added a comment to the
original
step-by-step instructions
.

Thanks for making us aware.