关闭

java.lang.SecurityException

标签: myeclipseexceptionstrutsnestedinitializationclass
1514人阅读 评论(0) 收藏 举报
分类:
我在用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添加到工程中即可。
0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:9527次
    • 积分:103
    • 等级:
    • 排名:千里之外
    • 原创:0篇
    • 转载:8篇
    • 译文:0篇
    • 评论:1条
    文章分类
    文章存档
    最新评论