2 Replies Latest reply on Aug 24, 2006 12:49 AM by SallyZhao

    How to make remote object working?

    SallyZhao
      I just started to use Remote Object and FDS. However, I cann't get a simple application working. I am working with tomcat and build my application under the flex structure provided in FDS package. I keep getting the same error:

      [RPC Fault faultString="[MessagingError message='Unknown destination 'bitmapmanager'.']" faultCode="InvokeFailed" faultDetail="Couldn't establish a connection to 'bitmapmanager'"]
      at mx.rpc::AbstractInvoker/ http://www.adobe.com/2006/flex/mx/internal::invoke()[C:\dev\enterprise_gmc\frameworks\mx\r pc\AbstractInvoker.as:229
      at mx.rpc.remoting.mxml::Operation/ http://www.adobe.com/2006/flex/mx/internal::invoke()[C:\dev\enterprise_gmc\frameworks\mx\r pc\remoting\mxml\Operation.as:166
      at mx.rpc.remoting::Operation/send()[C:\dev\enterprise_gmc\frameworks\mx\rpc\remoting\Operat ion.as:120]
      at Function/ http://adobe.com/AS3/2006/builtin::apply()
      at mx.rpc.remoting.mxml::Operation/send()[C:\dev\enterprise_gmc\frameworks\mx\rpc\remoting\m xml\Operation.as:143]
      at Function/ http://adobe.com/AS3/2006/builtin::apply()
      at mx.rpc::AbstractService/ http://www.adobe.com/2006/actionscript/flash/proxy::callProperty()[C:\dev\enterprise_gmc\f rameworks\mx\rpc\AbstractService.as:287
      at remote/remote::showMap()[D:\flexExample\dataservices\remote.mxml:30]
      at remote/___Button1_click()[D:\flexExample\dataservices\remote.mxml:34]

      I put my Java class files under tomcat/webapps/flex/WEB-INF/classes. And defined the destination in remoting-config.xml as follows:
      <destination id="bitmapmanager">
      <properties>
      <source>org.bitmap.BitmapManager</source>
      </properties>
      </destination>

      Can anyone please tell me what causes this problem and how I can make Remote Object working? Thanks.