2017-08-22 1 views
0

Ich folgte für diese Anleitung - https://camunda.github.io/camunda-bpm-spring-boot-starter/docs/2.2.0/index.html Und erstellen Sie meine eigenen neuen Springboot-Camunda-Projekt.Camunda Springboot-Projekt nicht auf Camunda-ee Tomcat-Server

Project structure: Und ich möchte Kriegsdatei, die ich zuvor erstellt wurde, zu Camunda-ee lokalen Server bereitstellen. Und ich erwarte das im Camunda Cockpit zu sehen. Aber es ist nicht da. Ich freue mich über jede nützliche Information, wie Sie das Camunda Springboot Webapp-Projekt auf dem Camunda Server bereitstellen können. Hier mein Code:

@SpringBootApplication 
@EnableProcessApplication 
public class SlognSpringBootProcessApplication { 

    public static void main(String[] args) { 
     SpringApplication springApplication = new SpringApplication(SlognSpringBootProcessApplication.class); 

     springApplication.run(args); 
    } 
} 

processes.xml:

<?xml version="1.0" encoding="UTF-8"?> 
<process-application 
     xmlns="http://www.camunda.org/schema/1.0/ProcessApplication" 
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 

    <process-archive> 
     <process-engine>default</process-engine> 
     <properties> 
      <property name="isDeleteUponUndeploy">true</property> 
      <property name="isScanForProcessDefinitions">true</property> 
     </properties> 
    </process-archive> 

</process-application> 

application.properties:

camunda.bpm.auto-deployment-enabled=true 

pom.xml:

<?xml version="1.0" encoding="UTF-8"?> 
<project xmlns="http://maven.apache.org/POM/4.0.0" 
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 
    <modelVersion>4.0.0</modelVersion> 

    <groupId>net.slogn.camunda.bpm.spring.social</groupId> 
    <artifactId>camunda-bpm-spring-boot-starter-social-integration</artifactId> 
    <version>1.0-SNAPSHOT</version> 
    <packaging>war</packaging> 

    <parent> 
     <groupId>org.springframework.boot</groupId> 
     <artifactId>spring-boot-starter-parent</artifactId> 
     <version>1.5.6.RELEASE</version> 
    </parent> 

    <properties> 
     <camunda-spring-starter.version>2.2.0</camunda-spring-starter.version> 
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> 
     <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> 
     <java.version>1.8</java.version> 
    </properties> 

    <dependencies> 

     <dependency> 
      <groupId>org.camunda.bpm.extension.springboot</groupId> 
      <artifactId>camunda-bpm-spring-boot-starter-webapp</artifactId> 
     </dependency> 

     <dependency> 
      <groupId>org.camunda.bpm.extension.springboot</groupId> 
      <artifactId>camunda-bpm-spring-boot-starter-test</artifactId> 
      <scope>test</scope> 
     </dependency> 

     <dependency> 
      <groupId>org.springframework.boot</groupId> 
      <artifactId>spring-boot-starter-tomcat</artifactId> 
      <scope>provided</scope> 
     </dependency> 

     <dependency> 
      <groupId>com.h2database</groupId> 
      <artifactId>h2</artifactId> 
      <scope>runtime</scope> 
     </dependency> 

    </dependencies> 

    <build> 
     <plugins> 
      <plugin> 
       <groupId>org.springframework.boot</groupId> 
       <artifactId>spring-boot-maven-plugin</artifactId> 
      </plugin> 
      <plugin> 
       <artifactId>maven-war-plugin</artifactId> 
       <configuration> 
        <failOnMissingWebXml>false</failOnMissingWebXml> 
       </configuration> 
      </plugin> 
     </plugins> 
    </build> 

    <dependencyManagement> 
     <dependencies> 
      <dependency> 
       <groupId>org.camunda.bpm.extension.springboot</groupId> 
       <artifactId>camunda-bpm-spring-boot-starter-bom</artifactId> 
       <version>${camunda-spring-starter.version}</version> 
       <type>pom</type> 
       <scope>import</scope> 
      </dependency> 
     </dependencies> 
    </dependencyManagement> 
</project> 
+1

Fehler in den Protokollen? – thorben

Antwort

1

Erster Hinweis: Wenn Sie @EnableProcessApplication verwenden, ist die automatische Bereitstellung deaktiviert, daher können Sie diese Einstellung weglassen: "camunda.bpm.auto-deployment-enabled = true".

Zum Hauptproblem: Was Sie versuchen todo ist Paket eine Spring-Boot-Anwendung als Krieg und auf Anwendungsserver bereitstellen.

Kasse https://github.com/camunda/camunda-bpm-spring-boot-starter/tree/master/examples/example-war, ich denke, Sie initializer zu verlängern vergessen:

@SpringBootApplication 
@EnableProcessApplication 
public class SlognSpringBootProcessApplication extends SpringBootServletInitializer {...} 

so wird der Motor auf Kriegseinsatz geschaffen.

Verwandte Themen