我正在尝试将activiti modeler与我的Web应用程序集成。我的应用程序包括一些jar模块和三个war模块。战争模块之一我想与activiti建模者整合。我发现了这个提示How To Integrate Activiti Modeller Into own Web Application。我已经完成了这个主题,但这对我没用。我从ServerServlet收到404错误。
这是我的配置: 的web.xml
<servlet>
<servlet-name>RestletServlet</servlet-name>
<servlet-class>org.restlet.ext.servlet.ServerServlet</servlet-class>
<init-param>
<!-- Application class name -->
<param-name>org.restlet.application</param-name>
<param-value>org.activiti.rest.explorer.application.ExplorerRestApplication</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>RestletServlet</servlet-name>
<url-pattern>/mymodule/service/*</url-pattern>
</servlet-mapping>
的pom.xml:
<dependency>
<groupId>org.activiti</groupId>
<artifactId>activiti-modeler</artifactId>
<scope>compile</scope>
</dependency>
当然,我提取了消息来源。
这是日志:
20:27:48,191 ERROR [STDERR] sty 12, 2015 8:27:48 PM org.restlet.engine.log.LogFilter afterHandle
INFO: 2015-01-12 20:27:48 127.0.0.1 - 127.0.0.1 8080 GET /workflow/service/editor id=10001 404 0 0 1 http://localhost:8080 Mozilla/5.0 (Windows NT 6.1; WOW64; rv:34.0) Gecko/20100101 Firefox/34.0
答案 0 :(得分:0)
看起来您没有公开建模者REST端点。 请尝试以下web.xml设置:
<servlet>
<servlet-name>RestletServlet</servlet-name>
<servlet-class>org.restlet.ext.servlet.ServerServlet</servlet-class>
<init-param>
<!-- Application class name -->
<param-name>org.restlet.application</param-name>
<param-value>org.activiti.rest.modeler.application.ModelerRestApplication</param-value>
</init-param>
</servlet>
<!-- Catch all service requests -->
<servlet-mapping>
<servlet-name>RestletServlet</servlet-name>
<url-pattern>/service/*</url-pattern>
</servlet-mapping>