Error creating bean with name 'processEngine'
时间: 2023-10-27 10:24:10 浏览: 211
Error creating bean with name 'processEngine'是一个Activiti整合SSM的异常。这个异常可能是由于工作流启动时未找到核心类ProcessEngineConfiguration引起的。你可以尝试以下两个解决方法:
1. 重置maven仓库,确保依赖的jar包正确下载和配置。
2. 检查工作流的xml文件是否正确加载。你可以修改加载方式,使用以下代码载入资源:
```java
ProcessEngineConfiguration processEngineConfiguration = ProcessEngineConfiguration.createProcessEngineConfigurationFromResource("activiti.cfg.xml");
ProcessEngine processEngine = processEngineConfiguration.buildProcessEngine();
processEngine.getRepositoryService();
System.exit(0);
```
此外,你还可以查找根本原因,为什么不能自动加载工作流xml。可能是因为xml文件中有错误,但是控制台没有打印错误信息。你可以检查mysql链接是否存在问题,比如检查jdbcUrl的配置是否正确。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [Activti整合SSM的异常(DbSqlSession或者Error creating bean with name 'processEngine)](https://blog.csdn.net/qq_41811281/article/details/84580889)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [Error creating bean with name 'processEngineConfiguration' defined in resource loaded through(已解决...](https://blog.csdn.net/weixin_43864599/article/details/95203174)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文