2 Replies Latest reply on May 14, 2009 6:47 AM by tigerhu


    TucsonJava Level 1
      I have an AMF channel configured in a standard way...
      <endpoint uri=" http://{server.name}:{server.port}/{context.root}/messagebroker/amf" class="flex.messaging.endpoints.AMFEndpoint"/>

      In the flex-config.xml file I have the conext root defined as...

      When starting the server (Tomcat) at least the placeholder for the context.root seems to be there...
      [Flex] [INFO] Starting Adobe Flex Data Services 2.0 Express (beta period ends Jul 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 ms-rtmp created with security: None

      However, when attempting to connect to the service it is apparent that the context.root info has been lost...
      'my-amf' channel endpoint set to http://localhost:8080//messagebroker/amf
      'my-amf' channel settings are:
      <channel id="my-amf" type="mx.messaging.channels.AMFChannel">
      <endpoint uri=" http://{server.name}:{server.port}//messagebroker/amf"/>
      'my-amf' pinging endpoint.
      'my-amf' channel got status. (Object)#0
      code = "NetConnection.Call.Failed"
      description = "HTTP: Failed"
      details = " http://localhost:8080//messagebroker/amf"
      level = "error"

      Any suggestions on what might be wrong?
        • 1. Re: context.root
          TucsonJava Level 1
          OK, I fixed that by adding the -context-root /metalsmith to the compiler arguments in the Flex Compiler properties within flexBuilder. It still seems like it should have picked it up from the flex-config file though.
          • 2. Re: context.root

            But the compiler will add the context root information into the swf file, if your project changed context root, it will failed, have to compile again. For one project it is ok. What if you have multiple project, and you want to build the flex application as a component, compile for every project????


            And idea?