PDA

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



slhynju
May 24th, 2005, 06: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&#40;viewDescriptor.getViewName&#40;&#41;&#41;;
if &#40;forward != null&#41; &#123;
forward = new ActionForward&#40;forward&#41;;
&#125; else &#123;
forward = new ActionForward&#40;viewDescriptor.getViewName&#40;&#41;&#41;;
&#125;


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, 07: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, 11:22 AM
This was a very last minute fix that we made to the FlowAction. I'll look into it.

Thanks for spotting it!

Erwin