【发布时间】:2015-01-13 05:53:48
【问题描述】:
我正在尝试将 activiti 建模器与我的 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
【问题讨论】: