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"
         http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4">


      and my services-config.xml:


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

      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")






      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:



      and now I am still having the same error.


      Please, any suggestions?



      thanks in advance.