【问题标题】:Could not initialize Start up controller. TaskManager not found无法初始化启动控制器。找不到任务管理器
【发布时间】:2020-07-18 03:38:21
【问题描述】:

我已经编写了一个计划任务,它在 wso2 ei 6.4.0 中按顺序调用 Api。我的任务是:

<task xmlns="http://ws.apache.org/ns/synapse"
  name="GetMunicipalityAPIToken"
  class="org.apache.synapse.startup.tasks.MessageInjector"
  group="synapse.simple.quartz">
<trigger interval="60"/>
<property xmlns:task="http://www.wso2.org/products/wso2commons/tasks" name="message">
  <test xmlns=""/>
</property>
<property xmlns:task="http://www.wso2.org/products/wso2commons/tasks"
         name="sequenceName"
         value="GetTokenFromMunicipalityService"/>
<property xmlns:task="http://www.wso2.org/products/wso2commons/tasks"
         name="injectTo"
         value="sequence"/>
</task>

我的顺序是:

<?xml version="1.0" encoding="UTF-8"?>
<sequence name="GetTokenFromMunicipalityService" xmlns="http://ws.apache.org/ns/synapse">
<send>
    <endpoint>
        <http method="POST" uri-template="http://x.x.x.x/api/MunicipalityBill/connect/token"/>
    </endpoint>
</send>
</sequence>

但是当我在 wso2eiHome/bin 中运行 integrator.bat 时,我收到了这个错误:“无法初始化启动控制器。找不到任务管理器”并且没有调用 Api。我是不是忘记了什么?

【问题讨论】:

    标签: esb wso2ei


    【解决方案1】:

    当您没有在服务器中定义 org.wso2.carbon.mediation.ntask.NTaskTaskManager 时,可能会导致该错误。请检查是否在位于 [EI_HOME]/repository/deployment/server/synapse-configs/default/ 目录下的 synapse.xml 文件中添加了以下内容

    <definitions xmlns="http://ws.apache.org/ns/synapse">
       <taskManager provider="org.wso2.carbon.mediation.ntask.NTaskTaskManager"/>
    </definitions>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-06-16
      • 1970-01-01
      • 2014-12-04
      • 2016-08-20
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多