关于activit工作流webservice

发布于 2022-01-02 05:25:37 字数 2747 浏览 951 评论 1

@咖啡兔 你好,想跟你请教个问题:关于activit工作流webservice的问题,部署流程时报以下的错误:

Caused by: org.activiti.engine.ActivitiException: Could not find importer for type http://schemas.xmlsoap.org/wsdl/
    at org.activiti.engine.impl.bpmn.parser.BpmnParse.getImporter(BpmnParse.java:327)
    at org.activiti.engine.impl.bpmn.parser.BpmnParse.createImports(BpmnParse.java:306)
    at org.activiti.engine.impl.bpmn.parser.BpmnParse.execute(BpmnParse.java:229)
    at org.activiti.engine.impl.bpmn.deployer.BpmnDeployer.deploy(BpmnDeployer.java:113)
    at org.activiti.engine.impl.persistence.deploy.DeploymentManager.deploy(DeploymentManager.java:57)
    at org.activiti.engine.impl.cmd.DeployCmd.execute(DeployCmd.java:103)
    at org.activiti.engine.impl.cmd.DeployCmd.execute(DeployCmd.java:37)
    at org.activiti.engine.impl.interceptor.CommandInvoker.execute(CommandInvoker.java:24)
    at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:57)
    at org.activiti.spring.SpringTransactionInterceptor$1.doInTransaction(SpringTransactionInterceptor.java:47)
    at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:133)
    at org.activiti.spring.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:45)
    at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:31)
    at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:40)
    at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:35)
    at org.activiti.engine.impl.RepositoryServiceImpl.deploy(RepositoryServiceImpl.java:78)
    at org.activiti.engine.impl.repository.DeploymentBuilderImpl.deploy(DeploymentBuilderImpl.java:156)
    at com.neusoft.bpm.util.BpmHandler.createDeployment(BpmHandler.java:240)
    at com.neusoft.bpm.action.MethodServlet.depoly(MethodServlet.java:88)
    ... 29 more

我的bpmn文件头<import importType="http://schemas.xmlsoap.org/wsdl/"
            location="http://localhost:9999/leave?wsdl"
            namespace="http://webservice.kafeitu.me/" />

为什么求解?谢谢了。

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

居里长安 2022-01-02 16:59:26

只能看源码解决,不知道你是什么版本,每个版本的源码不同,原因也不同。我用的是6.x,原因是找不到cxf的jar,class ForName报错,加入jar包即可。6.0.0源码是:

try {
  wsdlImporterClass = Class.forName("org.activiti.engine.impl.webservice.CxfWSDLImporter", true, Thread.currentThread().getContextClassLoader());
  XMLImporter importerInstance = (XMLImporter) wsdlImporterClass.newInstance();
  xmlImporterMap.put(theImport.getImportType(), importerInstance);
  importerInstance.importFrom(theImport, sourceSystemId);
  
  structureDefinitionMap.putAll(importerInstance.getStructures());
  wsServiceMap.putAll(importerInstance.getServices());
  wsOperationMap.putAll(importerInstance.getOperations());
  
} catch (Exception e) {
  throw new ActivitiException("Could not find importer for type " + theImport.getImportType());
}
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文