Error Creating SessionFactory java.lang.SecurityException: class"org.apache.commons.collections.SequencedHashMap"'异常的解决方案
本人用 MyEclipse 6.0.0 开发 Struts + Hibernate应用的时候,单独测试Hibernate的类没有问题,但是当Web层和Struts整合后,就抛出如下异常:
%%%%Error Creating SessionFactory %%%%
java.lang.SecurityException:
class"org.apache.commons.collections.SequencedHashMap"'s signer
informationdoes not match signer information of other classes in the
same package
原因是myeclipse 6.0的jar包问题。这个是myeclipse没有做好严格的测试。
网上好多人说是commons-collectionsXXX.jar的问题。我也不知道。我是把所有的myeclipse生成的jar都remove buildpath 了。
我又自己添加的jar。就OK!!!!