照着mldn的智囊团做的,配置好之后启动tomcat提示org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/classes/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
大侠们给看看怎么解决啊~~

解决方案 »

  1.   

    只看错误提示的话,绝对是sessionFatory没有配好。最好把配置文件都贴出来!
      

  2.   

    spring与hibernate结合时sessionFactory问题
    可以参看一下配法
     <bean id="dataSource"
              class="org.apache.commons.dbcp.BasicDataSource">
            <property name="driverClassName">
                <value>${driver}</value>
            </property>
            <property name="url">
                <value>${url}</value>
            </property>
            <property name="username">
                <value>${userid}</value>
            </property>
            <property name="password">
                <value>${userpwd}</value>
            </property>
        </bean>    <bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean"
              destroy-method="close">
            <property name="dataSource" ref="dataSource"/>
            <property name="mappingResources">
                <list>
                    <value>cn/fql/template/web/hibernate/country_city.hbm.xml</value>
                </list>
            </property>
            <property name="hibernateProperties">
                <props>
                    <prop key="hibernate.dialect">
                        org.hibernate.dialect.MySQLDialect
                    </prop>
                </props>
            </property>
        </bean>    <bean id="countyCityDao" class="cn.fql.template.web.hibernate.dao.impl.CountryCityDaoImpl">
            <property name="sessionFactory" ref="sessionFactory"/>
        </bean>