java.lang.SecurityException

我在用MyEclipse6.0做Struts1.2、Hibernate3.1、Spring2.0的整合开发过程中,启动Tomcat6.0时遇到了如下异常:
 
Context initialization failed
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
 
严重: action: null
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
 

解决办法如下
MyEclipse6.0支持Struts1.2的过程中自带了commons-beanutils.jar,把这jar移除工程,到apache官方网站上下载commons-beanutils-1.7.0.zip,把里面的commons-beanutils.jar添加到工程中即可。
阅读更多
个人分类: 错误处理
下一篇DispatchMapping[/user] does not define a handler property
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

关闭
关闭