5 Replies Latest reply on Jun 23, 2009 10:06 AM by jaspe123

    Channel.Connect.Failed ... http://localhost:8080/WebContent/messagebroker/amf

    jaspe123

      We have created a simple Flex project with Java service on the back-end.  When the Flex client tries to connect to the service, we're getting an error:

       

      Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed: url: 'http://localhost:8080/WebContent/messagebroker/amf'

       

      It seems, it should look like: http://localhost:8080/ProjectName/messagebroker/amf, since we specified the Server Context Root as ProjectName when we created the project.

       

      The .flexProperties:

       

      <?xml version="1.0" encoding="UTF-8" standalone="no"?>
      <flexProperties flexServerFeatures="6" flexServerType="8"

         flexWarLocation="C:/usr/lcds/lcds.war"

        serverContextRoot="/WebContent"

        serverRoot="C:/workspaceFB4/flex_main/ReproduceWebContentBug/WebContent"

        serverRootURL="http://localhost:8080/ReproduceWebContentBug"

        toolCompile="true" useServerFlexSDK="false" version="2"/>

       

      We're using:

      * Flash Builder 4 Beta

      * Eclipse 3.4.2

      * JDK 1.6

      * LCDS

      * GlassFish v3