Fault faultString="发送失败"faultCode="Client.Error.MessageSend" faultDetail="Channel.Connect.Failed err...

错误[RPC Fault faultString="发送失败" faultCode="Client.Error.MessageSend" faultDetail="Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Status 404: url: 'http://localhost:8080/WebContent/messagebroker/amf'"]

发送请求总是404 NOT FOUND! 后来在网上看到有人提到

http://localhost/WebContent/messagebroker/amf

对比自己的请求,也是这样的...

services-config.xml里明明是

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

的,我的webapp访问用的也是项目名,而不是WebContent呀,然后试着把services-config.xml里的

{context.root}用项目名替换,不成功,然后去项目根目录看,发现

.flexProperties文件里有段

<flexProperties enableServiceManager="false" flexServerFeatures="4" flexServerType="8" flexWarLocation="E:/blazeds.war" serverContextRoot="/WebContent" serverRoot="E:/workspaces/flex/WebContent" serverRootURL="http://localhost:80/flex" toolCompile="true" useServerFlexSDK="false" version="2"/>

真凶终于出来了...就是serverContextRoot="/WebContent"这个,把它改成自己的项目名,问题就解决了...

原文:http://www.cnblogs.com/adaikiss/archive/2010/08/17/1801231.html

转载于:https://www.cnblogs.com/wumian/articles/2012-12-07-1754.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值