[ https://issues.apache.org/jira/browse/WW-4911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16341110#comment-16341110 ]
Yasser Zamani commented on WW-4911: ----------------------------------- No javascript makes no matter. Sorry I don't want to take your time but now, it's more strange (and then interesting for me ;) ) and need your help to finish it. Could you try {code:java} import com.opensymphony.xwork2.FileManager; import com.opensymphony.xwork2.FileManagerFactory; import com.opensymphony.xwork2.inject.Inject; import com.opensymphony.xwork2.util.ClassLoaderUtil; import org.apache.commons.io.IOUtils; private FileManager fileManager; @Inject public void setFileManagerFactory(FileManagerFactory fileManagerFactory) { this.fileManager = fileManagerFactory.getFileManager(); } public String execute() throws Exception { Iterator<URL> pluginsXmls = ClassLoaderUtil.getResources("struts-plugin.xml", this.getClass(), false); while (pluginsXmls.hasNext()) { URL pluginXml = pluginsXmls.next(); if (pluginXml.toString().contains("struts2-json-plugin")) { InputStream jsonIS = fileManager.loadFile(pluginXml); System.out.println("COPY ME BEGIN\r\n"+IOUtils.toString(jsonIS, "UTF-8")+"\r\nCOPY ME END"); jsonIS.close(); } } {code} in your action and paste what are between {{COPY ME BEGIN}} and {{COPY ME END}} , please? (It seems at your side struts json plugin's xml is old one but .classes are new one!) > JSONResult exception in struts2-json-plugin-2.5.14.1.jar > --------------------------------------------------------- > > Key: WW-4911 > URL: https://issues.apache.org/jira/browse/WW-4911 > Project: Struts 2 > Issue Type: Bug > Components: Plugin - JSON > Affects Versions: 2.5.14.1 > Environment: Java, JSON, Hibernate, Struts2 > Reporter: nick > Priority: Critical > Labels: test > Fix For: 2.5.15 > > Attachments: server.log.json14 > > Original Estimate: 24h > Remaining Estimate: 24h > > Error log: > 12:09:16,381 ERROR [stderr] (http-/127.0.0.1:8080-4) ERROR > DefaultActionInvocation There was an exception while instantiating the result > of type org.apache.struts2.json.JSONResult > 12:09:16,397 ERROR [stderr] (http-/127.0.0.1:8080-4) > com.opensymphony.xwork2.inject.DependencyException: > com.opensymphony.xwork2.inject.ContainerImpl$MissingDependencyException: No > mapping found for dependency [type=org.apache.struts2.json.JSONUtil, > name='default'] in public void > org.apache.struts2.json.JSONResult.setJsonUtil(org.apache.struts2.json.JSONUtil). -- This message was sent by Atlassian JIRA (v7.6.3#76005)