终于搞定了在此感谢chenjin的指点
从日整合失败后这块就一直是我的心病我甚至都跑去了去发了一个帖这还是我第一次用英文问问题呢
最后的配置结果是
hibernatecfgxmljbpmcfgxml在关联spring后保持不变只需要更改spirng的配置文件就好了
<?xmlversion=encoding=UTF?>
<!DOCTYPEbeansPUBLIC//SPRING//DTDBEAN//EN
beansdtd>
<beans>
<beanid=dataSourceclass=orgspringframeworkjdbcdatasourceDriverManagerDataSource>
<propertyname=driverClassName>
<value>commysqljdbcDriver</value>
</property>
<propertyname=url>
<value>jdbc:mysql://localhost:/test</value>
</property>
<propertyname=username>
<value>root</value>
</property>
<propertyname=password>
<value/>
</property>
</bean>
<!HibernateSessionFactory>
<beanid=sessionFactoryclass=orgspringframeworkormhibernateLocalSessionFactoryBean>
<propertyname=dataSource>
<reflocal=dataSource/>
</property>
<propertyname=mappingLocations>
<value>classpath*:/org/jbpm/**/*hbmxml</value>
</property>
<propertyname=hibernateProperties>
<props>
<propkey=hibernatedialect>orghibernatedialectMySQLDialect</prop>
<propkey=hibernatehbmddlauto>update</prop>
<propkey=hibernatejdbcbatch_size></prop>
</props>
</property>
</bean>
<!TransactionmanagerforasingleHibernateSessionFactory(alternativetoJTA)>
<beanid=transactionManagerclass=orgspringframeworkormhibernateHibernateTransactionManager>
<propertyname=sessionFactory>
<reflocal=sessionFactory/>
</property>
</bean>
<!readingjBPMprocessdefinitions>
<beanid=websaleWorkflowclass=orgspringmodulesworkflowjbpmdefinitionProcessDefinitionFactoryBean>
<propertyname=definitionLocationvalue=processdefinitionxml/>
</bean>
<!jBPMconfiguration>
<beanid=jbpmConfigurationclass=orgspringmodulesworkflowjbpmLocalJbpmConfigurationFactoryBean>
<propertyname=sessionFactoryref=sessionFactory/>
<propertyname=configurationvalue=jbpmcfgxml/>
<propertyname=processDefinitions>
<list>
<reflocal=websaleWorkflow/>
</list>
</property>
<propertyname=createSchemavalue=true/>
</bean>
<!jBPMtemplate>
<beanid=jbpmTemplateclass=orgspringmodulesworkflowjbpmJbpmTemplate>
<constructorargindex=ref=jbpmConfiguration/>
<constructorargindex=ref=websaleWorkflow/>
</bean>
</beans>
其中
<propertyname=mappingLocations>
<value>classpath*:/org/jbpm/**/*hbmxml</value>
</property>
很关键我就是想spring会通过jbpm找到hibernatecfgxml而没有设置才失败的