permaculture playing cards*
The moose likes Struts and the fly likes  Cannot find ActionMappings or ActionFormBeans collect Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark " Cannot find ActionMappings or ActionFormBeans collect" Watch " Cannot find ActionMappings or ActionFormBeans collect" New topic
Author

Cannot find ActionMappings or ActionFormBeans collect

jack zhang.China
Greenhorn

Joined: Mar 15, 2006
Posts: 5
hi ,Guys:

this problem :javax.servlet.ServletException: Cannot find ActionMappings or ActionFormBeans collection
happend in my tomcat,and program. my web.xml is bellow:
===============
<?xml version="1.0" encoding="gb2312"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">

<web-app>
<display-name>online service</display-name>

<!--Standard Action Servlet Configuration (with debugging)-->
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>application</param-name>
<param-value>ApplicationResources</param-value>
</init-param>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
<init-param>
<param-name>debug</param-name>
<param-value>2</param-value>
</init-param>
<init-param>
<param-name>detail</param-name>
<param-value>2</param-value>
</init-param>
<load-on-startup>2</load-on-startup>
</servlet>

<!-- Standard Action Servlet Mapping -->
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
<!-- The Usual Welcome File List -->
<welcome-file-list>
<welcome-file>/statement/find.jsp</welcome-file>
</welcome-file-list>


<!-- tag libs -->
<taglib>
<taglib-uri>/struts/html</taglib-uri>
<taglib-location>/WEB-INF/tld/struts-html.tld</taglib-location>
</taglib>

<taglib>
<taglib-uri>/tld/struts/bean</taglib-uri>
<taglib-location>/WEB-INF/tld/struts-bean.tld</taglib-location>
</taglib>

<taglib>
<taglib-uri>/tld/struts/logic</taglib-uri>
<taglib-location>/WEB-INF/tld/struts-logic.tld</taglib-location>
</taglib>

<taglib>
<taglib-uri>/tld/struts/nested</taglib-uri>
<taglib-location>/WEB-INF/tld/struts-nested.tld</taglib-location>
</taglib>

<taglib>
<taglib-uri>struts/template</taglib-uri>
<taglib-location>/WEB-INF/tld/struts-template.tld</taglib-location>
</taglib>

<taglib>
<taglib-uri>/tld/struts/tiles</taglib-uri>
<taglib-location>/WEB-INF/tld/struts-tiles.tld</taglib-location>
</taglib>

<taglib>
<taglib-uri>/tld/struts/jstl</taglib-uri>
<taglib-location>/WEB-INF/tld/c.tld</taglib-location>
</taglib>



</web-app>
===============
the struts-config.xml is bellow:
<!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="userInfo"
type="com.jl165.online.servicebyself.UsersInfoForm"
/>
<form-bean
name="user"
type="com.jl165.online.servicebyself.User"
/>
<form-bean
name="phoneInfo"
type="com.jl165.online.selectPhoneNum.PhoneInfo"
/>
</form-beans>
<action-mappings>
<action
path="/find.do"
name="userInfo"
type="com.jl165.online.servicebyself.FindAction"
validate="false">
<forward name="showBusiness" path="/statement/show.jsp">
/action>
<action
path="/modify.do"
name="userInfo"
type="com.jl165.online.servicebyself.ModifyAction"
validate="false">
<forward name="modifyBusiness" path="/statement/modify.jsp">
/action>
<action
path="/selectPhoneNums.do"
name="phoneInfo"
type="com.jl165.online.selectPhoneNum.SelectPhoneNumAction"
validate="false">
<forward name="selectPhone" path="/statement/select.jsp">
/action>
<action
path="/setPhoneNums.do"
name="phoneInfo"
type="com.jl165.online.selectPhoneNum.SetPhoneNumAction"
validate="false">
<forward name="setPhone" path="/statement/set.jsp">
/action>
</action-mappings>

</struts-config>



plz give me a help!!
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
The answer is in this thread.


Merrill
Consultant, Sima Solutions
 
 
subject: Cannot find ActionMappings or ActionFormBeans collect
 
Similar Threads
authentication in jboss
need help in web.xml
Servlet action is not available
Error in Struts Application(Cannot find message resources under key org.apache.strut)
form page cannot find ActionMappings or ActionFormbeans