File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Cannot find ActionMappings or ActionFormBeans collection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Cannot find ActionMappings or ActionFormBeans collection" Watch "Cannot find ActionMappings or ActionFormBeans collection" New topic

Cannot find ActionMappings or ActionFormBeans collection

as chhipa

Joined: Sep 04, 2006
Posts: 26
Hi everybody
I am getting follwing exception when open the index.jsp page

javax.servlet.ServletException: Cannot find ActionMappings or ActionFormBeans collection
at org.apache.jasper.runtime.PageContextImpl.handlePageException(
at org.apache.jsp.index_jsp._jspService(
at org.apache.jasper.runtime.HttpJspBase.service(

Tomcat version---------> jakarta-tomcat-4.1.31
Java Version ---------> j2sdk1.4.2

Follwing is index.jsp page

<%@ page language="java" %>
prefix="html" %>
<html:form action="lookup">
<table width="45%" border="0">
<td><html:text property="symbol" /></td>
<td colspan="2" align="center"><html:submit /></td>

Follwing is web.xml

<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"


<display-name>Tomcat Examples</display-name>
Tomcat Example servlets and JSP pages.



Folwing is struts-config.xml

<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE struts-config
PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"
<form-bean name="lookupForm" type="ch03.LookupForm" />
<action path="/lookup" type="ch03.LookupAction" name="lookupForm" >
<forward name="success" path="/quote.jsp" />
<forward name="failure" path="/index.jsp" />
Jar Files included in the WEB-INF/lib folder
Brent Sterling
Ranch Hand

Joined: Feb 08, 2006
Posts: 948
Here is a handy page that I ran across recently:

A quote from that page related to this error:

Another 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.

Try adding an entry like this just before your closing servlet tag:

- Brent
I agree. Here's the link:
subject: Cannot find ActionMappings or ActionFormBeans collection
It's not a secret anymore!