返回列表 回复 发帖

关于flex也java 的问题 需要请教一下

我在做flex调用Java的时候老出现一个问题:
[RPC Fault faultString="[MessagingError message='目标“conndata”不存在,或者目标没有已定义的通道(并且应用程序没有定义任何默认通道)。']" faultCode="InvokeFailed" faultDetail="无法建立到“conndata”的连接"]
我不知道问题出现在什么地方。conndata是我写的Java类;
<destination id="conndata">
        <properties>
                <source>lalo.Conndata</source>
</properties>
</destination>这是配置文件中添加的代码

<mx:RemoteObject id="remoteObject" destination="conndata" source="lalo.Conndata"
                                                 result="resultHandler(event)"
                                                 fault="faultHandler(event)">
                       
                </mx:RemoteObject>这是RemoteObject代码。
private function resultHandler(event:ResultEvent):void
                        {
                                //Alert.show(event.result.toString(), "提示");
                                text1.text=event.result.toString();       
                               
                               
                        }
主要是查询数据库然后显示。
的确存在。放在tomcat服务器里面的
返回列表