Camunda application is not running in embedded server

Hi,

Application is not getting deployed in embedded (Tomcat) server.

These below configurations are used,

Camunda version 7.16.0

Springboot 2.7.9 / 2.7.10

Java 8

Expected scenarios,

Need to run the application in eclipse using run as java application and also create WAR file and deploy in tomcat server.

Both the cases are not working. Kindly suggest.

Attached the pom.xml file


pom.yaml (8.4 KB)

Thanks.

Additional Info:-
camunda-bpm-ee-tomcat-7.16.1-ee
apache-tomcat-9.0.52

Any suggestions on the main query.?

Hi @V_Sri,

there are several ways possible to embed the process engine into your application.

But using two different ways in the same project brings in a lot of maven configuration tasks.

I would recommend going the spring boot way for both, development and production.

If this is not possible, use the shared engine way on Tomcat and deploy it from the IDE to your tomcat server. There is a maven plugin available to support the deployment.

Hope this helps, Ingo

1 Like

Thanks for the reply.

If any sample pom.xml with all the maven configuration which works and war file to deploy in Camunda embedded server kindly share.

Hi @V_Sri,

Sorry, I don’t have any example to share.

Cheers, Ingo

Hello my friend!

Below is an example of the pom.xml file configured for the needs of my embedded project.
You can change some things according to your need.

<modelVersion>4.0.0</modelVersion>

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

<properties>
    <java.version>13</java.version>
</properties>

<groupId>br.com.william</groupId>
<artifactId>poc-camunda</artifactId>
<version>1.0.0-SNAPSHOT</version>
<dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-dependencies</artifactId>
            <version>2.3.1.RELEASE</version>
            <type>pom</type>
            <scope>import</scope>
        </dependency>

        <dependency>
            <groupId>org.camunda.bpm</groupId>
            <artifactId>camunda-bom</artifactId>
            <version>7.16.0</version>
            <scope>import</scope>
            <type>pom</type>
        </dependency>

        <dependency>
            <groupId>org.camunda.spin</groupId>
            <artifactId>camunda-spin-bom</artifactId>
            <scope>import</scope>
            <type>pom</type>
            <version>1.13.0</version>
        </dependency>

    </dependencies>
</dependencyManagement>
<dependencies>
    <dependency>
        <groupId>org.camunda.bpm.springboot</groupId>
        <artifactId>camunda-bpm-spring-boot-starter-rest</artifactId>
        <version>7.16.0</version>
    </dependency>

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

    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-web</artifactId>
    </dependency>

    <dependency>
        <groupId>org.webjars</groupId>
        <artifactId>webjars-locator-core</artifactId>
    </dependency>

    <dependency>
        <groupId>org.camunda.bpm.webapp</groupId>
        <artifactId>camunda-webapp-webjar</artifactId>
        <!-- <artifactId>camunda-webapp-webjar-ee</artifactId> -->
        <type>jar</type>
        <optional>true</optional>
    </dependency>

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

    <!--
    <dependency>
        <groupId>com.h2database</groupId>
        <artifactId>h2</artifactId>
    </dependency>

    <!-- PostgreSQL -->
    <dependency>
        <groupId>org.postgresql</groupId>
        <artifactId>postgresql</artifactId>
    </dependency>


    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-jdbc</artifactId>
    </dependency>
    <dependency>
        <groupId>org.camunda.spin</groupId>
        <artifactId>camunda-spin-dataformat-json-jackson</artifactId>
    </dependency>
    <dependency>
        <groupId>org.camunda.bpm</groupId>
        <artifactId>camunda-engine-plugin-spin</artifactId>
    </dependency>
    <dependency>
        <groupId>org.camunda.spin</groupId>
        <artifactId>camunda-spin-core</artifactId>
      <version>1.13.0</version>
    </dependency>

    <dependency>
        <groupId>org.camunda.spin</groupId>
        <artifactId>camunda-spin-dataformat-all</artifactId>
      <version>1.13.0</version>
    </dependency>

    <dependency>
        <groupId>org.apache.httpcomponents</groupId>
        <artifactId>httpclient</artifactId>
        <version>4.5.12</version>
    </dependency>

    <dependency>
        <groupId>org.apache.commons</groupId>
        <artifactId>commons-email</artifactId>
        <version>1.5</version>
    </dependency>

    <dependency>
        <groupId>org.camunda.connect</groupId>
        <artifactId>camunda-connect-core</artifactId>
    </dependency>
    <dependency>
        <groupId>org.camunda.bpm</groupId>
        <artifactId>camunda-engine-plugin-connect</artifactId>
    </dependency>
    <dependency>
        <groupId>org.camunda.connect</groupId>
        <artifactId>camunda-connect-connectors-all</artifactId>
    </dependency>

    <dependency>
        <groupId>org.springframework.cloud</groupId>
        <artifactId>spring-cloud-context</artifactId>
        <version>2.0.0.RELEASE</version>
    </dependency>

    <!-- https://mvnrepository.com/artifact/com.amazonaws/aws-java-sdk-ssm -->
    <dependency>
        <groupId>com.amazonaws</groupId>
        <artifactId>aws-java-sdk-ssm</artifactId>
        <version>1.11.822</version>
    </dependency>

    <dependency>
        <groupId>de.javakaffee.msm</groupId>
	    <artifactId>memcached-session-manager-tc9</artifactId>
	    <version>2.3.2</version>
    </dependency>

    <dependency>
        <groupId>de.javakaffee.msm</groupId>
	    <artifactId>memcached-session-manager</artifactId>
	    <version>2.3.2</version>
    </dependency>

    <dependency>
        <groupId>redis.clients</groupId>
        <artifactId>jedis</artifactId>
        <version>3.6.1</version>
    </dependency>

    <dependency>
        <groupId>org.springframework.session</groupId>
        <artifactId>spring-session-core</artifactId>
    </dependency>
    <dependency>
        <groupId>org.springframework.session</groupId>
        <artifactId>spring-session-data-redis</artifactId>
    </dependency>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-data-redis</artifactId>
    </dependency>


</dependencies>

<build>

    <resources>
        <resource>
            <directory>src/main/resources</directory>
            <filtering>true</filtering>
            <includes>
                <include>**/*.css</include>
                <include>**/*.js</include>
            </includes>
        </resource>
        <resource>
            <directory>src/main/resources</directory>
            <filtering>false</filtering>
            <excludes>
                <exclude>**/*.css</exclude>
                <exclude>**/*.js</exclude>
            </excludes>
        </resource>
    </resources>

    <plugins>
        <plugin>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-maven-plugin</artifactId>
        </plugin>
    </plugins>
</build>

i hope this helps.

William Robert Alves