• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

ERROR :: cannot find ActionMappings or ActionFormBeans

 
Greenhorn
Posts: 10
  • Number of slices to send:
    Optional 'thank-you' note:
Hi,

I got the following error when I am trying to run my struts application.


ERROR::

/***************************
org.apache.jasper.JasperException: javax.servlet.ServletException: javax.servlet.jsp.JspException: Cannot find ActionMappings or ActionFormBeans collection
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:522)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:398)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)


root cause

javax.servlet.ServletException: javax.servlet.jsp.JspException: Cannot find ActionMappings or ActionFormBeans collection
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:852)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:781)
org.apache.jsp.registration_jsp._jspService(registration_jsp.java:100)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)


root cause

javax.servlet.jsp.JspException: Cannot find ActionMappings or ActionFormBeans collection
org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:798)
org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:506)
org.apache.jsp.registration_jsp._jspx_meth_html_005fform_005f0(registration_jsp.java:117)
org.apache.jsp.registration_jsp._jspService(registration_jsp.java:90)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)


note The full stack trace of the root cause is available in the Apache Tomcat/6.0.18 logs.

***************************/


My web.xml contains ::

<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app>
<display-name>REprj</display-name>
<welcome-file-list>
<welcome-file>registration.jsp</welcome-file>
</welcome-file-list>
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.ActionServlet</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
<load-on-startup>0</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
<taglib>
<taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-html.tld</taglib-location>
</taglib>

</web-app>



My struts-config.xml contains ::


<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">


<struts-config>
<form-beans>
<form-bean name="regform" type="net.com.struts.form.RegistrationForm" />
</form-beans>
<global-exceptions>
</global-exceptions>
<global-forwards>
</global-forwards>
<action-mappings>
<action path="register"
name="regform"
validate="true"
input="/registration.jsp"
type="net.com.struts.action.RegistrationAction">
<forward name="success" path="/pass.jsp" />
<forward name="failure" path="/fail.jsp" />
</action>
</action-mappings>
<message-resources parameter="MessageResources" />
</struts-config>



My registration.jsp page contains::


<%@ page language="java" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>

<HTML>
<HEAD>
</HEAD>
<BODY>
<html:form action="register">
<bean:message key="label.firstname"/>
<html:text property="firstName"></html:text>
<html:errors property="firstName" />
<br>
<bean:message key="label.lastname"/>
<html:text property="lastName"></html:text>
<html:errors property="lastName" />
<br>
<bean:message key="label.username"/>
<html:text property="userName"></html:text>
<html:errors property="userName" />
<br>
<bean:message key="label.password" />
<html assword property="password"></html assword>
<html:errors property="password" />
<br>
<bean:message key="label.repassword"/>
<html:text property="repassword"></html:text>
<html:errors property="repassword" />
<br>
<html:submit />
<html:reset />
</html:form>
</BODY>
</HTML>



Anyone can solve this problem.

Thank you.






Regards
kranthi
 
kranti kumar
Greenhorn
Posts: 10
  • Number of slices to send:
    Optional 'thank-you' note:
Hi friends,


please solve my problem. I am unable to findout what was wrong with my code.

Any help is appreciate.



Thanking you.


.....
kranthi
 
kranti kumar
Greenhorn
Posts: 10
  • Number of slices to send:
    Optional 'thank-you' note:
Hi,

Myself found the soution for this one.


Thanking you.







.....
kranthi
 
Ranch Hand
Posts: 2908
1
  • Number of slices to send:
    Optional 'thank-you' note:

Originally posted by kranti kumar:

Myself found the soution for this one.



OK, Good, Just quote the code with [CODE] tags ! You can find them below, with UBB tags, that help us to read code clearly !

And use only one thread per question.
 
Greenhorn
Posts: 3
  • Number of slices to send:
    Optional 'thank-you' note:
hi kranthi/everyone,

i got the same error which you got kranthi..

org.apache.jasper.JasperException: javax.servlet.ServletException: javax.servlet.jsp.JspException: Cannot find ActionMappings or ActionFormBeans collection

how did you solved your problem. where should i check...

thanks
 
Greenhorn
Posts: 1
  • Number of slices to send:
    Optional 'thank-you' note:

thirumal raps wrote:hi kranthi/everyone,

i got the same error which you got kranthi..

org.apache.jasper.JasperException: javax.servlet.ServletException: javax.servlet.jsp.JspException: Cannot find ActionMappings or ActionFormBeans collection

