日期:2014-05-18  浏览次数:20551 次

求大哥帮帮忙!Cannot find ActionMappings or ActionFormBeans collection
昨天初学struts,跟着网上下载的一些视频教程学着做,就出现了这样的异常:Cannot   find   ActionMappings   or   ActionFormBeans   collection   昨晚也在CSND论坛找到了很多关于这个问题的解决方法。
自己也跟着做了检查,当然也有的说是版本的问题。昨天开始学用eclipse   用的是FullStack_MyEclipse5.1.0GA_E3.2.1版本+j2sdk1.4.2_11+jakarta-tomcat-5.0.28,请问这个配置可以运行struts1.2吗?
出现的问题:1.说是端口8080被占用,然后我就把conf\server.xml里的
<Connector   port= "8080 "   maxThreads= "150 "   minSpareThreads= "25 "   maxSpareThreads= "75 "   enableLookups= "false "   redirectPort= "8443 "   acceptCount= "100 "debug= "0 "   connectionTimeout= "20000 "   disableUploadTimeout= "true "   />
改成8383。请问是这样该吗?
2.运行comcat后,会出现:
严重:Begin   event   threw   exception
严重:Parsing   error   processing   resource   path   /WEB-INF/struts-config.xml
这样的错误。
在server.xml做了 <Context   path= "/first "   docBase= "E:\myworkspace\strutsfirst\WebRoot "   reloadable= "true "/> 的配置
说明:WebRoot\WEB-INF\lib已经有8个struts相关的包
/*     struts-config.xml           */

<?xml   version= "1.0 "   encoding= "UTF-8 "?>
<!DOCTYPE   struts-config   PUBLIC   "-//Apache   Software   Foundation//DTD   Struts   Configuration   1.2//EN "   "http://struts.apache.org/dtds/struts-config_1_2.dtd ">

<struts-config>
    <data-sources   />
    <form-beans   >
        <form-bean   name= "loginForm "   type= "com.qingniao.wangwei.struts.form.LoginForm "   />

    </form-beans>

    <global-exceptions   />
    <global-forwards   />
    <action-mappings   >
        <action
            attribute= "loginForm "
            input= "/errors.jsp "
            name= "loginForm "
            path= "/login "
            scope= "request "
            type= "com.qingniao.wangwei.struts.action.LoginAction "   >
            <forward   name= "success "   path= "/success.jsp "> </forward>
            <forward   name= "failure "   path= "/failuer.jsp "> </forward>
            </action>

    </action-mappings>

    <message-resources   parameter= "com.qingniao.wangwei.struts.ApplicationResources "   />
</struts-config>

/***********web.xml************/
<?xml   version= "1.0 "   encoding= "UTF-8 "?>
<!DOCTYPE   struts-config   PUBLIC   "-//Apache   Software   Foundation//DTD   Struts   Configuration   1.2//EN "   "http://struts.apache.org/dtds/struts-config_1_2.dtd "