部署自定义任务模型 Alfresco Community 5.1

Deploy custom task model Alfresco Community 5.1

我正在尝试按照 Jeff Potts's tutorial 部署我的自定义工作流程(使用自定义任务模型)。似乎一切正常,直到我尝试初始化内置 Alfresco 并登录它。

这是输出的摘录:

2016-07-08 11:49:52,163  ERROR [web.context.ContextLoader] [localhost-startStop-1] Context initialization failed
 org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.someco.scripts.GetReview] for bean with name 'webscript.com.someco.bpm.review.get' defined in class path resource [alfresco/module/someco-repo/context/service-context.xml];

下面还有很多例外。

我想这是 service-context.xml 文件中的一个错误,但我不知道如何正确格式化该文件。

验证您是否在与 Jeff Potts 相同的包下创建了 webscript class,并且名称相同,因为在您的日志中,spring 没有找到它。或者在你的服务中编辑 class 属性-context.xml

对于以后的相关问题,解决方案是使用 Maven 下载并安装所有依赖项。