我用的是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)
展开
 我来答
TESZLX
2011-06-10 · 超过24用户采纳过TA的回答
知道答主
回答量:91
采纳率:0%
帮助的人:68.2万
展开全部
sessionFactory 有问题吧,把你的spring配置文件贴出来看下
追问


</prop

兄弟,加我qq一下吧,这里能写的字数太少了,我的qq是305525747,这个问题困扰我很长时间了。万分感谢。
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
收起 1条折叠回答
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式