当前位置: 代码迷 >> Web前端 >> Flex和BlazeDS通信时错误:WebContent/messagebroker/amf'
  详细解决方案

Flex和BlazeDS通信时错误:WebContent/messagebroker/amf'

热度:528   发布时间:2013-10-30 12:56:22.0
Flex和BlazeDS通信时异常:WebContent/messagebroker/amf'

?Flex和BlazeDS通信时异常:NetConnection.Call.Failed: HTTP: Status 404: url: 'http://192.168.19.123:808/WebContent/messagebroker/amf'"]

?

原因是:项目根目录下下.flexProperties文件中 serverContextRoot="/WebContent" 造成的

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<flexProperties enableServiceManager="false" flexServerFeatures="4" flexServerType="2" serverContextRoot="/WebContent" serverRoot="D:/java/tomcat-6.0.18_For_UltraNms_Web/webapps/nmsw" serverRootURL="http://localhost:8080/nmsw/" toolCompile="true" useServerFlexSDK="false" version="2"/>

如下方法,重新使用BlazeDS设置Flex服务器,上下文跟目录一定要正确