No Process Engine Available When Access API


I got this error when trying to deploy bpmn using rest API. I followed the tutorial below

Please help. Thank you

@allnomigid which camunda version are you using? What are the dependencies added in the classpath?

I use camunda 7.13.0

Here is my pom.xml

4.0.0

<groupId>org.camunda.bpm.getstarted</groupId>
<artifactId>charge-card-worker</artifactId>
<version>0.0.1-SNAPSHOT</version>

<properties>
	<maven.compiler.source>1.8</maven.compiler.source>
	<maven.compiler.target>1.8</maven.compiler.target>
</properties>

<dependencies>
	<dependency>
		<groupId>org.camunda.bpm</groupId>
		<artifactId>camunda-external-task-client</artifactId>
		<version>1.3.1</version>
	</dependency>
	<dependency>
		<groupId>org.slf4j</groupId>
		<artifactId>slf4j-simple</artifactId>
		<version>1.6.1</version>
	</dependency>
	<dependency>
		<groupId>javax.xml.bind</groupId>
		<artifactId>jaxb-api</artifactId>
		<version>2.3.1</version>
	</dependency>
</dependencies>
1 Like

I am getting the same issue with Camunda version 7.14.0, I have deployed this camunda-engine-rest-7.14.0-wildfly.war, but getting the following response
{
“type”: “InvalidRequestException”,
“message”: “No process engine available”
}

What request are you making?

I am making this request http://localhost:8080/engine-rest/engine/default/process-definition.

I have also installed camunda-bpm-wildfly-7-3 when running the ./start-camunda.sh script then above endpoint works fine.

But when I have deployed the camunda-engine-rest-7.14.0.war running in the wildfly’s deployment folder embedded in the Vagrant then getting the error

Have added this in the standalone.xml

<subsystem xmlns="urn:org.camunda.bpm.jboss:1.1">
      <process-engines>
        <process-engine name="default" default="true">
          <datasource>java:jboss/datasources/ProcessEngine</datasource>
          <history-level>full</history-level>
          <properties>
            <property name="jobExecutorAcquisitionName">default</property>
            <property name="isAutoSchemaUpdate">true</property>
            <property name="authorizationEnabled">true</property>
            <property name="jobExecutorDeploymentAware">true</property>
            <property name="historyCleanupBatchWindowStartTime">00:01</property>
          </properties>
          <plugins>
            <plugin>
              <class>org.camunda.bpm.application.impl.event.ProcessApplicationEventListenerPlugin</class>
            </plugin>
            <plugin>
              <class>org.camunda.spin.plugin.impl.SpinProcessEnginePlugin</class>
            </plugin>
            <plugin>
              <class>org.camunda.connect.plugin.impl.ConnectProcessEnginePlugin</class>
            </plugin>
          </plugins>
        </process-engine>
      </process-engines>
      <job-executor>
        <core-threads>3</core-threads>
        <max-threads>5</max-threads>
        <queue-length>10</queue-length>
        <job-acquisitions>
          <job-acquisition name="default">
            <properties>
              <property name="lockTimeInMillis">300000</property>
              <property name="waitTimeInMillis">5000</property>
              <property name="maxJobsPerAcquisition">3</property>
            </properties>
          </job-acquisition>
        </job-acquisitions>
      </job-executor>
    </subsystem>

What if instead of that you try:
http://localhost:8080/engine-rest/process-definition

With just http://localhost:8080/engine-rest/process-definition getting this error:
{
“type”: “NotFoundException”,
“message”: “RESTEASY003210: Could not find resource for full path: http://localhost:8080/engine-rest/engine/process-definition”
}

tried to add some more stuffs in the standalone.xml but now getting this error:

10:17:04,517 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation (“add”) failed - address: ([
(“subsystem” => “camunda-bpm-platform”),
(“process-engines” => “default”)
]) - failure description: {
“WFLYCTL0412: Required services that are not installed:” => [
“org.camunda.bpm.platform.executor-service”,
“jboss.naming.context.java.“DS.workmanagement””,
“org.camunda.bpm.platform.job-executor.default”
],
“WFLYCTL0180: Services with missing/unavailable dependencies” => [“org.camunda.bpm.platform.process-engine.default is missing [org.camunda.bpm.platform.executor-service, jboss.naming.context.java.“DS.workmanagement”, org.camunda.bpm.platform.job-executor.default]”]