我用的是myeclipse6.5+jboss4.2.2.spring2.5+hibernate3.2+struts做的一个项目,但是部署的时候, 5
19:02:48,687INFO[STDOUT]19:02:48,687INFO[Version]HibernateValidator3.0.0.GA19:02:48,7...
19:02:48,687 INFO [STDOUT] 19:02:48,687 INFO [Version] Hibernate Validator 3.0.0.GA
19:02:48,765 INFO [STDOUT] 19:02:48,765 INFO [AnnotationSessionFactoryBean] Building new Hibernate SessionFactory
19:02:48,796 INFO [STDOUT] 19:02:48,796 INFO [DefaultListableBeanFactory] Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@19ce8f3: defining beans [sessionFactory,bspcorpdao,bspuserdao,bspcorpspldao,bspmysplcontactdao,bspmessagedao,bspinqdao,bspinqpartsdao,bspinqspldao,accountmanager,messagemanager,inqmanager,managerFactory,transactionManager,transactionInterceptor,org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator#0,logonAction,UserIsReg,/MyCountManager/REG_CORP_USER,BSPUserReg,BSP_User_GetPass,USERREG,/MyOrderParts/BUYCERSPL,/MyOrderParts/BUYSPLLIST,/MessageBoard/bspMessage,BUYINQEDIT,/MySaleparts/SALERECINQLIST]; root of factory hierarchy
19:02:48,812 INFO [STDOUT] 19:02:48,812 ERROR [ContextLoader] Context initialization failed
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 java.lang.ClassCastException: org.hibernate.search.event.FullTextIndexEventListener cannot be cast to org.hibernate.event.PostInsertEventListener
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1336)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:471)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:217)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) 展开
19:02:48,765 INFO [STDOUT] 19:02:48,765 INFO [AnnotationSessionFactoryBean] Building new Hibernate SessionFactory
19:02:48,796 INFO [STDOUT] 19:02:48,796 INFO [DefaultListableBeanFactory] Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@19ce8f3: defining beans [sessionFactory,bspcorpdao,bspuserdao,bspcorpspldao,bspmysplcontactdao,bspmessagedao,bspinqdao,bspinqpartsdao,bspinqspldao,accountmanager,messagemanager,inqmanager,managerFactory,transactionManager,transactionInterceptor,org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator#0,logonAction,UserIsReg,/MyCountManager/REG_CORP_USER,BSPUserReg,BSP_User_GetPass,USERREG,/MyOrderParts/BUYCERSPL,/MyOrderParts/BUYSPLLIST,/MessageBoard/bspMessage,BUYINQEDIT,/MySaleparts/SALERECINQLIST]; root of factory hierarchy
19:02:48,812 INFO [STDOUT] 19:02:48,812 ERROR [ContextLoader] Context initialization failed
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 java.lang.ClassCastException: org.hibernate.search.event.FullTextIndexEventListener cannot be cast to org.hibernate.event.PostInsertEventListener
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1336)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:471)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:217)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询