aspose file tools*
The moose likes Struts and the fly likes strut1.1 + http 500 exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "strut1.1 + http 500 exception" Watch "strut1.1 + http 500 exception" New topic
Author

strut1.1 + http 500 exception

guthula lakshman
Greenhorn

Joined: Sep 24, 2007
Posts: 21
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

Joined: Sep 29, 2008
Posts: 12617

You're using Struts 1.0.2??? Please don't. It's quite old.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: strut1.1 + http 500 exception