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