3 Replies Latest reply on Nov 19, 2008 11:16 AM by Newsgroup_User

    cairngorm | Modules | Service Locator

    ilikeflex
      Hi

      I have shell application (main.mxml) which loaded multiples modules. All the modules are mini application which can be run independently. Shell application just load these modules depend upon the user choices. As soon as i combined all these applications and try to access any module i get the error

      Error: C0001E: Only one Service Locator instance can be instantiated.

      I am not making any call to get the services in the shell application.
      In all the modules i have declared cairngorm controller and cairngorm service locator in mxml file like

      <control:CoreController id="controllerCore"/>
      <serives:Services id="servicesCore"/>

      All the modules have different ids for controller and Service Locator.
      The application runs fine when i run through Flex Builder but when i deploy on server i get the error.

      I do not know why i am getting this error.
      Any pointers.....

      Thanks
      ilikeflex
        • 1. Re: cairngorm | Modules | Service Locator
          Level 7

          "ilikeflex" <webforumsuser@macromedia.com> wrote in message
          news:gg1k61$cmt$1@forums.macromedia.com...
          > Hi
          >
          > I have shell application (main.mxml) which loaded multiples modules. All
          > the
          > modules are mini application which can be run independently. Shell
          > application
          > just load these modules depend upon the user choices. As soon as i
          > combined all
          > these applications and try to access any module i get the error
          >
          > Error: C0001E: Only one Service Locator instance can be instantiated.
          >
          > I am not making any call to get the services in the shell application.
          > In all the modules i have declared cairngorm controller and cairngorm
          > service
          > locator in mxml file like
          >
          > <control:CoreController id="controllerCore"/>
          > <serives:Services id="servicesCore"/>
          >
          > All the modules have different ids for controller and Service Locator.
          > The application runs fine when i run through Flex Builder but when i
          > deploy on
          > server i get the error.
          >
          > I do not know why i am getting this error.
          > Any pointers.....

          This sounds like a Q8
          http://www.magnoliamultimedia.com/flex_examples/Amys_Flex_FAQ.pdf


          • 2. Re: cairngorm | Modules | Service Locator
            ilikeflex Level 1
            Hi Amy

            I will look inot this and get back.
            Thanks for giving some pointer.

            Thanks
            ilikeflex

            • 3. Re: cairngorm | Modules | Service Locator
              Level 7

              "ilikeflex" <webforumsuser@macromedia.com> wrote in message
              news:gg1nvp$hq1$1@forums.macromedia.com...
              > Hi Amy
              >
              > I will look inot this and get back.
              > Thanks for giving some pointer.

              You're welcome :-)