Hello, 

I am working on an Struts application> I am trying to run it on JBOSS but when 
I run it .. It shows me an error : 

javax.servlet.ServletException: Cannot find ActionMappings or ActionFormBeans 
collection 
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825)
 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)
 
org.apache.jsp.Customer_jsp._jspService(Customer_jsp.java:108) 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) 
javax.servlet.http.HttpServlet.service(HttpServlet.java:810) 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324) 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) 
javax.servlet.http.HttpServlet.service(HttpServlet.java:810) 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)
 

But when I run the same on TOMCAT it willl work fine.... 

Through net search I found that the must be some strutst jar file were missing 
.therefore this error is appearing ... now, My question is how to add those 
file on my LIB folder... 

My struts Congif is here : 

struts-config> 
<data-sources /> 
<form-beans> 

<form-bean name="CustomerActionForm" 
type="com.CustomerWeb.CustomerActionForm"></form-bean> 

</form-beans> 
<global-exceptions /> 
<global-forwards> 

</global-forwards> 
<action-mappings> 





</action-mappings> 
<message-resources parameter="com.CustomerWeb.ApplicationResources" /> 
</struts-config> 

and my Web.xml 

<?xml version="1.0" encoding="UTF-8"?> 
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; version="2.4" 
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee 
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";> 

<servlet-name>action</servlet-name> 
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class> 
<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>3</param-value> 
</init-param> 
<init-param> 
<param-name>detail</param-name> 
<param-value>3</param-value> 
</init-param> 
<load-on-startup>0</load-on-startup> 

<servlet-mapping> 
<servlet-name>action</servlet-name> 
<url-pattern>*.do</url-pattern> 
</servlet-mapping> 
<welcome-file-list> 
<welcome-file>Customer.jsp</welcome-file> 
</welcome-file-list> 



</web-app> 


I add struts compatibility throught Myeclipse >> Struts capability >> struts 
1.2 

Thanks 

Divya

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096252#4096252

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096252
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to