spring配置hibernate错误 急100分在线等···
是在启动tomcat时抛的错误 错误信息:
action: null
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.SecurityException: class "org.apache.commons.collections.LRUMap"'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.LRUMap"'s signer information does not match signer information of other classes in the same package
spring 配置:
<bean id="sessionFactory"
class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="configLocation"
value="classpath:hibernate.cfg.xml">
</property>
</bean>
hibernate 配置:
<session-factory>
<property name="connection.username">root</property>
<property name="connection.url">
jdbc:mysql://localhost:3306/webexe
</property>
<property name="dialect">
org.hibernate.dialect.MySQLDialect
</property>
<property name="myeclipse.connection.profile">sql</property>
<property name="connection.driver_class">
com.mysql.jdbc.Driver
</property>
<mapping resource="_config/education/hbm/EDepArtment.hbm.xml" />
<mapping resource="_config/education/hbm/EDepEmp.hbm.xml" />
<mapping resource="_config/education/hbm/EDepJob.hbm.xml" />
<mapping resource="_config/education/hbm/EDepLoginfo.hbm.xml" />
<mapping resource="_config/education/hbm/EExamBasic.hbm.xml" />
<mapping resource="_config/education/hbm/EExamSubject.hbm.xml" />
<mapping resource="_config/education/hbm/ENews.hbm.xml" />
<mapping resource="_config/education/hbm/ESchool.hbm.xml" />
<mapping resource="_config/education/hbm/ESchoolClassinfo.hbm.xml" />
<mapping resource="_config/education/hbm/ESchoolClasskind.hbm.xml" />
<mapping resource="_config/education/hbm/ESchoolGrade.hbm.xml" />
<mapping resource="_config/education/hbm/ESchoolImport.hbm.xml" />
<mapping resource="_config/education/hbm/ESchoolKind.hbm.xml" />
<mapping resource="_config/education/hbm/EStudentDefaulter.hbm.xml" />
<mapping resource="_config/education/hbm/EStudentEvent.hbm.xml" />
<mapping resource="_config/education/hbm/EStudentHonor.hbm.xml" />
<mapping resource="_config/education/hbm/EStudentInfo.hbm.xml" />
<mapping resource="_config/education/hbm/EStudentKind.hbm.xml" />
<mapping resource="_config/education/hbm/EStudentState.hbm.xml" />
<mapping resource="_config/education/hbm/EStuMark.hbm.xml" />
<mapping resource="_config/education/hbm/ETeach.hbm.xml" />
<mapping resource="_config/education/hbm/ETeacherAptitude.hbm.xml" />
<mapping resource="_config/education/hbm/ETeacherBasic.hbm.xml" />
<mapping resource="_config/education/hbm/ETeacherFile.hbm.xml" />
<mapping resource="_config/education/hbm/ETeacherGlory.hbm.xml" />
<mapping resource="_config/education/hbm/ETeacherState.hbm.xml" />
</session-factory>
里面的路径是没问题的
望高手指点