how did you solved your problem. where should i check...

thanks



Hi All,

I got the same error in Struts1.2.9. Did anybody find the solution for this problem.

Thanks
- Manohar
 
Greenhorn
Posts: 2
  • Number of slices to send:
    Optional 'thank-you' note:
Hi all,

I am facing a similar problem in my struts project. Please let me know what solution did you get for this problem.

Thanks in advance..
Sam
 
Greenhorn
Posts: 3
  • Number of slices to send:
    Optional 'thank-you' note:
[quote=pavan
]Hi all,

I am facing a similar problem in my struts project. Please let me know what solution did you get for this problem.
please send the solutions

 
pavan kumarsam
Greenhorn
Posts: 3
  • Number of slices to send:
    Optional 'thank-you' note:
org.apache.jasper.JasperException: javax.servlet.ServletException: javax.servlet.jsp.JspException:



cannot find action mappings and formbeans

please send me the reply for this....
 
Sheriff
Posts: 9708
43
  • Number of slices to send:
    Optional 'thank-you' note:

pavan kumarsam wrote:org.apache.jasper.JasperException: javax.servlet.ServletException: javax.servlet.jsp.JspException:
cannot find action mappings and formbeans
please send me the reply for this....


Pavan, please start a new topic for your problem by clicking . Also specify your problem more clearly i.e. when are you getting the error, where have you put the struts configuration files, also which version of struts you are using (it should be struts 1 but still its better if you mention it)...
 
pavan kumarsam
Greenhorn
Posts: 3
  • Number of slices to send:
    Optional 'thank-you' note:
hi this is pavan i want to downloading files using java script(or)php....if any one know please help me its urgent ...
in my site there are 50 pdf are there i want to put download option...user can able to download those files.............ok bye,..........
 
Ankit Garg
Sheriff
Posts: 9708
43
  • Number of slices to send:
    Optional 'thank-you' note:
Pavan as I told you before, start a new topic for your problem by clicking . Also this won't be an appropriate forum for your topic. If you want a javascript solution, ask the question in the HTML-JavaScript forum...
 
Greenhorn
Posts: 3
  • Number of slices to send:
    Optional 'thank-you' note:
Sorry for replying to a post which have been started years ago. I got the same problem with which this thread started but I found out why. I am demonstrating a sample login application to a class and I got this issue
javax.servlet.jsp.JspException: Cannot find ActionMappings or ActionFormBeans collection
at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:741)
at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:443)
at jsp_servlet._pages.__login._jsp__tag0(__login.java:130)
at jsp_servlet._pages.__login._jspService(__login.java:106)
....
I have googled a lot but couldnt find an explaination why this error occured. In my application I have two action classes - One action class just pulls some data from the database and forwards it to a display jsp page. Whenver I hit this .do url directly first I dont have any problem. Another Action class is LoginAction to which the input is a login jsp page. Whenever I access this page first after deploying the application I get this above error.

Solution:
Whenver this page is accessed first - by that time if the ActionServlet is not loaded - the configuration is not loaded and thats the reason why we get this error. To enforce loading of this servlet use <load-on-startup>1</load-on-startup> in web.xml - that will load the servlet during the deployment itself and it will find the required mappings when we access the jsp page.

I am sorry if this solution is already published anywhere on net - just that I couldnt find it on google.
 
Venkat Chadaram
Greenhorn
Posts: 3
  • Number of slices to send:
    Optional 'thank-you' note:

Venkat Chadaram wrote:Sorry for replying to a post which have been started years ago. I got the same problem with which this thread started but I found out why. I am demonstrating a sample login application to a class and I got this issue
javax.servlet.jsp.JspException: Cannot find ActionMappings or ActionFormBeans collection
at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:741)
at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:443)
at jsp_servlet._pages.__login._jsp__tag0(__login.java:130)
at jsp_servlet._pages.__login._jspService(__login.java:106)
....
I have googled a lot but couldnt find an explaination why this error occured. In my application I have two action classes - One action class just pulls some data from the database and forwards it to a display jsp page. Whenver I hit this .do url directly first I dont have any problem. Another Action class is LoginAction to which the input is a login jsp page. Whenever I access this page first after deploying the application I get this above error.

Solution:
Whenver this page is accessed first - by that time if the ActionServlet is not loaded - the configuration is not loaded and thats the reason why we get this error. To enforce loading of this servlet use <load-on-startup>1</load-on-startup> in web.xml - that will load the servlet before and it will find the required mappings when we access the jsp page.

