[Tomcat, HTTPD, Servlets & JSP] - Cannot find ActionMappings or ActionFormBeans collection
by divya317
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
18Â years, 9Â months
[JBoss Getting Started Documentation] - Re: error in JMS and Message-Driven Beans
by benyw
and then i create queue/MyQueue dynamically
using the JMX Console. YES ,i can go to the new page, but
19:39:10,607 INFO [testTopic] Bound to JNDI name: topic/testTopic
19:39:10,627 INFO [securedTopic] Bound to JNDI name: topic/securedTopic
19:39:10,637 INFO [testDurableTopic] Bound to JNDI name: topic/testDurableTopic
19:39:10,657 INFO [testQueue] Bound to JNDI name: queue/testQueue
19:39:10,667 INFO [A] Bound to JNDI name: queue/A
19:39:10,677 INFO [B] Bound to JNDI name: queue/B
19:39:10,687 INFO [C] Bound to JNDI name: queue/C
19:39:10,697 INFO [D] Bound to JNDI name: queue/D
19:39:10,707 INFO [ex] Bound to JNDI name: queue/ex
19:40:34,257 WARN [ServiceController] Ignoring request to stop nonexistent serv
ice: jboss.mq.destination:service=Topic,name=queue/MyQueue
19:40:34,257 ERROR [[HtmlAdaptor]] Servlet.service() for servlet HtmlAdaptor thr
ew exception
meanwhile i send the email to serverand find 0 in QueueDepth!!!
so i have no idear!!!
help!!!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096249#4096249
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096249
18Â years, 9Â months