【问题标题】:Integrate Activiti Modeler with my own Web Application将 Activiti Modeler 与我自己的 Web 应用程序集成
【发布时间】: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

【问题讨论】:

    标签: java maven activiti


    【解决方案1】:

    您似乎没有公开建模器 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>
    

    【讨论】:

      猜你喜欢
      • 2014-10-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-03-29
      • 1970-01-01
      相关资源
      最近更新 更多