ProcessEngine cannot be resolved to a type

学习了下JBPM4.4 ,运行第一个工程时一直报 “ProcessEngine cannot be resolved to a type”错误

上网找了下,无法就是以下解决方法:


把网上一个JBPM4视频教程的sample导入本地,tomcat6报错如下:

ProcessEngine cannot be resolved to a type

处理这个问题,第一就是查看是否导入jbpm.jar----- 一定要注意哦,jbpm.jar是放在jbpm.zip解压包的一级目录下的,很多人只把jbpm/lib目录下的所有jar包导入项目中,而忽略了这最要的一个jbpm.jar

 

其他可能原因的解决方案,网上基本都是如下:

1. 部署在tomcat5下,不会报错

2.部署在tomcat6下,但是会jar冲突,解决方案是:

删除项目工程下:juel-impl.jar,juel-engine.jar,juel-api.jar 这三个包,然后把它们拷贝到tomcat6的lib目录下,并删除原目录下的el-api.jar

 

很多文章提出添加 JEE Module Dependencies,如下:

设置了build path以后,还要在JEE Module Dependencies中选择WEB使用的依赖。

右击项目名称,进入properties就可以看到JEE Module Dependencies

很多人发现他的eclipse下没该选项,的确,使用了新的eclipse(3.5后版本),该功能是被删除掉了,而替代的是Deployment Assembly选项!(参考:http://www.mkyong.com/eclipse/eclipse-java-ee-module-dependencies-is-replaced-by-web-deployment-assembly/),它的功能就是添加web工程必须的一些jar包,比如servlet-api.jar。

一般,它不需要设置,只要确保项目关联了所有需要的jbpm的jar包,就没必要设置该属性。

所以,该设置完全可以或略。

终极解决方法:

如果不想加Deployment Assembly 可以直接把jbpm/lib下的所有jar拷贝到项目的lib下(包括jbpm.jar),记得要去掉拷贝到tomcat lib下的三个jar(juel-impl.jar,juel-engine.jar,juel-api.jar),并删除tomcat原目录下的el-api.jar

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'dynamicFlowController': Unsatisfied dependency expressed through field 'runtimeService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'runtimeServiceBean' defined in class path resource [org/activiti/spring/boot/DataSourceProcessEngineAutoConfiguration$DataSourceProcessEngineConfiguration.class]: Unsatisfied dependency expressed through method 'runtimeServiceBean' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'processEngine' defined in class path resource [org/activiti/spring/boot/DataSourceProcessEngineAutoConfiguration$DataSourceProcessEngineConfiguration.class]: Unsatisfied dependency expressed through method 'processEngine' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'springProcessEngineConfiguration' defined in class path resource [org/activiti/spring/boot/DataSourceProcessEngineAutoConfiguration$DataSourceProcessEngineConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.activiti.spring.SpringProcessEngineConfiguration]: Factory method 'springProcessEngineConfiguration' threw exception; nested exception is java.io.FileNotFoundException: class path resource [processes/] cannot be resolved to URL because it does not exist
最新发布
06-09

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值