File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss/WildFly and the fly likes Struts 1.2 not working properly in jboss-5.0.0.CR1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Struts 1.2 not working properly in jboss-5.0.0.CR1" Watch "Struts 1.2 not working properly in jboss-5.0.0.CR1" New topic
Author

Struts 1.2 not working properly in jboss-5.0.0.CR1

Ganesh Sugumaran
Greenhorn

Joined: Jul 08, 2008
Posts: 10
Hi,

Im doing project Struts1.2 and App-Server: jboss-5.0.0.CR1

Im getting error when i give below URL
"http://localhost:8080/myprj/index.jsp"
Error:
javax.servlet.jsp.JspException: Cannot find ActionMappings or ActionFormBeans collection

If i give URL like:
"http://localhost:8080/myprj/index.do" -- actually its wrong
then its giving error on page
and Finally if enter Previous one i.e.,
"http://localhost:8080/myprj/index.jsp"

Then its working and its not throwing any exception.I dont know how now only its working !!!

In my Jsp i specified
<html:form action="/indexAction">
and in Struts-config.xml

<action
attribute="index"
name="index"
parameter="userOption"
path="/indexAction"
scope="request"
type="com.actions.indexAction">
<forward name="success" path="/main.jsp" />
<forward name="failure" path="/index.jsp" />
</action>

If i do the same in 'jboss-4.0.3' then its working in the first attempt.

I want to run in 'jboss-5.0.0.CR1'.

how can i solve this...and how can i run like 'jboss-4.0.3'

Thanks
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10288
    
168

Please post the entire exception stacktrace


[My Blog] [JavaRanch Journal]
Ganesh Sugumaran
Greenhorn

Joined: Jul 08, 2008
Posts: 10
type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: javax.servlet.jsp.JspException: Cannot find ActionMappings or ActionFormBeans collection
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:852)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:781)
org.apache.jsp.index_jsp._jspService(index_jsp.java:437)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)


root cause

javax.servlet.jsp.JspException: Cannot find ActionMappings or ActionFormBeans collection
org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:741)
org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:443)
org.apache.jsp.index_jsp._jspx_meth_html_005fform_005f0(index_jsp.java:454)
org.apache.jsp.index_jsp._jspService(index_jsp.java:417)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)


note The full stack trace of the root cause is available in the JBoss Web/2.1.1.CR3 logs.
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10288
    
168

"Ganesh PS"

Please check your private message for a message from JavaRanch.
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10288
    
168

Ganesh,

The exception that you posted is the one you see in the browser. Can you post the logs from the server.log file when you access that page in the browser? Those logs might give more information.

P.S: While posting logs, remember to wrap it in a code block using the "Code" button in the message editor window.
Ganesh Sugumaran
Greenhorn

Joined: Jul 08, 2008
Posts: 10
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts 1.2 not working properly in jboss-5.0.0.CR1