RIACHINA 中国RIA开发者论坛RIA 服务器端开发LDS,FMS,REMOTING专区 使用lcds时遇到不能访问到remote object的问题。

使用lcds时遇到不能访问到remote object的问题。

使用lcds时遇到不能访问到remote object的问题。

我在是使用Live cycle data service时候遇到一个问题。参考cimicola版主的一个Flex + LCDS + Java 入门教程教程进行的。
使用http://localhost080/lcdstest/WebRoot/bin/lcdstest.html时候可以看到flash,但是调用remote object时候出错:

[RPC Fault faultString="Send failed" faultCode="Client.Error.MessageSend" faultDetail="Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Status 404: url: 'http://localhost080/lcdstest/src/messagebroker/amf'"]
        at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal:<img src="editor/images/smilies/default/30.gif" border="0" smiliecode="" alt="" />aultHandler()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:216]
        at mx.rpc::Responder/fault()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\Responder.as:49]

找不到remote object???
1.  我的remote-config如下:
<?xml version="1.0" encoding="UTF-8"?>
<service id="remoting-service"
    class="flex.messaging.services.RemotingService">
    <adapters>
        <adapter-definition id="java-object" class="flex.messaging.services.remoting.adapters.JavaAdapter" default="true"/>
    </adapters>
    <default-channels>
        <channel ref="my-amf"/>
    </default-channels>
          <destination id="FirstJavaClassRemoteObject">
        <properties>
            <source>com.shu.Heoo</source>
            <scope>application</scope>
        </properties>
    </destination>
   
</service>

2. com.shu.Heoo在flex工程里面src目录下。

3. flex 工程的context root 为:/lcdstest/src  (/lcdstest 也试过了不行。lcdstest是对我的flex工程名称。)

4. 访问http://localhost080/flex/ 的时候出现:
Welcome to Adobe LiveCycle Data Services ES!
的页面,我想我的lcds也是运行正常的。

是我那里配置错了吗?还是什么地方没有配置?

请版主,研究lcds高手们指点一二。
万分感谢。
 

回复:使用lcds时遇到不能访问到remote object的问题。

路径配错了
参考这个帖子
http://www.riachina.com/showtopic-10628.html
Protoss拥有高度的文明、先进的科技和强大的精神力量。但是由于长达千年的寿命,种群数量稀少,消耗不过繁殖能力出众的Zerg,险些被Zerg给灭族。
 

回复:使用lcds时遇到不能访问到remote object的问题。

3. flex 工程的context root 为:/lcdstest/src  (/lcdstest 也试过了不行。lcdstest是对我的flex工程名称。)

Context root 路径配置成/lcdstest了还是不行,就是点击“请求”的时候,报错了,好像找不到Remote object。这个就是我的flex工程的名称。
跟你的教程中MyFirstLcds一样是flex工程的名称啊。
 
1  /  1  页   1 跳转

版权所有 riachina.com   Sitemap

Powered by Discuz!NT 2.1.202    Copyright © 2001-2008 Comsenz Inc.
Processed in 0.078123 second(s) , 3 queries.
返顶部