Implantacao de aplicacao Flex

Salve galera.
Estou tentando publicar a minha aplicacao em flex. Estou tentando publicar no Tomcat 6.
Quando chamo a minha aplicao swf esta dando o seguinte erro:

faultCode:Client.Error.MessageSend faultString:'Send failed' faultDetail:'Channel.Security.Error error Error #2048: Security sandbox violation: http://221.172.11.284:8080/ces_1_0/telemetria.swf cannot load data from http://221.172.11.284:8080/ces_1_0/messagebroker/amf. url: 'http://221.172.11.284:8080/ces_1_0/messagebroker/amf''

Como devo contornar esse erro? Por que este erro esta ocorrendo?

Att

vcsmetallica

vcsmetallica,
Este endereço http://221.172.11.284:8080 é o endereço do servidor onde vc hospedou? Se sim, verifique se a porta 8080 está disponível ou deixe sem, pode ser q seja a 80 tb.

[]s

Esse numero de IP é ficticio, so para exemplificar o meu problema, pois ainda nao tenho um DNS para a minha aplicação, mas estou usando um ip fixo para acessar a minha aplicação. É um windows 2003 e nele esta instalado o IIS tambem, so que o meu IIS esta parado. Ja desbloquei a porta 8080 no meu firewall. No meu services-config.xml tem mais alguma propriedade que eu devo mexer?

Att

vcsmetallica,
O q normalmente faço no services-config.xml é mudar o endpoint default:

para

Com isso, não me preocupo com o servidor.

[]s

Entao,

Fiz o que voce sugeriu. Nao deu certo, deu o seguinte erro: Invalid channel endpoint URI.

Segue abaixo o meu arquivo de configuração como voce sugeriu.

<?xml version="1.0" encoding="UTF-8"?>
<services-config>

    <services>
        <service-include file-path="remoting-config.xml" />
        <service-include file-path="proxy-config.xml" />
        <service-include file-path="messaging-config.xml" />        
    </services>

    <security>
        <login-command class="flex.messaging.security.TomcatLoginCommand" server="Tomcat"/>
        <!-- Uncomment the correct app server
        <login-command class="flex.messaging.security.TomcatLoginCommand" server="JBoss">
		<login-command class="flex.messaging.security.JRunLoginCommand" server="JRun"/>        
        <login-command class="flex.messaging.security.WeblogicLoginCommand" server="Weblogic"/>
        <login-command class="flex.messaging.security.WebSphereLoginCommand" server="WebSphere"/>
        -->

        <!-- 
        <security-constraint id="basic-read-access">
            <auth-method>Basic</auth-method>
            <roles>
                <role>guests</role>
                <role>accountants</role>
                <role>employees</role>
                <role>managers</role>
            </roles>
        </security-constraint>
         -->
    </security>

    <channels>

        <channel-definition id="my-amf" class="mx.messaging.channels.AMFChannel">
            <endpoint url="ces_1_0/messagebroker/amf" class="flex.messaging.endpoints.AMFEndpoint"/>
        </channel-definition>

        <channel-definition id="my-secure-amf" class="mx.messaging.channels.SecureAMFChannel">
            <endpoint url="ces_1_0/messagebroker/amfsecure" class="flex.messaging.endpoints.SecureAMFEndpoint"/>
            <properties>
                <add-no-cache-headers>false</add-no-cache-headers>
            </properties>
        </channel-definition>

        <channel-definition id="my-polling-amf" class="mx.messaging.channels.AMFChannel">
            <endpoint url="ces_1_0/messagebroker/amfpolling" class="flex.messaging.endpoints.AMFEndpoint"/>
            <properties>
                <polling-enabled>true</polling-enabled>
                <polling-interval-seconds>4</polling-interval-seconds>
            </properties>
        </channel-definition>

        <!--
        <channel-definition id="my-http" class="mx.messaging.channels.HTTPChannel">
            <endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/http" class="flex.messaging.endpoints.HTTPEndpoint"/>
        </channel-definition>

        <channel-definition id="my-secure-http" class="mx.messaging.channels.SecureHTTPChannel">
            <endpoint url="https://{server.name}:{server.port}/{context.root}/messagebroker/httpsecure" class="flex.messaging.endpoints.SecureHTTPEndpoint"/>
            <properties>
                <add-no-cache-headers>false</add-no-cache-headers>
            </properties>
        </channel-definition>
        -->
    </channels>

    <logging>
        <target class="flex.messaging.log.ConsoleTarget" level="Error">
            <properties>
                <prefix>[BlazeDS] </prefix>
                <includeDate>false</includeDate>
                <includeTime>false</includeTime>
                <includeLevel>false</includeLevel>
                <includeCategory>false</includeCategory>
            </properties>
            <filters>
                <pattern>Endpoint.*</pattern>
                <pattern>Service.*</pattern>
                <pattern>Configuration</pattern>
            </filters>
        </target>
    </logging>

    <system>
        <redeploy>
            <enabled>false</enabled>
            <!-- 
            <watch-interval>20</watch-interval>
            <watch-file>{context.root}/WEB-INF/flex/services-config.xml</watch-file>
            <watch-file>{context.root}/WEB-INF/flex/proxy-config.xml</watch-file>
            <watch-file>{context.root}/WEB-INF/flex/remoting-config.xml</watch-file>
            <watch-file>{context.root}/WEB-INF/flex/messaging-config.xml</watch-file>
            <watch-file>{context.root}/WEB-INF/flex/data-management-config.xml</watch-file>
            <touch-file>{context.root}/WEB-INF/web.xml</touch-file>
             -->
        </redeploy>
    </system>

