0 Replies Latest reply on Nov 6, 2009 1:49 AM by FlexBoy1000

    Flex Cairngorm Spring Blazeds - Remoting Error

    FlexBoy1000

      Hi all, I seem to be getting the following error when I try to access a Remote Java class (on Spring/BlazeDS) from the Flex/Cairngorm application. I am going crazy at the moment trying to see what is wrong - any help would be greatly appreciated - thanks Mike.

       

      **Error: C0007E: RemoteObject not found for mycomponentsService
          at
      RemoteObjects/getService()
          at com
      .adobe.cairngorm.business::ServiceLocator/getRemoteObject()
          at com
      .nomura.dashboard.client.business::DashBoardDelegate()**


       

      All my config files are below:

      Cairngorm - BusinessDelegate.as

      this

       

      .service = ServiceLocator.getInstance().getRemoteObject("mycomponentsService");

       

      Cairngorm - Services.mxml

       

       

       

       

       

      <cairngorm:ServiceLocator

           xmlns:mx=

      http://www.adobe.com/2006/mxml

           xmlns:cairngorm="

      http://www.adobe.com/2006/cairngorm">

       

       

       

       

       

           <mx:RemoteObject id="mycomponentsService" destination="remotecomponentService" showBusyCursor="true">

       

       

                <mx:method name="getAll"/>

       

       

           </mx:RemoteObject>

       

       

      </cairngorm:ServiceLocator>

       

      Spring/BlazeDS - application-config.xml

       

      <!-- Spring bean config -->

       

      <bean id="remotecomponentService" class="com.mycompany.dashboard.server.dao.ComponentsDAO">

       

      Spring/BlazeDS - services-config.xml

       

      <channel-definition id="myamf" class="mx.messaging.channels.AMFChannel">

       

           <endpoint url="http://localhost:8080/dashboard-server/spring/messagebroker/amf" class="flex.messaging.endpoints.AMFEndpoint"/>

       

       

      </channel-definition>

       

       

       

      </channel-definition>

       

       

      </channel-definition>

       

      Spring/BlazeDS - web.xml

       

       

       

       

       

       

       

       

       

       

       

      <web-app version="2.4">

       

      <!-- The front controller of this Spring Web application, handles all application requests -->

      <display-name>dashboard-server</display-name>

       

      <servlet>

            <servlet-name>Spring MVC Dispatcher Servlet</servlet-name>

            <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>

       

            <init-param>

                  <param-name>contextConfigLocation</param-name>

                  <param-value>/WEB-INF/spring/*-config.xml</param-value>

            </init-param>

       

            <load-on-startup>1</load-on-startup>

      </servlet>

       

      <!-- Map /spring/* requests to the DispatcherServlet -->

      <servlet-mapping>

            <servlet-name>Spring MVC Dispatcher Servlet</servlet-name>

            <url-pattern>/spring/*</url-pattern>

            </servlet-mapping>

      </web-app>

       

       

       

       

           <constructor-arg ref="dataSource" />

       

       

       

      </bean>

       

       

      <!-- Expose the bean for BlazeDS remoting -->

       

       

       

           <flex:remote-service ref="remotecomponentService" />