struts + spring + hibernate 时出现 : "严重 :action:null "

Wruixin 2007-10-17 03:07:35

严重: 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

自己研究了好久都没有弄明白
...全文
1449 12 打赏 收藏 转发到动态 举报
写回复
用AI写文章
12 条回复
切换为时间正序
请发表友善的回复…
发表回复
cs1772068371 2011-05-04
  • 打赏
  • 举报
回复
org.springframework.beans.factory.support.DefaultListableBeanFactory Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@75d758: defining beans []; root of factory hierarchy
null
我遇到这个问题,如何解决?
「已注销」 2010-01-01
  • 打赏
  • 举报
回复
不是myeclipe的问题,今天我也碰到了此类问题,终于被我解决了,是原来我lib下有一个commons-collections-2.1.jar和commons-collctions-3.2.jar,后来我把第一个删掉就ok了!
zhongwei_wei 2009-01-21
  • 打赏
  • 举报
回复
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
弄了好久,不知道什么原因,请高手指点
zhongwei_wei 2009-01-21
  • 打赏
  • 举报
回复
我也遇到同样问题,不知道是不是,myeclipe的问题
zhijieme 2008-10-11
  • 打赏
  • 举报
回复
谢谢!
figeonline 2008-07-16
  • 打赏
  • 举报
回复
搞定了?
Wruixin 2007-10-18
  • 打赏
  • 举报
回复
问题我已经又解决的办法了
我用myeclipse 6.0 做就有问题
用myeclipse5.5 就没有问题
我用myeclipse5.5(/WEB-INF/lib) 中的jar包 替换了myeclipse 6.0(/WEB-INF/lib)中的就没有问题了
Wruixin 2007-10-17
  • 打赏
  • 举报
回复
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>
Wruixin 2007-10-17
  • 打赏
  • 举报
回复
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>
傻根她弟 2007-10-17
  • 打赏
  • 举报
回复
Mapping出问题了?

贴配置文件出来看看?
Wruixin 2007-10-17
  • 打赏
  • 举报
回复
应该怎样解决 ?
liangkandy2002 2007-10-17
  • 打赏
  • 举报
回复
sessionFactory不能初始化.
org.apache.commons.collections.SequencedHashMap不能嵌套使用.

81,092

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