Eclipse_FlashBuilder4_为Flex配置BlazeDS作为服务_there was an error executing the RDS command on the server HTTP status code: 404

kaneqi 发布于 2013/04/26 16:31
阅读 1K+
收藏 0

参照http://www.riafan.com/dcd-flash-builder-4-blazeds/“使用Flash Builder 4和BlazeDS创建数据为中心的应用”做的一个实验。

在配置connect to data/service for ...时出现了there was an error executing the RDS command on the server HTTP status code: 404的错误。详细如下:

1、创建了一个Java Web项目blazeds4_samples_server,使用了BlazeDS,并且部署到了tomcat上:

a.项目结构图:


b.web.xml的内容为:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>

    <display-name>BlazeDS</display-name>
    <description>BlazeDS Application</description>

    <!-- Http Flex Session attribute and binding listener support -->
    <listener>
        <listener-class>flex.messaging.HttpFlexSession</listener-class>
    </listener>

    <!-- MessageBroker Servlet -->
    <servlet>
        <servlet-name>MessageBrokerServlet</servlet-name>
        <display-name>MessageBrokerServlet</display-name>
        <servlet-class>flex.messaging.MessageBrokerServlet</servlet-class>
        <init-param>
            <param-name>services.configuration.file</param-name>
            <param-value>/WEB-INF/flex/services-config.xml</param-value>
       </init-param>
        <load-on-startup>1</load-on-startup>
    </servlet>
    
    <servlet>
        <servlet-name>RDSDispatchServlet</servlet-name>
		<display-name>RDSDispatchServlet</display-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>

    <servlet-mapping id="RDS_DISPATCH_MAPPING">
        <servlet-name>RDSDispatchServlet</servlet-name>
        <url-pattern>/CFIDE/main/ide.cfm</url-pattern>
    </servlet-mapping>

    <servlet-mapping>
        <servlet-name>MessageBrokerServlet</servlet-name>
        <url-pattern>/messagebroker/*</url-pattern>
    </servlet-mapping>

    <welcome-file-list>
        <welcome-file>index.html</welcome-file>
        <welcome-file>index.htm</welcome-file>
    </welcome-file-list>

    <!-- for WebSphere deployment, please uncomment -->
    <!--
    <resource-ref>
        <description>Flex Messaging WorkManager</description>
        <res-ref-name>wm/MessagingWorkManager</res-ref-name>
        <res-type>com.ibm.websphere.asynchbeans.WorkManager</res-type>
        <res-auth>Container</res-auth>
        <res-sharing-scope>Shareable</res-sharing-scope>
    </resource-ref>
    -->

</web-app>

2、建立一个flex项目blazeds4_samples_client,在选择flex server时,“root folder”指向部署在tomcat/webapps的blazeds4_samples_server文件夹,而且点击“validate configuration”也通过了。如下图:


3、在blazeds4_samples_client 

选择data->connect to data/service,选择blazeDS,选择“no password required”,出现了此错误:

分析:上面对话框中给出了4个suggestion, 

suggestion1和2:我的web.xml代码上面贴出来了,RDS servlet及其mapping都有的

suggestion3: 我的tomcat只部署了这个blazeds4_samples_server:

suggestion 4: blazeds4_samples_client的flex server配置过程中都是顺利的,点击valid configuration时只出现过“server root is not pointing to a BlazeDS server root folder”的黄色提示,这个提示内容网上说都可以忽略的

求大神们赐教啊!


加载中
0
kaneqi
kaneqi
求指教啊  周末还在实验室的伤不起啊~~
0
amonxu
amonxu
去网上搜一下错误即可。
kaneqi
kaneqi
网上搜的方法都试过了...
返回顶部
顶部