将Kie-Server集成到Spring Boot应用程序中 [英] Integrate kie-server into spring boot application

查看:771
本文介绍了将Kie-Server集成到Spring Boot应用程序中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将所有的kie-server自动配置(特别是JBPM)集成到我的spring boot应用程序中. 我将这些gradle依赖项添加到了我项目的单独模块中

I want to integrate all the kie-server autoconfiguration (especially JBPM) in my spring boot application. I added these gradle dependencies in a separate module of my project

dependencies {
    compile group: 'org.kie', name: 'kie-server-spring-boot-starter', version: '7.29.0.Final'
    compile group: 'xerces', name: 'xercesImpl', version: '2.12.0'
}

然后我添加了此链接建议的配置属性

then I added the configuration properties suggested by this link

然后我尝试启动该应用程序,但出现此错误:

then I tryed to start the application, but I got this error:

***************************
APPLICATION FAILED TO START
***************************

Description:

Parameter 0 of constructor in org.jbpm.springboot.datasources.JBPMDataSourceAutoConfiguration required a bean of type 'org.springframework.boot.jdbc.XADataSourceWrapper' that could not be found.


Action:

Consider defining a bean of type 'org.springframework.boot.jdbc.XADataSourceWrapper' in your configuration.

JBPMDataSourceAutoConfiguration 类在下面链接

如何在现有的Spring Boot项目中正确配置jbpm/drools/kie的嵌入式集成?

How can I correctly configure an embedded integration of jbpm/drools/kie in my existing spring boot project?

---------- UPDATE -------------

----------UPDATE-------------

设置属性spring.jta.enabled = true后,在

***************************
APPLICATION FAILED TO START
***************************

Description:

Parameter 0 of constructor in org.jbpm.springboot.datasources.JBPMDataSourceAutoConfiguration required a bean of type 'org.springframework.boot.jdbc.XADataSourceWrapper' that could not be found.

The following candidates were found but could not be injected:
    - Bean method 'xaDataSourceWrapper' in 'NarayanaConfiguration.GenericJdbcConfiguration' not loaded because @ConditionalOnProperty (narayana.dbcp.enabled=false) found different value in property 'narayana.dbcp.enabled'
    - Bean method 'xaDataSourceWrapper' in 'NarayanaConfiguration.GenericJdbcConfiguration' not loaded because Ancestor me.snowdrop.boot.narayana.autoconfigure.NarayanaConfiguration did not match
    - Bean method 'xaDataSourceWrapper' in 'NarayanaConfiguration.PooledJdbcConfiguration' not loaded because Ancestor me.snowdrop.boot.narayana.autoconfigure.NarayanaConfiguration did not match
    - Bean method 'xaDataSourceWrapper' in 'AtomikosJtaConfiguration' not loaded because @ConditionalOnClass did not find required class 'com.atomikos.icatch.jta.UserTransactionManager'
    - Bean method 'xaDataSourceWrapper' in 'BitronixJtaConfiguration' not loaded because @ConditionalOnClass did not find required class 'bitronix.tm.jndi.BitronixContext'


Action:

Consider revisiting the entries above or defining a bean of type 'org.springframework.boot.jdbc.XADataSourceWrapper' in your configuration.

推荐答案

只需转到start.jbpm.org,然后 下载现成的春季booy kie服务器!

just go to start.jbpm.org and download ready made spring booy kie-server!

这篇关于将Kie-Server集成到Spring Boot应用程序中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