• 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
  • Ron McLeod
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Rob Spoor
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Carey Brown
Bartenders:

Cannot find ActionMappings or ActionFormBeans collect

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!!
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The answer is in this thread.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic