Java + Flash Builder 4 + BlazeDS - Integração [resolvido]

Pessoal

Estou fazendo uma simples integração entre Java + Flash Builder 4 + BlazeDS, basicamente o flex vai exibir uma string vinda de uma classe java.

Eis a versão dos meus SWs:

[color=darkblue]eclipse-jee-ganymede-SR2-win32.zip
apache-tomcat-6.0.24.exe
blazeds-bin-3.2.0.3978.zip
flashbuilder4_b2_plugin_win_100509.exe
jdk-6u17-windows-i586.exe[/color]

Segue agora o passo a passo da montagem do meu sistema:

Inicialmente, eu crio um novo projeto Flex
-indico que é uma aplicação J2EE
-indico que usarei o BlazeDS
-seto nome da pasta que vai conter as classes Java

Indico que usarei o Tomcat, deixo o Output folder com o mesmo nome do Context folder -> [color=blue]WebContent[/color]

-Apago a pasta flex_libs e seto o Output Folder URL para: http://localhost:8080/p01/

meu projeto ficou assim:

Agora eu faço meu p01.mxml :

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
			   xmlns:s="library://ns.adobe.com/flex/spark" 
			   xmlns:mx="library://ns.adobe.com/flex/halo" minWidth="1024" minHeight="768">
	<fx:Declarations>
		<s:RemoteObject id="locarSer" destination="servico"/>
	</fx:Declarations>
	
	<mx:VBox>
		
	<s:Label text="teste"/>
	
	<s:TextInput id="campo" change="locarSer.ola(campo.text);"/>
	
	<s:Label id="label2" text="{locarSer.ola.lastResult}"/>
		
	</mx:VBox>	
	
</s:Application>

minha classe Java OlaMundo.java

package meuPackage;

public class OlaMundo {
	public String ola(String nome){
		return "vc digitou: "+nome;
	} 
}

No Web.xml faço a seguinte alteração:
eu alterei:

	<welcome-file-list>
		<welcome-file>index.html</welcome-file>
		<welcome-file>index.htm</welcome-file>
		<welcome-file>index.jsp</welcome-file>
		<welcome-file>default.html</welcome-file>
		<welcome-file>default.htm</welcome-file>
		<welcome-file>default.jsp</welcome-file>
	</welcome-file-list>

para:

	<welcome-file-list>
		<welcome-file>p01.html</welcome-file>
	</welcome-file-list>

no remoting-config.xml eu inclui a tag <destination> setando minha classe java:

<?xml version="1.0" encoding="UTF-8"?>
<service id="remoting-service" 
    class="flex.messaging.services.RemotingService">

    <adapters>
        <adapter-definition id="java-object" class="flex.messaging.services.remoting.adapters.JavaAdapter" default="true"/>
    </adapters>

    <default-channels>
        <channel ref="my-amf"/>
    </default-channels>
<destination id="servico">
	<properties>
		<source>OlaMundo</source>
	</properties>
</destination>
</service>

Quando eu executo meu projeto (Run on Server) A minha tela aparece normal, mas quando eu insiro um texto no campo , aparece esse erro:

erro 1:

