用javawebstudio2005开发论坛,编译用户注册页面时出现下面错误,不知是什么原因?谢谢大虾帮我分析一下是哪些地方出问题了.感谢!HTTP Status 500 - --------------------------------------------------------------------------------type Exception reportmessage description The server encountered an internal error () that prevented it from fulfilling this request.exception javax.servlet.ServletException: Cannot find ActionMappings or ActionFormBeans collection
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:846)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:779)
org.apache.jsp.registrationInsert_jsp._jspService(org.apache.jsp.registrationInsert_jsp:89)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause javax.servlet.jsp.JspException: Cannot find ActionMappings or ActionFormBeans collection
org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:709)
org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:417)
org.apache.jsp.registrationInsert_jsp._jspx_meth_html_form_0(org.apache.jsp.registrationInsert_jsp:163)
org.apache.jsp.registrationInsert_jsp._jspx_meth_html_html_0(org.apache.jsp.registrationInsert_jsp:119)
org.apache.jsp.registrationInsert_jsp._jspService(org.apache.jsp.registrationInsert_jsp:82)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.8 logs.
--------------------------------------------------------------------------------Apache Tomcat/5.5.8

解决方案 »

  1.   

    错误信息 javax.servlet.jsp.JspException: Cannot find ActionMappings or ActionformBeans collection可能原因 
    lEither the <servlet> tags for the Struts action servlet or the <servlet-mapping> tags for the .do extension mapping or both not present in the web.xml file. I saw a case where the web.xml file had no elements other than the root element and so this error was occurring.
    lTypos or spelling errors in the struts-config.xml can lead to this error message. For example, missing a slash ("/") on a closing tag can have this effect.
    lAnother element that must be present in the web.xml file is the load-on-startup element. This can be either an empty tag or can have an integer specified that indicates the priority of executing the associated servlet. The higher the number in the load-on-startup tags, the lower its priority.
      

  2.   

    Cannot find ActionMappings or ActionFormBeans collection
     
    Exception
     javax.servlet.jsp.JspException: Cannot find ActionMappings or ActionFormBeans collection
     
    可能原因
     不是标识Struts actionServlet的<servlet>标记就是映射.do扩展名的<sevlet-mapping>标记或者两者都没有在web.xml中声明。
     
    在struts-config.xml中的打字或者拼写错误也可导致这个异常的发生。例如缺少一个标记的关闭符号/>。最好使用struts console工具检查一下。
     
    另外,load-on-startup必须在web.xml中声明,这要么是一个空标记,要么指定一个数值,这个数值用来表servlet运行的优先级,数值越大优先级越低。
     
    还有一个和使用load-on-startup有关的是使用Struts预编译JSP文件时也可能导致这个异常。
     
    相关链接
     Explicitly Define <load-on-startup>
    http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=50&t=001055
    http://threebit.net/tutorials/ejb/general/ 
     
      

  3.   

    http://community.csdn.net/Expert/TopicView3.asp?id=4764017