http://localhost:8080/WebContent/messagebroker/amf錯誤404

今天在公司跑前輩做的案例項目,一直出現這個錯誤:[color=red][b]faultCode:Client.Error.MessageSend faultString:'Send failed' faultDetail:'Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Status 404: url: 'http://localhost:8080/WebContent/messagebroker/amf''[/b][/color]
網上找了許多方法,結果只有這種方法最有效。
首先找到下面所圈中的文件(.flexProperties文件):


[img]http://dl.iteye.com/upload/attachment/539127/feb482ce-d902-3230-bed1-3d36b91f9325.png[/img]

然後找到這段圈中的WebContent修改爲自己項目的名稱(這裏我的項目名稱是ITURM):
[img]http://dl.iteye.com/upload/attachment/539131/9e518a53-1d69-38a9-b600-399c9aefae8d.png[/img]

一切就OK了。
[color=red][b] 出錯的原理網上找的:
[/b][/color]
endpoint的問題,在services-config.xml文件中,由於此類型的endpoint:
<endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/amf" class="flex.messaging.endpoints.AMFEndpoint"/>,中的{context.root}獲取不到項目名稱。
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章