jQuery in Action, 2nd edition*
The moose likes Struts and the fly likes Error for the org.apache.struts.actions.ForwardAction Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Error for the org.apache.struts.actions.ForwardAction" Watch "Error for the org.apache.struts.actions.ForwardAction" New topic
Author

Error for the org.apache.struts.actions.ForwardAction

avishek mukherjee
Greenhorn

Joined: Feb 25, 2008
Posts: 7
Hi All,
I am getting the following error for the my org.apache.struts.actions.ForwardAction

Error:
=====
[ERROR] 21:34java.lang.NoSuchMethodError: org.apache.struts.action.ActionForward.setContextRelative(Z)V
at org.apache.struts.actions.ForwardAction.execute(ForwardAction.java:151)
at org.apache.struts.chain.commands.servlet.ExecuteAction.execute(ExecuteAction.java:58)
at org.apache.struts.chain.commands.AbstractExecuteAction.execute(AbstractExecuteAction.java:67)
at org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)
at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
at org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:305)
at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
at org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:627)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:873)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Unknown Source)

I have the action mapping as follows in struts config file.


I have the following jars in the WEB-INF/lib folder
commons-beanutils-1.8.0.jar
commons-chain-1.2.jar
commons-digester-1.8.jar
commons-logging-1.0.4.jar
commons-validator-1.3.1.jar
log4j.jar
oro-2.0.8.jar
servlet-api.jar
struts-core-1.3.10.jar
struts-taglib-1.3.10.jar
struts-tiles-1.3.10.jar
struts.jar

Could somebody help me what was going wrong here ?
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

You have an older version of Struts deployed along with Struts 1.3--most likely in that "struts.jar" file. setContextRelative was removed before 1.3.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error for the org.apache.struts.actions.ForwardAction
 
Similar Threads
Struts version problem
java.lang.IllegalArgumentException: The path of an ForwardConfig cannot be null
Unable to forward using tiles
Getting error while running BeerStruts example
Problem running a simple webapplication in struts