专注收集记录技术开发学习笔记、技术难点、解决方案
网站信息搜索 >> 请输入关键词:
您当前的位置: 首页 > Flex

开发flex异常篇

发布时间:2011-06-27 19:47:16 文章来源:www.iduyao.cn 采编人员:星星草
开发flex错误篇

1. 错误代码:faultCode:InvokeFailed faultString:'[MessagingError message='Destination  either does not exist or the destination has no channels defined (and the application does not define any default channels.)']' faultDetail:'Couldn't establish a connection to

  分析:工程目录下的.flexProperties和.actionScriptProperties没有设置好,导致没有找到services-config.xml

  解决办法:修改.flexProperties和.actionScriptProperties相关配置

  例如:工程路径为为:E:/ming/flexwork/notebook, blazeds路径为:D:/Program File/Tomcat 6.0/webapps/blazeds.war, Tomcat路径为:http://localhost:8081, notebook的flex编译路径为WebRoot

.flexProperties

<?xml version="1.0" encoding="UTF-8"?>
<flexProperties flexServerType="8" flexWarLocation="D:/Program File/Tomcat 6.0/webapps/blazeds.war" serverContextRoot="/notebook" serverRoot="E:/ming/flexwork/notebook/WebRoot" serverRootURL="http://localhost:8081/notebook" toolCompile="true" useServerFlexSDK="false" version="1"/>

.actionScriptProperties

<?xml version="1.0" encoding="UTF-8"?>
<actionScriptProperties mainApplicationPath="flexmysql.mxml" version="3">
<compiler additionalCompilerArguments="-services &quot;E:/ming/flexwork/notebook/WebRoot/WEB-INF/flex/services-config.xml&quot; -locale en_US" copyDependentFiles="true" enableModuleDebug="true" generateAccessible="false" htmlExpressInstall="true" htmlGenerate="true" htmlHistoryManagement="true" htmlPlayerVersion="9.0.124" htmlPlayerVersionCheck="true" outputFolderPath="WebRoot" rootURL="http://localhost:8081/notebook" sourceFolderPath="flex_src" strict="true" useApolloConfig="false" verifyDigests="true" warn="true">
<compilerSourcePath/>
<libraryPath defaultLinkType="1">
<libraryPathEntry kind="4" path=""/>
<libraryPathEntry kind="1" linkType="1" path="flex_libs"/>
</libraryPath>
<sourceAttachmentPath/>
</compiler>
<applications>
<application path="addNote.mxml"/>
<application path="loginPanel.mxml"/>
<application path="modifyPassPanel.mxml"/>
<application path="noteDetail.mxml"/>
<application path="notePanel.mxml"/>
<application path="noteThumb.mxml"/>
</applications>
<modules/>
<buildCSSFiles/>
</actionScriptProperties>

 

友情提示:
信息收集于互联网,如果您发现错误或造成侵权,请及时通知本站更正或删除,具体联系方式见页面底部联系我们,谢谢。

其他相似内容:

热门推荐: