严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.SecurityException: class "org.apache.commons.collections.SequencedHashMap"'s signer information does not match signer information of other classes in the same package
Caused by: java.lang.SecurityException: class "org.apache.commons.collections.SequencedHashMap"'s signer information does not match signer information of other classes in the same package-------------------------------------------------------public class Admin implements java.io.Serializable {
 private int adminid;
   private String name;
   private String password;
   private Set courses=new HashSet();
   private Set Teachers=new HashSet();
   private Set Students=new HashSet();
...

解决方案 »

  1.   

    这个问题其实很简单,仔细研究一下 Hibernate3.X 与Struts1.3的LIB 会发现他们都存在一个共同的包:org.apache.commons.beanutils 此包存在与Struts1.3的commons-beanutils-1.7.0.jar中 存在于 Hibernante3.X的commons-collections-2.1.1.jar中。
    很容易想象,一个工程入两个一样的包会有什么结果,不妨自己测试一下,是不是同样的错误。解决办法就更简单了
    首先到C:\Program Files\MyEclipse 6.0\myeclipse\eclipse\plugins\
    com.genuitec.eclipse.cross.
    easystruts.eclipse_6.0.0.
    zmyeclipse60020070820\lib 中COPY
    commons-beanutils-1.6.1.jar 到
    C:\Program Files\MyEclipse 6.0\myeclipse\eclipse\plugins\com.genuitec.
    eclipse.cross.easystruts.eclipse_6.0.0.
    zmyeclipse60020070820\data\1.3\lib 中
     然后呢,MyEclipces6.0GA 还是只会加载他的1.7而
    不会加载我们新放进去的1.6。
    所以把新放进去的文件更名为commons-beanutils-1.7.0.jar重新启动Myclipse 删除先前部署的工程从新部署进去,大公告成!
      

  2.   

    哦,不好意思,第一行包名错了应该是 org.apache.commons.collections