2 Replies Latest reply on May 26, 2006 9:03 AM by thillerson

    Flex Tutorial (Messaging Error)

    Level 7
      I am using the integrated JRUN. I added the Enterprices.swc to the project
      libs.

      The code is identical to the tutorial. I added the <destination> to the flex
      web services directory for Jrun.
      I start the server.

      But I get the following error:

      [MessagingError message=No service is configured to handle messages of type
      'flex.data.messages.DataMessage'.]
      at mx.messaging.config::ServerConfig$/getServiceIdForMessage()
      at mx.data::Metadata$iinit()
      at mx.data::ConcreteDataService$iinit()
      at mx.data::ConcreteDataService$/getService()
      at mx.data::DataService$iinit()
      at DataServices/initApp()
      at DataServices/___Application1_creationComplete()
      at flash.events::EventDispatcher/dispatchEvent()
      at mx.core::UIComponent/set initialized()
      at mx.managers::LayoutManager/::doPhasedInstantiation()
      at mx.core::UIComponent/::callLaterDispatcher2()
      at mx.core::UIComponent/::callLaterDispatcher()

      (BTW, here is the log from the Jrun Server).


      Starting Macromedia JRun 4.0 (Build 106363), default server
      Flex OEM License for JRun enabled
      05/16 14:15:52 warning Unable to open C:\Program Files\Adobe\Flex Data
      Services\
      jrun4/lib/license.properties
      05/16 14:15:52 info JRun Naming Service listening on *:2907
      05/16 14:15:53 info No JDBC data sources have been configured for this
      server (s
      ee jrun-resources.xml)
      05/16 14:15:53 info JRun Web Server listening on *:8700
      05/16 14:15:53 info Deploying web application "Flex Default Web Application"
      fro
      m: file:/C:/Program Files/Adobe/Flex Data
      Services/jrun4/servers/default/default
      -war/
      05/16 14:15:53 user JSPServlet: init
      05/16 14:15:53 info Deploying web application "Flex Data Services" from:
      file:/C
      :/Program Files/Adobe/Flex Data Services/jrun4/servers/default/flex/
      05/16 14:15:53 user JSPServlet: init
      05/16 14:15:53 user FlexMxmlServlet: init
      Loading configuration file C:\Program Files\Adobe\Flex Data
      Services\jrun4\serve
      rs\default\flex\WEB-INF\flex\flex-webtier-config.xml, root element
      flex-webtier-
      config
      Loading configuration file C:\Program Files\Adobe\Flex Data
      Services\jrun4\serve
      rs\default\flex\WEB-INF\flex\flex-config.xml, root element flex-config
      05/16 14:15:54 user FlexMxmlServlet: Starting Adobe Flex Web Tier Compiler
      (beta
      period ends Jul 31, 2006)
      05/16 14:15:54 user FlexMxmlServlet: Adobe Flex Web Tier Compiler Build:
      138139
      05/16 14:15:54 user MessageBrokerServlet: init
      05/16 14:15:54 user FlexSwfServlet: init
      05/16 14:15:54 user FlexInternalServlet: init
      05/16 14:15:54 info Deploying web application "Flex Admin Web Application"
      from:
      file:/C:/Program Files/Adobe/Flex Data
      Services/jrun4/servers/default/flex-admi
      n/
      05/16 14:15:55 user JSPServlet: init
      05/16 14:15:55 user MessageBrokerServlet: init
      05/16 14:15:55 info Deploying web application "Flex Data Services Samples"
      from:
      file:/C:/Program Files/Adobe/Flex Data
      Services/jrun4/servers/default/samples/
      05/16 14:15:55 user JSPServlet: init
      05/16 14:15:55 user FlexMxmlServlet: init
      Loading configuration file C:\Program Files\Adobe\Flex Data
      Services\jrun4\serve
      rs\default\samples\WEB-INF\flex\flex-webtier-config.xml, root element
      flex-webti
      er-config
      Loading configuration file C:\Program Files\Adobe\Flex Data
      Services\jrun4\serve
      rs\default\samples\WEB-INF\flex\flex-config.xml, root element flex-config
      05/16 14:15:56 user FlexMxmlServlet: Starting Adobe Flex Web Tier Compiler
      (beta
      period ends Jul 31, 2006)
      05/16 14:15:56 user FlexMxmlServlet: Adobe Flex Web Tier Compiler Build:
      138139
      05/16 14:15:56 user MessageBrokerServlet: init
      [Flex] [INFO] Starting Adobe Flex Data Services 2.0 Express (beta period
      ends Ju
      l 31, 2006)
      [Flex] [INFO] Adobe Flex Data Services Build: 138139
      [Flex] [INFO] Endpoint my-amf created with security: None
      at URI: http://{server.name}:{server.port}/{context.root}/messagebroker/amf
      [Flex] [INFO] Endpoint my-polling-amf created with security: None
      at URI:
      http://{server.name}:{server.port}/{context.root}/messagebroker/amfpolli
      ng
      [Flex] [INFO] Endpoint my-http created with security: None
      at URI: http://{server.name}:{server.port}/{context.root}/messagebroker/http
      [Flex] [INFO] Endpoint my-secure-amf created with security: None
      at URI: https://{server.name}:9100/{context.root}/messagebroker/amfsecure
      [Flex] [INFO] Endpoint my-rtmp created with security: None
      at URI: rtmp://{server.name}:2037
      [Flex] [INFO] Endpoint my-secure-http created with security: None
      at URI: https://{server.name}:9100/{context.root}/messagebroker/httpsecure
      05/16 14:15:57 user FlexSwfServlet: init
      05/16 14:15:57 user FlexInternalServlet: init
      05/16 14:15:57 info Deploying enterprise application "JRun 4.0 Internal J2EE
      Com
      ponents" from: file:/C:/Program Files/Adobe/Flex Data
      Services/jrun4/lib/jrun-co
      mp.ear
      05/16 14:15:57 info Deploying EJB "JRunSQLInvoker" from: file:/C:/Program
      Files/
      Adobe/Flex Data Services/jrun4/lib/jrun-comp.ear
      Server default ready (startup time: 7 seconds)


        • 1. Re: Flex Tutorial (Messaging Error)
          Level 7
          Small follow up,

          I tried all the samples (dashboard, database, rpc, chat) and they all work
          (with the local JRUN).


          "Yechezkal Gutfreund" <sgutfreund@hotmail.com> wrote in message
          news:e4d55r$cov$1@forums.macromedia.com...
          >I am using the integrated JRUN. I added the Enterprices.swc to the project
          >libs.
          >
          > The code is identical to the tutorial. I added the <destination> to the
          > flex web services directory for Jrun.
          > I start the server.
          >
          > But I get the following error:
          >
          > [MessagingError message=No service is configured to handle messages of
          > type 'flex.data.messages.DataMessage'.]
          > at mx.messaging.config::ServerConfig$/getServiceIdForMessage()
          > at mx.data::Metadata$iinit()
          > at mx.data::ConcreteDataService$iinit()
          > at mx.data::ConcreteDataService$/getService()
          > at mx.data::DataService$iinit()
          > at DataServices/initApp()
          > at DataServices/___Application1_creationComplete()
          > at flash.events::EventDispatcher/dispatchEvent()
          > at mx.core::UIComponent/set initialized()
          > at mx.managers::LayoutManager/::doPhasedInstantiation()
          > at mx.core::UIComponent/::callLaterDispatcher2()
          > at mx.core::UIComponent/::callLaterDispatcher()
          >
          > (BTW, here is the log from the Jrun Server).
          >
          >
          > Starting Macromedia JRun 4.0 (Build 106363), default server
          > Flex OEM License for JRun enabled
          > 05/16 14:15:52 warning Unable to open C:\Program Files\Adobe\Flex Data
          > Services\
          > jrun4/lib/license.properties
          > 05/16 14:15:52 info JRun Naming Service listening on *:2907
          > 05/16 14:15:53 info No JDBC data sources have been configured for this
          > server (s
          > ee jrun-resources.xml)
          > 05/16 14:15:53 info JRun Web Server listening on *:8700
          > 05/16 14:15:53 info Deploying web application "Flex Default Web
          > Application" fro
          > m: file:/C:/Program Files/Adobe/Flex Data
          > Services/jrun4/servers/default/default
          > -war/
          > 05/16 14:15:53 user JSPServlet: init
          > 05/16 14:15:53 info Deploying web application "Flex Data Services" from:
          > file:/C
          > :/Program Files/Adobe/Flex Data Services/jrun4/servers/default/flex/
          > 05/16 14:15:53 user JSPServlet: init
          > 05/16 14:15:53 user FlexMxmlServlet: init
          > Loading configuration file C:\Program Files\Adobe\Flex Data
          > Services\jrun4\serve
          > rs\default\flex\WEB-INF\flex\flex-webtier-config.xml, root element
          > flex-webtier-
          > config
          > Loading configuration file C:\Program Files\Adobe\Flex Data
          > Services\jrun4\serve
          > rs\default\flex\WEB-INF\flex\flex-config.xml, root element flex-config
          > 05/16 14:15:54 user FlexMxmlServlet: Starting Adobe Flex Web Tier Compiler
          > (beta
          > period ends Jul 31, 2006)
          > 05/16 14:15:54 user FlexMxmlServlet: Adobe Flex Web Tier Compiler Build:
          > 138139
          > 05/16 14:15:54 user MessageBrokerServlet: init
          > 05/16 14:15:54 user FlexSwfServlet: init
          > 05/16 14:15:54 user FlexInternalServlet: init
          > 05/16 14:15:54 info Deploying web application "Flex Admin Web Application"
          > from:
          > file:/C:/Program Files/Adobe/Flex Data
          > Services/jrun4/servers/default/flex-admi
          > n/
          > 05/16 14:15:55 user JSPServlet: init
          > 05/16 14:15:55 user MessageBrokerServlet: init
          > 05/16 14:15:55 info Deploying web application "Flex Data Services Samples"
          > from:
          > file:/C:/Program Files/Adobe/Flex Data
          > Services/jrun4/servers/default/samples/
          > 05/16 14:15:55 user JSPServlet: init
          > 05/16 14:15:55 user FlexMxmlServlet: init
          > Loading configuration file C:\Program Files\Adobe\Flex Data
          > Services\jrun4\serve
          > rs\default\samples\WEB-INF\flex\flex-webtier-config.xml, root element
          > flex-webti
          > er-config
          > Loading configuration file C:\Program Files\Adobe\Flex Data
          > Services\jrun4\serve
          > rs\default\samples\WEB-INF\flex\flex-config.xml, root element flex-config
          > 05/16 14:15:56 user FlexMxmlServlet: Starting Adobe Flex Web Tier Compiler
          > (beta
          > period ends Jul 31, 2006)
          > 05/16 14:15:56 user FlexMxmlServlet: Adobe Flex Web Tier Compiler Build:
          > 138139
          > 05/16 14:15:56 user MessageBrokerServlet: init
          > [Flex] [INFO] Starting Adobe Flex Data Services 2.0 Express (beta period
          > ends Ju
          > l 31, 2006)
          > [Flex] [INFO] Adobe Flex Data Services Build: 138139
          > [Flex] [INFO] Endpoint my-amf created with security: None
          > at URI:
          > http://{server.name}:{server.port}/{context.root}/messagebroker/amf
          > [Flex] [INFO] Endpoint my-polling-amf created with security: None
          > at URI:
          > http://{server.name}:{server.port}/{context.root}/messagebroker/amfpolli
          > ng
          > [Flex] [INFO] Endpoint my-http created with security: None
          > at URI:
          > http://{server.name}:{server.port}/{context.root}/messagebroker/http
          > [Flex] [INFO] Endpoint my-secure-amf created with security: None
          > at URI: https://{server.name}:9100/{context.root}/messagebroker/amfsecure
          > [Flex] [INFO] Endpoint my-rtmp created with security: None
          > at URI: rtmp://{server.name}:2037
          > [Flex] [INFO] Endpoint my-secure-http created with security: None
          > at URI: https://{server.name}:9100/{context.root}/messagebroker/httpsecure
          > 05/16 14:15:57 user FlexSwfServlet: init
          > 05/16 14:15:57 user FlexInternalServlet: init
          > 05/16 14:15:57 info Deploying enterprise application "JRun 4.0 Internal
          > J2EE Com
          > ponents" from: file:/C:/Program Files/Adobe/Flex Data
          > Services/jrun4/lib/jrun-co
          > mp.ear
          > 05/16 14:15:57 info Deploying EJB "JRunSQLInvoker" from: file:/C:/Program
          > Files/
          > Adobe/Flex Data Services/jrun4/lib/jrun-comp.ear
          > Server default ready (startup time: 7 seconds)
          >
          >


          • 2. Re: Flex Tutorial (Messaging Error)
            thillerson
            I'm getting this same error. I'm using jBoss as the AS. I copied the destination for the contacts part of the samples and used the same java classes. The ear deploys fine and I can see the data-service "contact" using the Flex Admin. But when I try to use the contact mxml example I get (from the flash player)
            MessagingError message=No service is configured to handle messages of type 'flex.data.messages.DataMessage'.

            The samples.war runs fine in jBoss.