错误[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
最后
以上就是靓丽唇膏最近收集整理的关于Fault faultString="发送失败"faultCode="Client.Error.MessageSend" faultDetail="Channel.Connect.Failed err...的全部内容,更多相关Fault内容请搜索靠谱客的其他文章。
发表评论 取消回复