日期:2014-05-19  浏览次数:20649 次

求解这个Caused By
Caused by: org.springframework.beans.PropertyBatchUpdateException: Failed properties: Property 'bus' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in file [E:\out\artifacts\orderService.war\WEB-INF\classes\applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.HibernateException: could not init listeners; Property 'transportIds' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in file [E:\out\artifacts\orderService.war\WEB-INF\classes\applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.HibernateException: could not init listeners
at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:102) [org.springframework.beans-3.0.3.RELEASE.jar:3.0.3.RELEASE]
at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:58) [org.springframework.beans-3.0.3.RELEASE.jar:3.0.3.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1350) [org.springframework.beans-3.0.3.RELEASE.jar:3.0.3.RELEASE]
... 37 common frames omitted

------解决方案--------------------
'bus' 这个属性,其实不存在?
------解决方案--------------------
第一:跟踪下这个Property 'bus'属性看有没有设置??
第二: 看下applicationContext.xml里的'sessionFactory' 这文件有没有配置错??
我觉得你的配置文件不对,
could not init listeners
at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:102)设置属性有问题