[RPC Fault faultString="[MessagingError message='O destino 'servico' não existe ou não tem canais definidos (e o aplicativo não define nenhum canal padrão).']" faultCode="InvokeFailed" faultDetail="Não foi possível estabelecer conexão com 'servico'"]
	at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::invoke()[E:\dev\gumbo_beta2\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:388]
	at mx.rpc.remoting::Operation/http://www.adobe.com/2006/flex/mx/internal::invoke()[E:\dev\gumbo_beta2\frameworks\projects\rpc\src\mx\rpc\remoting\Operation.as:287]
	at mx.rpc.remoting::Operation/send()[E:\dev\gumbo_beta2\frameworks\projects\rpc\src\mx\rpc\remoting\Operation.as:254]
	at Function/http://adobe.com/AS3/2006/builtin::apply()
	at mx.rpc::AbstractService/http://www.adobe.com/2006/actionscript/flash/proxy::callProperty()[E:\dev\gumbo_beta2\frameworks\projects\rpc\src\mx\rpc\AbstractService.as:408]
	at p01/__campo_change()[C:\eclipse-jee-ganymede-SR2-win32\WORKSPACE\p01\flex_src\p01.mxml:13]
	at flash.events::EventDispatcher/dispatchEventFunction()
	at flash.events::EventDispatcher/dispatchEvent()
	at mx.core::UIComponent/dispatchEvent()[E:\dev\gumbo_beta2\frameworks\projects\framework\src\mx\core\UIComponent.as:11749]
	at spark.components.supportClasses::SkinnableTextBase/textDisplay_changeHandler()[E:\dev\gumbo_beta2\frameworks\projects\spark\src\spark\components\supportClasses\SkinnableTextBase.as:1364]
	at flash.events::EventDispatcher/dispatchEventFunction()
	at flash.events::EventDispatcher/dispatchEvent()
	at mx.core::UIComponent/dispatchEvent()[E:\dev\gumbo_beta2\frameworks\projects\framework\src\mx\core\UIComponent.as:11749]
	at spark.components::RichEditableText/textContainerManager_flowOperationEndHandler()[E:\dev\gumbo_beta2\frameworks\projects\spark\src\spark\components\RichEditableText.as:4194]
	at flash.events::EventDispatcher/dispatchEventFunction()
	at flash.events::EventDispatcher/dispatchEvent()
	at flashx.textLayout.container::TextContainerManager/dispatchEvent()[E:\dev\gumbo_beta2\frameworks\projects\textLayout\textLayout_edit\src\flashx\textLayout\container\TextContainerManager.as:1385]
	at flash.events::EventDispatcher/dispatchEventFunction()
	at flash.events::EventDispatcher/dispatchEvent()
	at flashx.textLayout.elements::TextFlow/dispatchEvent()[E:\dev\gumbo_beta2\frameworks\projects\textLayout\textLayout_core\src\flashx\textLayout\elements\TextFlow.as:745]
	at flashx.textLayout.edit::EditManager/doInternal()[E:\dev\gumbo_beta2\frameworks\projects\textLayout\textLayout_edit\src\flashx\textLayout\edit\EditManager.as:444]
	at flashx.textLayout.edit::EditManager/doOperation()[E:\dev\gumbo_beta2\frameworks\projects\textLayout\textLayout_edit\src\flashx\textLayout\edit\EditManager.as:325]
	at flashx.textLayout.edit::EditManager/flushPendingOperations()[E:\dev\gumbo_beta2\frameworks\projects\textLayout\textLayout_edit\src\flashx\textLayout\edit\EditManager.as:484]
	at flashx.textLayout.edit::SelectionManager/enterFrameHandler()[E:\dev\gumbo_beta2\frameworks\projects\textLayout\textLayout_edit\src\flashx\textLayout\edit\SelectionManager.as:1717]

depois disso, eu tentei fazer 'qualquer alteração e rodar de novo, mas ai aparece esse erro:

[RPC Fault faultString="Falha no envio" faultCode="Client.Error.MessageSend" faultDetail="Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Status 404: url: 'http://localhost:8080/WebContent/messagebroker/amf'"]
	at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()[E:\dev\gumbo_beta2\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:345]
	at mx.rpc::Responder/fault()[E:\dev\gumbo_beta2\frameworks\projects\rpc\src\mx\rpc\Responder.as:68]
	at mx.rpc::AsyncRequest/fault()[E:\dev\gumbo_beta2\frameworks\projects\rpc\src\mx\rpc\AsyncRequest.as:113]
	at mx.messaging::ChannelSet/faultPendingSends()[E:\dev\gumbo_beta2\frameworks\projects\rpc\src\mx\messaging\ChannelSet.as:1614]
	at mx.messaging::ChannelSet/channelFaultHandler()[E:\dev\gumbo_beta2\frameworks\projects\rpc\src\mx\messaging\ChannelSet.as:1206]
	at flash.events::EventDispatcher/dispatchEventFunction()
	at flash.events::EventDispatcher/dispatchEvent()
	at mx.messaging::Channel/connectFailed()[E:\dev\gumbo_beta2\frameworks\projects\rpc\src\mx\messaging\Channel.as:1128]
	at mx.messaging.channels::PollingChannel/connectFailed()[E:\dev\gumbo_beta2\frameworks\projects\rpc\src\mx\messaging\channels\PollingChannel.as:406]
	at mx.messaging.channels::AMFChannel/statusHandler()[E:\dev\gumbo_beta2\frameworks\projects\rpc\src\mx\messaging\channels\AMFChannel.as:444]

