刚刚学习flex3通过BlazeDS连接Java,分别写了flex客户端和java服务器端,就是最简单的hello world,前台在TextInput输入字符串,点击按钮在label中显示Hello+字符串,启动服务器,并无异常,结果单击按钮后出现Adobe Flash Player 9的调试版提示错误,具体如下:
[RPC Fault faultString="[MessagingError message='Destination 'helloworld' 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 'helloworld'"]
at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::invoke()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:259]
at mx.rpc.remoting.mxml::Operation/http://www.adobe.com/2006/flex/mx/internal::invoke()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\rpc\remoting\mxml\Operation.as:197]
at mx.rpc.remoting::Operation/send()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\rpc\remoting\Operation.as:113]
at Function/http://adobe.com/AS3/2006/builtin::apply()
at mx.rpc.remoting.mxml::Operation/send()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\rpc\remoting\mxml\Operation.as:170]
at Function/http://adobe.com/AS3/2006/builtin::apply()
at mx.rpc::AbstractService/http://www.adobe.com/2006/actionscript/flash/proxy::callProperty()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\rpc\AbstractService.as:290]
at BlazeDSHelloWorld/sayHello()[D:\blazeds\tomcat\webapps\blazedsHello\src\BlazeDSHelloWorld.mxml:15]
at BlazeDSHelloWorld/___BlazeDSHelloWorld_Button1_click()[D:\blazeds\tomcat\webapps\blazedsHello\src\BlazeDSHelloWorld.mxml:27]
请教指点。