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服务器,上下文跟目录一定要正确


Flex和BlazeDS通信时异常:WebContent/messagebroker/amf'_第1张图片

你可能感兴趣的:(Flex,blazeds)