Couldn't establish a connection to 'helloJavaFlex

citelin 2010-09-20 02:42:18
Couldn't establish a connection to 'helloJavaFlex
...全文
136 点赞 收藏 7
写回复
7 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
citelin 2010-09-21
[Quote=引用 5 楼 lieri111 的回复:]
报错是指你指的路径不正确,,楼主看一下配置文件,或者干脆把配置文件改成默认的
[/Quote]
我刚学flex,配置文件我都粘在上面了,帮我看看哪块不对吧,或者告诉我哪个文件改成默认的,要怎么改呢
回复
citelin 2010-09-21
[Quote=引用 4 楼 leemiki 的回复:]
你检查下 flex-server的路径 remoting-config.xml
[/Quote]
flex-server的路径 remoting-config.xml分别为:
<flexProperties flexServerType="8" flexWarLocation="C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\blazeds.war" serverContextRoot="/HelloFlexPro" serverRoot="F:/workspace/HelloFlexPro/WebRoot" serverRootURL="http://localhost:8080" toolCompile="true" useServerFlexSDK="false" version="1"/>


<destination id="helloJavaFlex">
<properties><source>com.test.HelloJavaFlex</source></properties>
</destination>

页面的访问路径为:
http://localhost:8080/HelloFlexPro/bin/HelloFlexPro.html
回复
passself 2010-09-21
报错是指你指的路径不正确,,楼主看一下配置文件,或者干脆把配置文件改成默认的
回复
leemiki 2010-09-20
你检查下 flex-server的路径 remoting-config.xml
回复
citelin 2010-09-20
<destination id="helloJavaFlex">
<properties><source>com.test.HelloJavaFlex</source></properties>
</destination>

<mx:RemoteObject destination="helloJavaFlex" id="remoteHello" fault="faultEvent (event)" endpoint="http://localhost:8080/HelloFlexPro/messagebroker/amf">
</mx:RemoteObject>

还是我contextRoot这些路径配的不对么?
http://localhost:8080/HelloFlexPro/bin/HelloFlexPro.html
<flexProperties flexServerType="8" flexWarLocation="C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\blazeds.war" serverContextRoot="/HelloFlexPro" serverRoot="F:/workspace/HelloFlexPro/WebRoot" serverRootURL="http://localhost:8080" toolCompile="true" useServerFlexSDK="false" version="1"/>






回复
citelin 2010-09-20
faultString="[MessagingError message='Destination 'helloJavaFlex' either does not exist or the destination has no channels defined (and the application does not define any default channels.)']" faultCode="InvokeFailed" faultDetail="Couldn't establish a connection to 'helloJavaFlex'"]
回复
leemiki 2010-09-20
这错误是连接不到服务器,应该是你的配置文件哪里配错了
回复
相关推荐
发帖
Flex
创建于2007-12-13

4328

社区成员

多媒体/设计 Flex
申请成为版主
帖子事件
创建了帖子
2010-09-20 02:42
社区公告
暂无公告