struts问题:各位大侠帮忙诊断一下--在线等待中
spring +strus+hibernate+wls 启动报错:
<2006-12-12 下午11时15分39秒 CST> <Error> <HTTP> <BEA-101046> <[ServletContext(i
d=37071422,name=delyaWeb,context-path=/delyaWeb)] action: null
org.springframework.beans.factory.BeanCreationException: Error creating bean wit
h name 'sessionFactory' defined in class path resource [system-application-bean.
xml]: Initialization of bean failed; nested exception is java.lang.InternalError
: erroneous handlers
java.lang.InternalError: erroneous handlers
at org.hibernate.cache.EhCacheProvider.start(Ljava.util.Properties;)V(Eh
CacheProvider.java:???)
at org.hibernate.impl.SessionFactoryImpl.<init>(Lorg.hibernate.cfg.Confi
guration;Lorg.hibernate.engine.Mapping;Lorg.hibernate.cfg.Settings;Lorg.hibernat
e.event.SessionEventListenerConfig;)V(SessionFactoryImpl.java:164)
at org.hibernate.cfg.Configuration.buildSessionFactory()Lorg.hibernate.S
essionFactory;(Configuration.java:1055)
配置文件:
<bean id="dataSource"
class="org.springframework.jndi.JndiObjectFactoryBean">
<property name="jndiTemplate">
<ref local="jndiTemplate" />
</property>
<property name="jndiName">
<value>TestDS</value>
</property>
</bean>
<beans>
<!-- hibernate Configuration -->
<bean id="sessionFactory"
class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="dataSource">
<ref bean="dataSource" />
</property>
<property name="mappingResources">
<list>
<value>com/test/entity/TUser.hbm.xml</value>
<value>com/test/entity/TCommand.hbm.xml</value
</list>
</property>
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">
org.hibernate.dialect.Oracle9Dialect
</prop>
<prop key="hibernate.show_sql">true</prop>
</props>
</property>
</bean>