PDA

View Full Version : [Bug??] Struts 1.1 is not supported by SWF Preview 3


slhynju
May 24th, 2005, 07:13 AM
[Description]
Exception page appears when using Struts 1.1 and SWF Preview 3.

[Environment]
Struts 1.1 + SWF Preview 3 + Spring 1.2 + Hibernate 3.0.4.

[Exception stack]
java.lang.NoSuchMethodError: org.apache.struts.action.ActionForward.<init>(Lorg/apache/struts/action/ActionForward;)V
at org.springframework.web.flow.struts.FlowAction.toA ctionForward(FlowAction.java:224)
at org.springframework.web.flow.struts.FlowAction.doE xecuteAction(FlowAction.java:143)

[Related source code]
FlowAction, line 222-227:

ActionForward forward = mapping.findForward(viewDescriptor.getViewName());
if (forward != null) {
forward = new ActionForward(forward);
} else {
forward = new ActionForward(viewDescriptor.getViewName());
}


The constructor ActionForward(ActionForward copyMe) is since struts 1.2.1 and is unavailable in Struts 1.1 according to Struts API.

Will Struts 1.1 be supported by SWF?

robh
May 24th, 2005, 08:17 AM
It could be that you have some old JARs on your classpath - these kind of problems often point to that.

Rob

klr8
May 24th, 2005, 12:22 PM
This was a very last minute fix that we made to the FlowAction. I'll look into it.

Thanks for spotting it!

Erwin