严重: 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 org.hibernate.MappingException: 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: org.hibernate.MappingException: java.lang.SecurityException: class "org.apache.commons.collections.SequencedHashMap"'s signer information does not match signer information of other classes in the same package自己研究了好久都没有弄明白 

解决方案 »

  1.   

    sessionFactory不能初始化.
    org.apache.commons.collections.SequencedHashMap不能嵌套使用.
      

  2.   

    Mapping出问题了?贴配置文件出来看看?
      

  3.   

    applicationContext.xml<?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.springframework.org/schema/beans 
    http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
    <bean id="dataSource"
    class="org.springframework.jdbc.datasource.DriverManagerDataSource">
    <property name="driverClassName"
    value="com.mysql.jdbc.Driver">
    </property>
    <property name="url"
    value="jdbc:mysql://localhost:3306/bookstore">
    </property>
    <property name="username" value="root"></property>
    <property name="password" value="4102701"></property>
    </bean>
    <bean id="sessionFactory"
    class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
    <property name="dataSource">
    <ref bean="dataSource" />
    </property>
    <property name="hibernateProperties">
    <props>
    <prop key="hibernate.dialect">
    org.hibernate.dialect.MySQLDialect
    </prop>
    </props>
    </property>
    <property name="mappingResources">
    <list>
    <value>springhibernate/vo/User.hbm.xml</value>
    </list>
    </property>
    </bean>
    <bean name="/use" class="com.wenwei.struts.action.UseAction"></bean>
    </beans>
      

  4.   

    struts-config.xml<?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "http://struts.apache.org/dtds/struts-config_1_2.dtd"><struts-config>
    <data-sources />
    <form-beans >
        <form-bean name="useForm" type="com.wenwei.struts.form.UseForm" /> </form-beans> <global-exceptions />
    <global-forwards />
    <action-mappings >
        <action
          attribute="useForm"
          input="/index.jsp"
          name="useForm"
          path="/use"
          scope="request"
          /> </action-mappings> <controller>
    <set-property property="processorClass"
    value="org.springframework.web.struts.DelegatingRequestProcessor" />
    </controller>
    <message-resources parameter="com.wenwei.struts.ApplicationResources" />
    <plug-in className="org.springframework.web.struts.ContextLoaderPlugIn">
    <set-property property="contextConfigLocation"
    value="/WEB-INF/applicationContext.xml" />
    </plug-in>
    </struts-config>
      

  5.   

    问题我已经又解决的办法了
    我用myeclipse 6.0 做就有问题
    用myeclipse5.5 就没有问题
    我用myeclipse5.5(/WEB-INF/lib) 中的jar包 替换了myeclipse 6.0(/WEB-INF/lib)中的就没有问题了
      

  6.   

    我也遇到同样问题,不知道是不是,myeclipe的问题
      

  7.   

    10:18:58,324 ERROR [/SSH]:678 - action: null
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'IloginDAOiImpl' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Initialization of bean 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
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Initialization of bean 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
    java.lang.SecurityException: class "org.apache.commons.collections.SequencedHashMap"'s signer information does not match signer information of other classes in the same package
    弄了好久,不知道什么原因,请高手指点
      

  8.   

    不是myeclipe的问题,今天我也碰到了此类问题,终于被我解决了,是原来我lib下有一个commons-collections-2.1.jar和commons-collctions-3.2.jar,后来我把第一个删掉就ok了!
      

  9.   

    org.springframework.beans.factory.support.DefaultListableBeanFactory Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@75d758: defining beans []; root of factory hierarchy
    null
    我遇到这个问题,如何解决?