Aparentemente, o meu Web.xml não está conseguindo linkar minha classe java com meu <s:RemoteObject id=“locarSer” destination=“servico”/> e o 2º erro RPC Fault faultString=“Falha no envio” … parece que está faltando alguma coisa ainda para fazer a classe se comunicar com o flex:

Alguem pode me dar uma luz do que pode estar faltando??

obrigado :smiley:

Pessoal, meu arquivo web.xml está assim:

<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
	<display-name>p01</display-name>

	<context-param>
		<param-name>flex.class.path</param-name>
		<param-value>/WEB-INF/flex/hotfixes,/WEB-INF/flex/jars</param-value>
	</context-param>

	<!-- Http Flex Session attribute and binding listener support -->
	<listener>
		<listener-class>flex.messaging.HttpFlexSession</listener-class>
	</listener>

	<!-- MessageBroker Servlet -->
	<servlet>
		<servlet-name>MessageBrokerServlet</servlet-name>
		<servlet-class>flex.messaging.MessageBrokerServlet</servlet-class>
		<init-param>
			<param-name>services.configuration.file</param-name>
			<param-value>/WEB-INF/flex/services-config.xml</param-value>
		</init-param>
		<init-param>
			<param-name>flex.write.path</param-name>
			<param-value>/WEB-INF/flex</param-value>
		</init-param>
		<load-on-startup>1</load-on-startup>
	</servlet>

	<servlet-mapping>
		<servlet-name>MessageBrokerServlet</servlet-name>
		<url-pattern>/messagebroker/*</url-pattern>
	</servlet-mapping>
	<welcome-file-list>
		<welcome-file>p01.html</welcome-file>
	</welcome-file-list>

	<!-- for WebSphere deployment, please uncomment -->
	<!--
		<resource-ref>
		<description>Flex Messaging WorkManager</description>
		<res-ref-name>wm/MessagingWorkManager</res-ref-name>
		<res-type>com.ibm.websphere.asynchbeans.WorkManager</res-type>
		<res-auth>Container</res-auth>
		<res-sharing-scope>Shareable</res-sharing-scope>
	</resource-ref>
	-->
</web-app>

eu apenas alterei o <welcome-file-list>… o resto deixei como estava, será que o web.xml ainda está incompleto??

Sua classe OlaMundo está no package meuPackage e na configuração vc deixou sem:

 <destination id="servico">  
     <properties>  
         <source>meuPackage.OlaMundo</source>  
     </properties>  
 </destination>  

[]s

[quote=fabiophx]Sua classe OlaMundo está no package meuPackage e na configuração vc deixou sem:

 <destination id="servico">  
     <properties>  
         <source>meuPackage.OlaMundo</source>  
     </properties>  
 </destination>  

[]s[/quote]

Vlws Fabio, mas mesmo fazendo essa correção, ainda dá esse erro:

[RPC Fault faultString="Falha no envio" faultCode="Client.Error.MessageSend" faultDetail="Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Status 404: url: 'http://localhost:8080/WebContent/messagebroker/amf'"]
	at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()[E:\dev\gumbo_beta2\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:345]
	at mx.rpc::Responder/fault()[E:\dev\gumbo_beta2\frameworks\projects\rpc\src\mx\rpc\Responder.as:68]
	at mx.rpc::AsyncRequest/fault()[E:\dev\gumbo_beta2\frameworks\projects\rpc\src\mx\rpc\AsyncRequest.as:113]
	at mx.messaging::ChannelSet/faultPendingSends()[E:\dev\gumbo_beta2\frameworks\projects\rpc\src\mx\messaging\ChannelSet.as:1614]
	at mx.messaging::ChannelSet/channelFaultHandler()[E:\dev\gumbo_beta2\frameworks\projects\rpc\src\mx\messaging\ChannelSet.as:1206]
	at flash.events::EventDispatcher/dispatchEventFunction()
	at flash.events::EventDispatcher/dispatchEvent()
	at mx.messaging::Channel/connectFailed()[E:\dev\gumbo_beta2\frameworks\projects\rpc\src\mx\messaging\Channel.as:1128]
	at mx.messaging.channels::PollingChannel/connectFailed()[E:\dev\gumbo_beta2\frameworks\projects\rpc\src\mx\messaging\channels\PollingChannel.as:406]
	at mx.messaging.channels::AMFChannel/statusHandler()[E:\dev\gumbo_beta2\frameworks\projects\rpc\src\mx\messaging\channels\AMFChannel.as:444]

o que mais pode estar errado?

eu Upei meu projeto p01.fxp no rapidshare, se alguem puder importar ele no FB4 pra bater o olho (ta leve) eu agradeço.
(estou travado nesse erro :? )

meu projeto:
http://rapidshare.com/files/357450810/p01.fxp.html

No services-config.xml

    <channels>
        <channel-definition id="my-amf" class="mx.messaging.channels.AMFChannel">
            <endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/amf" class="flex.messaging.endpoints.AMFEndpoint"/>
            <properties>
                <polling-enabled>false</polling-enabled>
            </properties>
        </channel-definition>
    </channels>

[quote=fabiophx]No services-config.xml

<channels> <channel-definition id="my-amf" class="mx.messaging.channels.AMFChannel"> <endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/amf" class="flex.messaging.endpoints.AMFEndpoint"/> <properties> <polling-enabled>false</polling-enabled> </properties> </channel-definition> </channels> [/quote]

Fabião, perdoe a ignorancia…

eu devo substituir :

"http://{server.name}:{server.port}/{context.root}/messagebroker/amf" 

por

"http://localhost:8080/p01/messagebroker/amf" 

eu tentei substituir e tambem nao substituir e ainda sim dá o maldito erro.

o arquivo services-config.xml ficou assim:

<?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"/>

    </security>

    <channels>
        <channel-definition id="my-amf" class="mx.messaging.channels.AMFChannel">
            <endpoint url="http://localhost:8080/p01/messagebroker/amf" class="flex.messaging.endpoints.AMFEndpoint"/>
            <properties>
                <polling-enabled>false</polling-enabled>
            </properties>
        </channel-definition>
        

        <channel-definition id="my-polling-amf" class="mx.messaging.channels.AMFChannel">
            <endpoint url="http://localhost:8080/p01/messagebroker/amfpolling" class="flex.messaging.endpoints.AMFEndpoint"/>
            <properties>
                <polling-enabled>true</polling-enabled>
                <polling-interval-seconds>4</polling-interval-seconds>
            </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>

        </redeploy>
    </system>

</services-config>

e o erro:

[RPC Fault faultString="Falha no envio" faultCode="Client.Error.MessageSend" faultDetail="Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Status 404: url: 'http://localhost:8080/WebContent/messagebroker/amf'"]
	at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()[E:\dev\gumbo_beta2\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:345]
	at mx.rpc::Responder/fault()[E:\dev\gumbo_beta2\frameworks\projects\rpc\src\mx\rpc\Responder.as:68]
	at mx.rpc::AsyncRequest/fault()[E:\dev\gumbo_beta2\frameworks\projects\rpc\src\mx\rpc\AsyncRequest.as:113]
	at mx.messaging::ChannelSet/faultPendingSends()[E:\dev\gumbo_beta2\frameworks\projects\rpc\src\mx\messaging\ChannelSet.as:1614]
	at mx.messaging::ChannelSet/channelFaultHandler()[E:\dev\gumbo_beta2\frameworks\projects\rpc\src\mx\messaging\ChannelSet.as:1206]
	at flash.events::EventDispatcher/dispatchEventFunction()
	at flash.events::EventDispatcher/dispatchEvent()
	at mx.messaging::Channel/connectFailed()[E:\dev\gumbo_beta2\frameworks\projects\rpc\src\mx\messaging\Channel.as:1128]
	at mx.messaging.channels::PollingChannel/connectFailed()[E:\dev\gumbo_beta2\frameworks\projects\rpc\src\mx\messaging\channels\PollingChannel.as:406]
	at mx.messaging.channels::AMFChannel/statusHandler()[E:\dev\gumbo_beta2\frameworks\projects\rpc\src\mx\messaging\channels\AMFChannel.as:444]

percebi que na 2º linha: Status 404: url: ‘http://localhost:8080/WebContent/messagebroker/amf’"

ele poe WebContent no lugar do nome do meu projeto p01

entao tentei fazer:

<endpoint url="http://localhost:8080/WebContent/messagebroker/amf" class="flex.messaging.endpoints.AMFEndpoint"/>

mas não deu certo tmbm!!

…mew q zica!!!

Deixa o services-config.xml como te passei.
E em Project > Properties dê uma olhada em Context Root de Flex Server e Web Project Settings. Os dois devem estar iguais, não sei pq no Flex Server normalmente fica /WebContent dando este erro.

[]s

[quote=fabiophx]Deixa o services-config.xml como te passei.
E em Project > Properties dê uma olhada em Context Root de Flex Server e Web Project Settings. Os dois devem estar iguais, não sei pq no Flex Server normalmente fica /WebContent dando este erro.

[]s[/quote]

entaum…deixei so services-config assim:

<?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"/>

    </security>

    <channels>
        <channel-definition id="my-amf" class="mx.messaging.channels.AMFChannel">
            <endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/amf" class="flex.messaging.endpoints.AMFEndpoint"/>
            <properties>
                <polling-enabled>false</polling-enabled>
            </properties>
        </channel-definition>
        

        <channel-definition id="my-polling-amf" class="mx.messaging.channels.AMFChannel">
            <endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/amfpolling" class="flex.messaging.endpoints.AMFEndpoint"/>
            <properties>
                <polling-enabled>true</polling-enabled>
                <polling-interval-seconds>4</polling-interval-seconds>
            </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>

        </redeploy>
    </system>

</services-config>

E o Context Root de Flex Server e Web Project Settings parecem estar ok tmbm…

…e nao deu certo ainda!!! :frowning:

mais alguma sugestao galera???

alguem pode me passar um .zip de um hello word que esteja funcionando? (FX + JAVA)

Cara se não me engano você não configurou no seu compiler aonde está o arquivo eremoting.xml … não lembro agora qual o argumento que tem q por lá mas isso é primordial pois é assim que o flex compila e sabe qual o nome dos services que irá se cominicar.

hummm,… como eu faço isso??

vlwss

Em Project > Properties > Flex Compiler > Additional compiler argumentes vc informa o compilador onde está o arquivo services-config.xml, exemplo:
-services “…/WebContent/WEB-INF/flex/services-config.xml” -locale en_US

[]s

[quote=fabiophx]Em Project > Properties > Flex Compiler > Additional compiler argumentes vc informa o compilador onde está o arquivo services-config.xml, exemplo:
-services “…/WebContent/WEB-INF/flex/services-config.xml” -locale en_US

[]s
[/quote]

intaum fabio, pelo que vi aki… ele faz isso sozinho…:

…estou 'voltando nesse assunto…dessa vez eu acho o problema :stuck_out_tongue:

vlwssss

o problema continua sendo RPC Fault faultString="[MessagingError message='O destino ‘servico’ não existe ou não tem canais definidos[u]

[RPC Fault faultString="[MessagingError message='O destino 'servico' não existe ou não tem canais definidos (e o aplicativo não define nenhum canal padrão).']" faultCode="InvokeFailed" faultDetail="Não foi possível estabelecer conexão com 'servico'"]
	at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::invoke()[E:\dev.0.0\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:388]
	at mx.rpc.remoting::Operation/http://www.adobe.com/2006/flex/mx/internal::invoke()[E:\dev.0.0\frameworks\projects\rpc\src\mx\rpc\remoting\Operation.as:287]
	at mx.rpc.remoting::Operation/send()[E:\dev.0.0\frameworks\projects\rpc\src\mx\rpc\remoting\Operation.as:254]
	at Function/http://adobe.com/AS3/2006/builtin::apply()
	at mx.rpc::AbstractService/http://www.adobe.com/2006/actionscript/flash/proxy::callProperty()[E:\dev.0.0\frameworks\projects\rpc\src\mx\rpc\AbstractService.as:408]
	at fb4Java01/__campo_change()[C:\ECLIPSE-FB4\WORKSPACE\fb4Java01\SRC_FLEX\fb4Java01.mxml:18]
	at flash.events::EventDispatcher/dispatchEventFunction()
	at flash.events::EventDispatcher/dispatchEvent()
	at mx.core::UIComponent/dispatchEvent()[E:\dev.0.0\frameworks\projects\framework\src\mx\core\UIComponent.as:12266]
	at spark.components.supportClasses::SkinnableTextBase/textDisplay_changeHandler()[E:\dev.0.0\frameworks\projects\spark\src\spark\components\supportClasses\SkinnableTextBase.as:1567]
	at flash.events::EventDispatcher/dispatchEventFunction()
	at flash.events::EventDispatcher/dispatchEvent()
	at mx.core::UIComponent/dispatchEvent()[E:\dev.0.0\frameworks\projects\framework\src\mx\core\UIComponent.as:12266]
	at spark.components::RichEditableText/textContainerManager_flowOperationCompleteHandler()[E:\dev.0.0\frameworks\projects\spark\src\spark\components\RichEditableText.as:4276]
	at flash.events::EventDispatcher/dispatchEventFunction()
	at flash.events::EventDispatcher/dispatchEvent()
	at flashx.textLayout.container::TextContainerManager/dispatchEvent()[C:\Vellum\branches\v1.0\dev\output\openSource\textLayout\src\flashx\textLayout\container\TextContainerManager.as:1470]
	at flash.events::EventDispatcher/dispatchEventFunction()
	at flash.events::EventDispatcher/dispatchEvent()
	at flashx.textLayout.elements::TextFlow/dispatchEvent()[C:\Vellum\branches\v1.0\dev\output\openSource\textLayout\src\flashx\textLayout\elements\TextFlow.as:773]
	at flashx.textLayout.edit::EditManager/finalizeDo()[C:\Vellum\branches\v1.0\dev\output\openSource\textLayout\src\flashx\textLayout\edit\EditManager.as:533]
	at flashx.textLayout.edit::EditManager/doOperation()[C:\Vellum\branches\v1.0\dev\output\openSource\textLayout\src\flashx\textLayout\edit\EditManager.as:472]
	at flashx.textLayout.edit::EditManager/flushPendingOperations()[C:\Vellum\branches\v1.0\dev\output\openSource\textLayout\src\flashx\textLayout\edit\EditManager.as:655]
	at flashx.textLayout.edit::SelectionManager/enterFrameHandler()[C:\Vellum\branches\v1.0\dev\output\openSource\textLayout\src\flashx\textLayout\edit\SelectionManager.as:1823]

achu q tem alguma coisa errada com o remoting-config:

<?xml version="1.0" encoding="UTF-8"?>
<service id="remoting-service" 
    class="flex.messaging.services.RemotingService">

    <adapters>
        <adapter-definition id="java-object" class="flex.messaging.services.remoting.adapters.JavaAdapter" default="true"/>
    </adapters>

    <default-channels>
        <channel ref="my-amf"/>
    </default-channels>


<destination id="servico">
	<properties>
		<source>OlaMundo</source>
	</properties>
</destination>


</service>

Espero q lhe seja útil:
http://fabiophx.blogspot.com/2010/03/context-root.html

[]s

Faz um teste, coloca /p01 em Flex Server e p01 em Web Project Settings.

[]s

[quote=fabiophx]Faz um teste, coloca /p01 em Flex Server e p01 em Web Project Settings.

[]s[/quote]

entaum fabio…o context root em flex server fica desabilitado para alteraçoes… nao da pra mudar!! :frowning:

Q estranho ficar desabilitado.
Uma dica é vc começar um projeto do zero e copiar os teus arquivos.
Outra dica olhar este link q fala sobre esta situação http://www.adobe.com/devnet/flex/articles/flex_hibernate.html e fala quais os arquivos devem ser alterados na mão para corrigir esta situação, este link coloquei tb como comentário do meu post http://fabiophx.blogspot.com/2010/03/context-root.html

[]s

galera deu certo aki!!!

basicamente, eu fiz o projeto do mesmo jeito que expliquei no 1º post, alterei apenas alguns dados na criação do projeto:

assim como explica o blog do erkobridee

http://blog.erkobridee.com/2010/03/28/adobe-flash-builder-flex-4-blazeds-4/

…basicamente, o erro era alguma configuração que ficava errada na hora de executar o programa, no blog acima, o erko diz:

vlws pela ajuda galera!!!

Blz. Tb é uma boa saída, mas lembre-se q estes dois campos podem conter valores diferentes.

[]s