I am sorry if this solution is already published anywhere on net - just that I couldnt find it on google.

 
Greenhorn
Posts: 1
  • Number of slices to send:
    Optional 'thank-you' note:
I was got same error & I solved it by adding proper jar file to my project.

You need to check jars required for struts.

commons-digester.jar
commons-beanutils.jar
struts.jar

this should be in your lib directory.
reply
    Bookmark Topic Watch Topic
  • New Topic
vceplus-200-125    | boson-200-125    | training-cissp    | actualtests-cissp    | techexams-cissp    | gratisexams-300-075    | pearsonitcertification-210-260    | examsboost-210-260    | examsforall-210-260    | dumps4free-210-260    | reddit-210-260    | cisexams-352-001    | itexamfox-352-001    | passguaranteed-352-001    | passeasily-352-001    | freeccnastudyguide-200-120    | gocertify-200-120    | passcerty-200-120    | certifyguide-70-980    | dumpscollection-70-980    | examcollection-70-534    | cbtnuggets-210-065    | examfiles-400-051    | passitdump-400-051    | pearsonitcertification-70-462    | anderseide-70-347    | thomas-70-533    | research-1V0-605    | topix-102-400    | certdepot-EX200    | pearsonit-640-916    | itproguru-70-533    | reddit-100-105    | channel9-70-346    | anderseide-70-346    | theiia-IIA-CIA-PART3    | certificationHP-hp0-s41    | pearsonitcertification-640-916    | anderMicrosoft-70-534    | cathMicrosoft-70-462    | examcollection-cca-500    | techexams-gcih    | mslearn-70-346    | measureup-70-486    | pass4sure-hp0-s41    | iiba-640-916    | itsecurity-sscp    | cbtnuggets-300-320    | blogged-70-486    | pass4sure-IIA-CIA-PART1    | cbtnuggets-100-101    | developerhandbook-70-486    | lpicisco-101    | mylearn-1V0-605    | tomsitpro-cism    | gnosis-101    | channel9Mic-70-534    | ipass-IIA-CIA-PART1    | forcerts-70-417    | tests-sy0-401    | ipasstheciaexam-IIA-CIA-PART3    | mostcisco-300-135    | buildazure-70-533    | cloudera-cca-500    | pdf4cert-2v0-621    | f5cisco-101    | gocertify-1z0-062    | quora-640-916    | micrcosoft-70-480    | brain2pass-70-417    | examcompass-sy0-401    | global-EX200    | iassc-ICGB    | vceplus-300-115    | quizlet-810-403    | cbtnuggets-70-697    | educationOracle-1Z0-434    | channel9-70-534    | officialcerts-400-051    | examsboost-IIA-CIA-PART1    | networktut-300-135    | teststarter-300-206    | pluralsight-70-486    | coding-70-486    | freeccna-100-101    | digitaltut-300-101    | iiba-CBAP    | virtuallymikebrown-640-916    | isaca-cism    | whizlabs-pmp    | techexams-70-980    | ciscopress-300-115    | techtarget-cism    | pearsonitcertification-300-070    | testking-2v0-621    | isacaNew-cism    | simplilearn-pmi-rmp    | simplilearn-pmp    | educationOracle-1z0-809    | education-1z0-809    | teachertube-1Z0-434    | villanovau-CBAP    | quora-300-206    | certifyguide-300-208    | cbtnuggets-100-105    | flydumps-70-417    | gratisexams-1V0-605    | ituonline-1z0-062    | techexams-cas-002    | simplilearn-70-534    | pluralsight-70-697    | theiia-IIA-CIA-PART1    | itexamtips-400-051    | pearsonitcertification-EX200    | pluralsight-70-480    | learn-hp0-s42    | giac-gpen    | mindhub-102-400    | coursesmsu-CBAP    | examsforall-2v0-621    | developerhandbook-70-487    | root-EX200    | coderanch-1z0-809    | getfreedumps-1z0-062    | comptia-cas-002    | quora-1z0-809    | boson-300-135    | killtest-2v0-621    | learncia-IIA-CIA-PART3    | computer-gcih    | universitycloudera-cca-500    | itexamrun-70-410    | certificationHPv2-hp0-s41    | certskills-100-105    | skipitnow-70-417    | gocertify-sy0-401    | prep4sure-70-417    | simplilearn-cisa    |
http://www.pmsas.pr.gov.br/wp-content/    | http://www.pmsas.pr.gov.br/wp-content/    |