Camunda-为什么未创建流程引擎?

时间:2019-12-11 14:14:38

标签: java camunda saxparseexception

我正在尝试在我的应用程序中集成BPMN工具:camunda。为此,我一直在使用camunda文档:https://docs.camunda.org/stable/guides/getting-started-guides/spring-framework/#set-up/application-context

我已经添加了与应用程序上下文相关的信息,如此处所述:

var shuju = new CreateInstancesRequest()
            {
                BlueprintId = "centos_7_1901_01",
                BundleId = "micro_2_0",
                AvailabilityZone = "ap-northeast-1d",
                InstanceNames = new System.Collections.Generic.List<string>() { "test" },
                UserData = "echo root:test123456- |sudo chpasswd root\r\nsudo sed -i 's/^#\\?PermitRootLogin.*/PermitRootLogin yes/g' /etc/ssh/sshd_config;\r\nsudo sed -i 's/^#\\?PasswordAuthentication.*/PasswordAuthentication yes/g' /etc/ssh/sshd_config;\r\nsudo reboot\r\n"
            };

但是在构建过程中出现此错误:

    <bean id="dataSource" class="org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy">
      <property name="targetDataSource">
        <bean class="org.springframework.jdbc.datasource.SimpleDriverDataSource">
          <property name="driverClass" value="org.h2.Driver" />
          <property name="url"
                    value="jdbc:h2:mem:process-engine;DB_CLOSE_DELAY=1000" />
          <property name="username" value="sa" />
          <property name="password" value="" />
        </bean>
      </property>
    </bean>

    <bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
      <property name="dataSource" ref="dataSource" />
    </bean>

    <bean id="processEngineConfiguration" class="org.camunda.bpm.engine.spring.SpringProcessEngineConfiguration">
      <property name="processEngineName" value="engine" />
      <property name="dataSource" ref="dataSource" />
      <property name="transactionManager" ref="transactionManager" />
      <property name="databaseSchemaUpdate" value="true" />
      <property name="jobExecutorActivate" value="false" />
    </bean>

    <bean id="processEngine" class="org.camunda.bpm.engine.spring.ProcessEngineFactoryBean">
      <property name="processEngineConfiguration" ref="processEngineConfiguration" />
    </bean>

    <bean id="repositoryService" factory-bean="processEngine" factory-method="getRepositoryService" />
    <bean id="runtimeService" factory-bean="processEngine" factory-method="getRuntimeService" />
    <bean id="taskService" factory-bean="processEngine" factory-method="getTaskService" />
    <bean id="historyService" factory-bean="processEngine" factory-method="getHistoryService" />
    <bean id="managementService" factory-bean="processEngine" factory-method="getManagementService" />

有人可以让我知道我在这里犯了什么错误吗? 任何帮助将不胜感激。

1 个答案:

答案 0 :(得分:2)

Camunda 7.3.0按照项目BOM使用mybatis 3.2.8。

您正在使用mybatis 3.2.2,这可能会导致依赖项版本不匹配。尝试更新项目的mybatis依赖项,以匹配Camunda版本中的依赖项。