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

解决方案 »

  1.   

    'bus' 这个属性,其实不存在?
      

  2.   

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

  3.   

    web.xml里的配置顺序会不会有问题,applicationContext.xml那的配置我改了下,could not init listeners运行控制台还是报这个错!我运行的是在intelliJ IDEA10.5,另外这个东西的教程谁有帮我发下