原文地址: http://blogold.chinaunix.net/u1/39578/showart.php?id=2281877
blazeds问题解决方法
?
问题一、提示RDS服务器消息:
执行RDS命令时出错。状态代码:404,原因://blazeds/CFIDE/main/ide.cfm
错误提示如下图
?
?
?
解决办法:打开blazeds目录,我的目录如下:D:\Tomcat 5.5.1\webapps\blazeds\WEB-INF
找到web.xml文件,打开此文件,在此文件 中找到
<!-- begin rds>
??? <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>true</param-value>
??</init-param>???????
??????? <load-on-startup>10</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>true</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>
<end rds -->
??????? <servlet-name>RDSDispatchServlet</servlet-name>
??????? <url-pattern>/CFIDE/main/ide.cfm</url-pattern>
??? </servlet-mapping>
<end rds -->
内容,将<!-- begin rds>和<end rds -->
这二个注册删除,保存,从新启动Tomcate服务器
注册:修改了配置文件后必须重新启动Tomcate服务器
?
再次连接出现Unable to authenticate on RDS server using current security information.
如图
?
?
?
出现此问题,可能是RDS服务器需要权限验证,但flex与blazeds时,我们去掉的权限
?
?
?
?
?
原因导致的
解决办法,找到上面那段内容中的如下
<init-param>
???<param-name>useAppserverSecurity</param-name>
???<param-value>true</param-value>
??</init-param>??
???<param-name>useAppserverSecurity</param-name>
???<param-value>true</param-value>
??</init-param>??
将true改为flase,
保存,重记tomcate服务器,再次连接,OK了
?
附件中的内容为修改后。可以直接用此文件替换
?
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.7.0
Created-By: 1.5.0_15-b04 (Sun Microsystems Inc.)
Sealed: false
Implementation-Title: BlazeDS - BlazeDS Application
Implementation-Version: 4.0.0.14931
Implementation-Vendor: Adobe Systems Inc.
Ant-Version: Apache Ant 1.7.0
Created-By: 1.5.0_15-b04 (Sun Microsystems Inc.)
Sealed: false
Implementation-Title: BlazeDS - BlazeDS Application
Implementation-Version: 4.0.0.14931
Implementation-Vendor: Adobe Systems Inc.
blazeds版本信息