</services-config>

cole isso no browser: http://221.172.11.284:8080/ces_1_0/messagebroker/amf
se não aparecer nada essa parte tá ok senão tens que ver teu service-config, abaixo segue um exemplo que funciona:

&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;services-config&gt;

    &lt;services&gt;
        &lt;service-include file-path="remoting-config.xml" /&gt;
        &lt;service-include file-path="proxy-config.xml" /&gt;
        &lt;service-include file-path="messaging-config.xml" /&gt;        
    &lt;/services&gt;

    &lt;security&gt;
        &lt;login-command class="flex.messaging.security.TomcatLoginCommand" server="Tomcat"/&gt;
        &lt;!-- Uncomment the correct app server
        &lt;login-command class="flex.messaging.security.TomcatLoginCommand" server="JBoss"&gt;
		&lt;login-command class="flex.messaging.security.JRunLoginCommand" server="JRun"/&gt;        
        &lt;login-command class="flex.messaging.security.WeblogicLoginCommand" server="Weblogic"/&gt;
        &lt;login-command class="flex.messaging.security.WebSphereLoginCommand" server="WebSphere"/&gt;
        --&gt;

        &lt;!-- 
        &lt;security-constraint id="basic-read-access"&gt;
            &lt;auth-method&gt;Basic&lt;/auth-method&gt;
            &lt;roles&gt;
                &lt;role&gt;guests&lt;/role&gt;
                &lt;role&gt;accountants&lt;/role&gt;
                &lt;role&gt;employees&lt;/role&gt;
                &lt;role&gt;managers&lt;/role&gt;
            &lt;/roles&gt;
        &lt;/security-constraint&gt;
         --&gt;
    &lt;/security&gt;

    &lt;channels&gt;

        &lt;channel-definition id="my-amf" class="mx.messaging.channels.AMFChannel"&gt;
            &lt;endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/amf" class="flex.messaging.endpoints.AMFEndpoint"/&gt;
        &lt;/channel-definition&gt;

        &lt;channel-definition id="my-secure-amf" class="mx.messaging.channels.SecureAMFChannel"&gt;
            &lt;endpoint url="https://{server.name}:{server.port}/{context.root}/messagebroker/amfsecure" class="flex.messaging.endpoints.SecureAMFEndpoint"/&gt;
            &lt;properties&gt;
                &lt;add-no-cache-headers&gt;false&lt;/add-no-cache-headers&gt;
            &lt;/properties&gt;
        &lt;/channel-definition&gt;

        &lt;channel-definition id="my-polling-amf" class="mx.messaging.channels.AMFChannel"&gt;
            &lt;endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/amfpolling" class="flex.messaging.endpoints.AMFEndpoint"/&gt;
            &lt;properties&gt;
                &lt;polling-enabled&gt;true&lt;/polling-enabled&gt;
                &lt;polling-interval-seconds&gt;4&lt;/polling-interval-seconds&gt;
            &lt;/properties&gt;
        &lt;/channel-definition&gt;

        &lt;!--
        &lt;channel-definition id="my-http" class="mx.messaging.channels.HTTPChannel"&gt;
            &lt;endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/http" class="flex.messaging.endpoints.HTTPEndpoint"/&gt;
        &lt;/channel-definition&gt;

        &lt;channel-definition id="my-secure-http" class="mx.messaging.channels.SecureHTTPChannel"&gt;
            &lt;endpoint url="https://{server.name}:{server.port}/{context.root}/messagebroker/httpsecure" class="flex.messaging.endpoints.SecureHTTPEndpoint"/&gt;
            &lt;properties&gt;
                &lt;add-no-cache-headers&gt;false&lt;/add-no-cache-headers&gt;
            &lt;/properties&gt;
        &lt;/channel-definition&gt;
        --&gt;
    &lt;/channels&gt;

    &lt;!-- &lt;logging&gt;
        &lt;target class="flex.messaging.log.ConsoleTarget" level="Debug"&gt;
            &lt;properties&gt;
                &lt;prefix&gt;[BlazeDS]&lt;/prefix&gt;
                &lt;includeDate&gt;false&lt;/includeDate&gt;
                &lt;includeTime&gt;false&lt;/includeTime&gt;
                &lt;includeLevel&gt;false&lt;/includeLevel&gt;
                &lt;includeCategory&gt;false&lt;/includeCategory&gt;
            &lt;/properties&gt;
            &lt;filters&gt;
                &lt;pattern&gt;Endpoint.*&lt;/pattern&gt;
                &lt;pattern&gt;Service.*&lt;/pattern&gt;
                &lt;pattern&gt;Configuration&lt;/pattern&gt;
            &lt;/filters&gt;
        &lt;/target&gt;
    &lt;/logging&gt; --&gt;

    &lt;system&gt;
        &lt;redeploy&gt;
            &lt;enabled&gt;false&lt;/enabled&gt;
            &lt;!-- 
            &lt;watch-interval&gt;20&lt;/watch-interval&gt;
            &lt;watch-file&gt;{context.root}/WEB-INF/flex/services-config.xml&lt;/watch-file&gt;
            &lt;watch-file&gt;{context.root}/WEB-INF/flex/proxy-config.xml&lt;/watch-file&gt;
            &lt;watch-file&gt;{context.root}/WEB-INF/flex/remoting-config.xml&lt;/watch-file&gt;
            &lt;watch-file&gt;{context.root}/WEB-INF/flex/messaging-config.xml&lt;/watch-file&gt;
            &lt;watch-file&gt;{context.root}/WEB-INF/flex/data-management-config.xml&lt;/watch-file&gt;
            &lt;touch-file&gt;{context.root}/WEB-INF/web.xml&lt;/touch-file&gt;
             --&gt;
        &lt;/redeploy&gt;
    &lt;/system&gt;

&lt;/services-config&gt;

Blza. Fiz a chamada na URL e apareceu uma tela em branco. Isso significa que o canal esta blza. So que ele esta chamando o treco em localhost, no meu codigo eu não usop hora nenhuma URL fixa.

faultCode:Client.Error.MessageSend faultString:'Send failed' faultDetail:'Channel.Security.Error error Error #2048 url: 'http://localhost:8080/ces_1_0/messagebroker/amf''