Flex访问时报错解决方案:
[RPC Fault faultString="Send failed" faultCode="Client.Error.MessageSend" faultDetail="Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed: url: 'http://localhost:8080/***/messagebroker/amf'"]
解决方案:
1、首先看看这里的配置:选择项目右键属性--》Flex Server
Root URl: 到端口处
Context root: /工程名
2:还有种情况我这是发现只有IE8报这个错,其他浏览器没有报:
解决方案:添加endpoint属性:指向:endpoint=“http://localhost:8080/项目名/messagebroker/amf”,如果
是直接通过action跳转来的:可以省略“http://localhost:8080/项目名/”这些,便于移植!
<mx:RemoteObject id="srv" destination="businessDiagramService" endpoint="http://localhost:8080/项目名/messagebroker/amf">
</mx:RemoteObject>