有没有人解决过这个问题啊?偶不知是那的配置有问题了,请各位帮帮忙啊!?
这是STRUTS+HIBERNATE的配置有问题,但不知在那出错.麻烦大家帮帮忙!
2007-03-16 15:57:29,593 - [ERROR] [ContextLoader] - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager ' defined in ServletContext resource [/WEB-INF/spring/applicationContext-hibernate.xml]: Can 't resolve reference to bean 'sessionFactory ' while setting property 'sessionFactory '; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory ' defined in ServletContext resource [/WEB-INF/spring/applicationContext-hibernate.xml]: Initialization of bean failed; nested exception is
java.lang.NoClassDefFoundError: null
org.springframework.beans.factory.
BeanCreationException: Error creating bean with name 'sessionFactory ' defined in ServletContext resource [/WEB-INF/spring/applicationContext-hibernate.xml]: Initialization of bean failed; nested exception is java.lang.
NoClassDefFoundError: null
java.lang.NoClassDefFoundError
at org.hibernate.tuple.EntityMetamodel.class$(EntityMetamodel.java:41)
at org.hibernate.tuple.EntityMetamodel. <init> (EntityMetamodel.java:122)
at org.hibernate.persister.entity.AbstractEntityPersister. <init> (AbstractEntityPersister.java:412)
at org.hibernate.persister.entity.SingleTableEntityPersister. <init> (SingleTableEntityPersister.java:108)
at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55)
at org.hibernate.impl.SessionFactoryImpl. <init> (SessionFactoryImpl.java:216)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1176)
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:767)
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:693)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1003)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:348)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:176)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:105)
at org.springframework.beans.factory.support.Abst