2 Replies Latest reply on Jun 19, 2006 3:37 PM by mikeDoh

    Flex Data Services tutorial error

    mpeterson Level 1
      In the "Before You Begin" section of the Flex Data Services tutorial in "Getting Started with Flex", the first bullet is incorrect. It text should be:

      "Ensure that you have installed the Flex Data Services Beta 3 release and that you can run the applications in the samples web application."

      The installation instructions are located here:

      The tutorial zip file is located here:

      - Mike Peterson
      Adobe Flex documentation team
        • 1. Flex Data Services tutorial error
          Hi, I found some more "issues" with these data services tutorial.

          First of working with the notes example at first I couldn't get the two browsers to talk to eachother until I found this comment by funk_sf on the livedocs:


          after some searching, I located a link to the tutorial.zip here: http://www.macromedia.com/go/flex2beta1_quickstart_tutorial_zip. i unzip'd the contents into my samples directory so that I had the following path: C:\fds2\jrun4\servers\default\samples\tutorials

          the xml file in WEB-INF for the standalone flexbuilder 2b3 is located at C:\fds2\resources\config as mentioned in the comments on the previous page ( http://livedocs.macromedia.com/labs/1/flex20beta3/00000129.html)

          as for creating the tutorial1.mxml file, i created a new Flex project with the following settings (this is from memory, so hopefully i recall all the steps right):

          File->New Flex Project

          How will you flex application access data? -> Flex Data Services -> Compile application locally in Flex Builder

          root folder: C:\fds2\jrun4\servers\default\samples

          root url: http://localhost:8700/samples/

          I left the build paths to their defaults (ie. blank)

          named the main application file: tutorial1.mxml
          output folder: tutorial
          output folder url: [blank]

          So I followed his advice, deleted my project and made it in the samples directory and the notes application started to work, so all appeared good.

          Until I was making the Java example and I'm now faced with the following errors:

          Severity Description Resource In Folder Location Creation Time Id
          2 Definition samples.contact:Contact could not be found. tutorial2.mxml Tutorials line 8 6 juni 2006 16:36:25 20

          Severity Description Resource In Folder Location Creation Time Id
          2 Type was not found or was not a compile-time constant: Contact. tutorial2.mxml Tutorials line 13 6 juni 2006 16:36:25 21

          I'm not sure what is happening, I think it can't find the data service files but I don't know how to make it so that it does find those files, the manual is still a bit vague on that and when I try to run this application it just shows a blue (flex) screen. The code I'm using is straight from the example documentation after tinkering around for 2 days to get this to work I thought using original code is the best way to go.

          My application tries to run from http://localhost:8700/samples/bin/tutorial2.html

          The documentation states:
          Open the following URL in two browser windows:

          The screenshots in the documentation show:
          Window1: /tutorial/tutorial1.mxml
          Window2: /dataservice/contact/tutorial_step4.mxml

          Now I'm just confused, tutorial1.mxml is my notes application which was the previous tutorial and there was no mention of a tutorial_step4.mxml file ?

          Someone help me please with where to place these files and why so I can understand what is happening here.

          Thanks :)
          • 2. Re: Flex Data Services tutorial error
            I'm in the same situation. I cannot understand exactly how the client application accesses the server java classes.