Fault faultString="发送失败"faultCode="Client.Error.MessageSend" faultDetail="Channel.Connect.Failed error NetConnection.Call.Failed: HTTP:Status 404


错误[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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM