无法初始化启动控制器。找不到任务管理器

Could not initialize Start up controller. TaskManager not found

我写了一个计划任务,它在 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>

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

当您没有在服务器中定义 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>