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路径为:, 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="" toolCompile="true" useServerFlexSDK="false" version="1"/>
|
.actionScriptProperties
<?xml version="1.0" encoding="UTF-8"?> <actionScriptProperties mainApplicationPath="flexmysql.mxml" version="3"> <compiler additionalCompilerArguments="-services "E:/ming/flexwork/notebook/WebRoot/WEB-INF/flex/services-config.xml" -locale en_US" copyDependentFiles="true" enableModuleDebug="true" generateAccessible="false" htmlExpressInstall="true" htmlGenerate="true" htmlHistoryManagement="true" htmlPlayerVersion="9.0.124" htmlPlayerVersionCheck="true" outputFolderPath="WebRoot" rootURL="" 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>
|
参考资料:http://netliving.javaeye.com/blog/188277
阅读(2693) | 评论(1) | 转发(0) |