AnsweredAssumed Answered

Integration activiti-modeler issue

Question asked by mutable on Feb 20, 2016
Latest reply on Feb 24, 2016 by jbarrez
I met such a mistake.
404 - GET /ActivitiProject/service/model/342501/json

already copy the editor-app, modeler.html to webcontent,

and stencilset.json in WEB-INF/classes

i have change the app-cfg.js to my web context :
ACTIVITI.CONFIG = {
'contextRoot' : '/ActivitiProject/service',
};

and  the   web.xml ,

<servlet>
      <servlet-name>ModelRestServlet</servlet-name>
      <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
      <init-param>
         <param-name>contextConfigLocation</param-name>
         <param-value>/WEB-INF/spring-mvc-modeler.xml</param-value>
      </init-param>
      <load-on-startup>1</load-on-startup>
   </servlet>
   <servlet-mapping>
      <servlet-name>ModelRestServlet</servlet-name>
      <url-pattern>/service/*</url-pattern>
   </servlet-mapping>



The  spring-mvc-modeler.xml



<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xmlns:context="http://www.springframework.org/schema/context"
   xmlns:mvc="http://www.springframework.org/schema/mvc"
   xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
      http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd
        http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.1.xsd">

   <!– 自动扫描且只扫描@Controller –>
   <context:component-scan base-package="org.activiti.rest.editor,org.activiti.rest.diagram">
      <context:include-filter type="annotation" expression="org.springframework.stereotype.Controller" />
   </context:component-scan>

   <mvc:annotation-driven />
</beans>


Urgent to solve the problem  Someone can help me?

Outcomes