What steps will reproduce the problem?
*struts file*
<package name="emisionLight" extends="json-default" namespace="/emision/light">
<result-types>
<result-type name="json" class="com.googlecode.jsonplugin.JSONResult" />
</result-types>
<action name="AjaxJson" class="emisionVidaLightAction" method="testJSON">
<result type="json" />
</action>
</package>
*action class*
public String testJSON(){
setJsonString("Hello World");
return SUCCESS;
}
Struts version 2.0.11
Jsonplugin version 0.34
What is the expected output? What do you see instead?
java.lang.NoSuchMethodError:
com.opensymphony.xwork2.ActionContext.get(Ljava/lang/String;)Ljava/lang/Object;
at com.googlecode.jsonplugin.JSONResult.execute(JSONResult.java:159)
at com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:348)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:253)
at com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:221)
at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86)
at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)
at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)
at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)
etc....
Original issue reported on code.google.com by anyulled on 9 Dec 2010 at 9:27
Original issue reported on code.google.com by
anyulled
on 9 Dec 2010 at 9:27