10 Replies Latest reply on Dec 16, 2010 10:27 PM by xinonnet

    Data service connection: BlazeDS root and/or RDS server

    Lotfus Level 1

      Hello all,

       

      I already went through the very well written and clear tutorials of Flex and Flash builder. Now I am trying to develop alone my first felx-spring application.

       

      here is my web.xml:

       

      <?xml version="1.0" encoding="UTF-8"?>
      <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
         http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4">
       
         <servlet>
            <servlet-name>spring</servlet-name>
               <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
               <init-param>
                  <param-name>contextConfigLocation</param-name>
                  <param-value>/WEB-INF/services-config.xml</param-value>
               </init-param>
               <load-on-startup>1</load-on-startup>
         </servlet>
       
         <servlet-mapping>
             <servlet-name>spring</servlet-name>
             <url-pattern>/messagebroker/*</url-pattern>
         </servlet-mapping>
            
      </web-app>
      

       

      and my services-config.xml:

       

      <?xml version="1.0" encoding="UTF-8"?>
      <beans xmlns="http://www.springframework.org/schema/beans"
             xmlns:flex="http://www.springframework.org/schema/flex"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="
                http://www.springframework.org/schema/beans
                http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
                http://www.springframework.org/schema/flex 
                http://www.springframework.org/schema/flex/spring-flex-1.0.xsd">
       
         <flex:message-broker/>
       
         <bean id="employeeService" class="services.EmployeeServiceImpl" >
            <flex:remoting-destination />
            <!--constructor-arg ref="dataSource" /-->
         </bean>
        
         <bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
            <property name="driverClassName" value="org.h2.Driver" />
            <property name="url" value="jdbc:h2:~/sprinflexdemodb/sprinflexdemodb" />
         </bean>         
      </beans>
      

      First: when I configured the BlazeDS and validated the configuration, I had the warning:

       

      Server root is not pointing to a BlazeDS server root folder


      Googling this message gives only two results, that roughly say: it's not really a problem.

       

      But after, when trying to connect to the data service in the Data/Services view in Flash builder, I am asked for a password, I put nothing, then I have this error alert:

      RDF server message:

      Error executing RDS command. Status code : 404 , Reason: Introuvable (in french, means "not found")

       

      Suggestion:


      ...

       

       

      The suggestions are to make sure that there is an RDS servlet in my web.xml. Well, before this alert I haven't heared about RDS servlets in the tutorials I made. But, as suggested in someplaces on the web, I added the following in my web.xml:

       

      <servlet>
              <servlet-name>RDSDispatchServlet</servlet-name>
              <servlet-class>flex.rds.server.servlet.FrontEndServlet</servlet-class>
              <init-param>
                  <param-name>useAppserverSecurity</param-name>
                  <param-value>false</param-value>
              </init-param>
              <load-on-startup>10</load-on-startup>
          </servlet>
      
      

      and now I am still having the same error.

       

      Please, any suggestions?

       

       

      thanks in advance.