问题描述
- struts2 DefaultDispatcherErrorHandler -
-
本人的eclipse以前好好的,我不知道碰那地方了,strus2配置完一经过action就这样,跪求高手指点
[ERROR] 2016-05-20 23:09:31.750 [http-apr-8080-exec-4] DefaultDispatcherErrorHandler - Exception occurred during processing request: com.beihang.strusts2.app.TransformAction.execute()
java.lang.NoSuchMethodException: com.beihang.strusts2.app.TransformAction.execute()
at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1247) ~[ognl-3.0.13.jar:?]
at ognl.ObjectMethodAccessor.callMethod(ObjectMethodAccessor.java:68) ~[ognl-3.0.13.jar:?]
at com.opensymphony.xwork2.ognl.accessor.XWorkMethodAccessor.callMethodWithDebugInfo(XWorkMethodAccessor.java:117) ~[xwork-core-2.3.28.jar:2.3.28]
at com.opensymphony.xwork2.ognl.accessor.XWorkMethodAccessor.callMethod(XWorkMethodAccessor.java:108) ~[xwork-core-2.3.28.jar:2.3.28]
at ognl.OgnlRuntime.callMethod(OgnlRuntime.java:1370) ~[ognl-3.0.13.jar:?]
at ognl.ASTMethod.getValueBody(ASTMethod.java:90) ~[ognl-3.0.13.jar:?]
at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:212) ~[ognl-3.0.13.jar:?]
at ognl.SimpleNode.getValue(SimpleNode.java:258) ~[ognl-3.0.13.jar:?]
at ognl.Ognl.getValue(Ognl.java:494) ~[ognl-3.0.13.jar:?]
at ognl.Ognl.getValue(Ognl.java:458) ~[ognl-3.0.13.jar:?]
at com.opensymphony.xwork2.ognl.OgnlUtil$2.execute(OgnlUtil.java:315) ~[xwork-core-2.3.28.jar:2.3.28]
at com.opensymphony.xwork2.ognl.OgnlUtil.compileAndExecute(OgnlUtil.java:346) ~[xwork-core-2.3.28.jar:2.3.28]
at com.opensymphony.xwork2.ognl.OgnlUtil.getValue(OgnlUtil.java:313) ~[xwork-core-2.3.28.jar:2.3.28]
at com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:430) ~[xwork-core-2.3.28.jar:2.3.28]
at com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:290) ~[xwork-core-2.3.28.jar:2.3.28]
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:251) ~[xwork-core-2.3.28.jar:2.3.28]
解决方案
jar包我都配置好了
解决方案二:
struts2 redirect post
解决方案三:
你的struts包是新版本的还是旧版本的。那个ognl不是有吗,你导入会不会有冲突。
java.lang.NoSuchMethodException: com.beihang.strusts2.app.TransformAction.execute()
这个说没有这个方法异常,你查查看是什么原因啊
时间: 2024-10-31 09:37:48