Note that there are some explanatory texts on larger screens.

plurals
  1. POjava.lang.SecurityException in Struts2 with display tag
    primarykey
    data
    text
    <p>HelloWorld is my ActionSupport class and the pop method is loading the values to countryList object of Country class type.</p> <pre><code>package example; import com.opensymphony.xwork2.ActionSupport; import java.util.ArrayList; public class HelloWorld extends ActionSupport { ArrayList&lt;Country&gt; countryList = new ArrayList&lt;Country&gt;(); public ArrayList&lt;Country&gt; getCountryList() { return countryList; } public void setCountryList(ArrayList&lt;Country&gt; countryList) { this.countryList = countryList; } public String pop() { countryList.add(new Country("IND", "INDIA")); countryList.add(new Country("PAK", "PAKISTAN")); System.out.println("countryList " + countryList); return SUCCESS; } @Override public String execute() throws Exception { return SUCCESS; } } </code></pre> <p>The <strong>struts.xml</strong> is </p> <pre><code>&lt;struts&gt; &lt;package name="example" namespace="/example" extends="struts-default"&gt; &lt;action name="HelloWorld" method="pop" class="example.HelloWorld"&gt; &lt;result name="success"&gt;/example/HelloWorld.jsp&lt;/result&gt; &lt;/action&gt; &lt;/package&gt; &lt;/struts&gt; </code></pre> <p>and <strong>jsp page</strong> is:</p> <pre><code>&lt;%@taglib uri="http://displaytag.sf.net" prefix="display" %&gt; &lt;%@ taglib prefix="s" uri="/struts-tags" %&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;&lt;/title&gt; &lt;/head&gt; &lt;body&gt; HAI &lt;display:table name="${countryList}" class="Country" uid="row" pagesize="20" sort="list" requestURI="/example/HelloWorld" &gt; &lt;display:column property="id" title="ID" /&gt; &lt;display:column property="name" /&gt; &lt;/display:table&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>When i run this application,it shows the following error :</p> <p><strong>description</strong> The server encountered an internal error () that prevented it from fulfilling this request.</p> <p><strong>exception</strong> javax.servlet.ServletException: java.lang.SecurityException: class "org.apache.commons.collections.FastHashMap"'s signer information does not match signer information of other classes in the same package</p> <p><strong>root cause</strong> java.lang.SecurityException: class "org.apache.commons.collections.FastHashMap"'s signer information does not match signer information of other classes in the same packa</p> <p>Please solve this.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload