Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

strut1.1 + http 500 exception

 
guthula lakshman
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi pple
>
> i have an application written using JSPs and Servlets. my next step is to
> use Struts and modify it.
>
>
>
> am using struts 1.0.2, Tomcat 5.0.12
>
> this is what i did:
>
> i placed:
> -- struts.jar in the C:\Tomcat_5.0\webapps\struts\WEB-INF\lib folder
> -- all .tld files in the C:\Tomcat_5.0\webapps\struts\WEB-INF folder
> -- servlet-api.jar and struts.jar in C:\j2sdk1.4.2\jre\lib\ext folder
>
> i have a LoginBean.java, LoginAction.java and LoginForm.java from the
> website above. i have merely compiled them and placed them along with the
> MessageResources.properties file in the:
> C:\Tomcat_5.0\webapps\struts\WEB-INF\classes\test\struts folder.
>
> i have placed LoginView.jsp and MainMenu.jsp in:
> C:\Tomcat_5.0\webapps\struts\jsp folder.
>
> i have followed all the instructions!!
>
> i started Tomcat 5.0 server and when i request for:
>
> http://127.0.0.1:8080/struts/jsp/LoginView.jsp in my browser, i get the
> following error message:
>



HTTP 500 status Error

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: Cannot find ActionMappings or ActionFormBeans collection
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:460)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:355)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)

root cause

javax.servlet.ServletException: Cannot find ActionMappings or ActionFormBeans collection
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:841)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:774)
org.apache.jsp.addemployee_jsp._jspService(addemployee_jsp.java:92)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)

root cause

javax.servlet.jsp.JspException: Cannot find ActionMappings or ActionFormBeans collection
org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:741)
org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:443)
org.apache.jsp.addemployee_jsp._jspx_meth_html_005fform_005f0(addemployee_jsp.java:109)
org.apache.jsp.addemployee_jsp._jspService(addemployee_jsp.java:77)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)




could anybody solved my problem . i placed all action class and form class correctly.


With Regards
Lakshman
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're using Struts 1.0.2??? Please don't. It's quite old.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic