REST: POST /deployment/create not working - returning 404

654 views
Skip to first unread message

gar...@tdbfusion.com

unread,
Nov 12, 2014, 11:20:06 AM11/12/14
to camunda-...@googlegroups.com
HI All,

I'm struggling to deploy a process via the REST api ( Works fine via Java API ). I'm getting a 404 ( not found ).

Has the URI changed ? <deploymentURL>/engine-rest/deployment/create

All other webservices are working fine and as expected. Im posting a multipart mime, but given the 404 it appears to be failing before Camunda even tries to interrogate the payload. ( nothing in the logs to go on as 404 cant go anywhere )

Any ideas ?

Thanks

Gareth

e.g
12 Nov 2014 16:15:59,721 - main - DEBUG - org.springframework.http.client.support.HttpAccessor.createRequest(HttpAccessor.java:78) - Created POST request for "http://localhost:8081/engine-rest/deployment/create"
12 Nov 2014 16:15:59,724 - main - DEBUG - org.springframework.web.client.RestTemplate$AcceptHeaderRequestCallback.doWithRequest(RestTemplate.java:579) - Setting request Accept header to [text/plain, application/json, application/*+json, */*]
12 Nov 2014 16:15:59,725 - main - DEBUG - org.springframework.web.client.RestTemplate$HttpEntityRequestCallback.doWithRequest(RestTemplate.java:653) - Writing [{deployment-name=[UnitTestProcess], enable-duplicate-filtering=[true], deploy-changed-only=[true], *=[<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:camunda="http://activiti.org/bpmn" id="federos-definition" targetNamespace="http://tdbfusion.com/federos">
<process id="federos-0A02003677BB227AF1DBD1B533C849CA" isExecutable="true" name="PT1">
<laneSet id="laneSet_4bd7ccdd-98f8-4f90-889b-f9407a808d5b">
<lane id="lane_a93ac62b-4437-45a3-9fc9-dff01766e4b5" name="admin">
<flowNodeRef>GUID-0A02004943714A3EFC0D3E1E49D84F27</flowNodeRef>
<flowNodeRef>GUID-0A02004943714A3E7EA6C5F117D14F7A</flowNodeRef>
<flowNodeRef>GUID-0A02004943714A3E96AEC9D00D534F06</flowNodeRef>
</lane>
</laneSet>
<endEvent id="GUID-0A02004943714A3EFC0D3E1E49D84F27" name="Silent end">
<incoming>GUID-7F0000013D0B754553B2316E7BD14DCD</incoming>
</endEvent>
<task id="GUID-0A02004943714A3E7EA6C5F117D14F7A" name="Demo Abstract task">
<incoming>GUID-0A02004943714A3EFA24B46354624470</incoming>
<outgoing>GUID-7F0000013D0B754553B2316E7BD14DCD</outgoing>
</task>
<startEvent camunda:async="true" id="GUID-0A02004943714A3E96AEC9D00D534F06" name="Manual start">
<outgoing>GUID-0A02004943714A3EFA24B46354624470</outgoing>
</startEvent>
<sequenceFlow id="GUID-0A02004943714A3EFA24B46354624470" sourceRef="GUID-0A02004943714A3E96AEC9D00D534F06" targetRef="GUID-0A02004943714A3E7EA6C5F117D14F7A"/>
<sequenceFlow id="GUID-7F0000013D0B754553B2316E7BD14DCD" sourceRef="GUID-0A02004943714A3E7EA6C5F117D14F7A" targetRef="GUID-0A02004943714A3EFC0D3E1E49D84F27"/>
</process>
<collaboration id="collaboration_2131955d-e2ff-41e9-92cf-9a765cf771a7">
<participant id="participant_93dfc05f-cbc7-4f41-8e9b-8f68c8375662" name="admin" processRef="federos-0A02003677BB227AF1DBD1B533C849CA"/>
</collaboration>
</definitions>]}] as "application/x-www-form-urlencoded" using [org.springframework.http.converter.support.AllEncompassingFormHttpMessageConverter@64a2ad8]
12 Nov 2014 16:15:59,737 - main - WARN - org.springframework.web.client.RestTemplate.handleResponseError(RestTemplate.java:529) - POST request for "http://localhost:8081/engine-rest/deployment/create" resulted in 404 (Not Found); invoking error handler
--
Confidentiality Notice:
The contents of this e-mail and any attachments are intended for the named
addressee only and may be confidential. Unless you are the named addressee
or authorised to receive the e-mail of the named addressee, you may not
disclose, use or copy the contents of this e-mail. If you have received
this e-mail in error, please contact the sender and delete the e-mail
immediately. TDB Holdings Limited and its associated group companies do not
accept responsibility for this message and any views or opinions contained
within this e-mail are solely those of the author unless expressly stated
otherwise.

Sebastian Menski

unread,
Nov 12, 2014, 11:23:25 AM11/12/14
to camunda-...@googlegroups.com, gar...@tdbfusion.com
Hi Gareth,

which version of camunda do you use? The deployment REST resource was added in the 7.2.0 development. So if your are using
7.1.x it isn't available.

Cheers,
Sebastian
Message has been deleted

gar...@tdbfusion.com

unread,
Nov 12, 2014, 11:40:07 AM11/12/14
to camunda-...@googlegroups.com, gar...@tdbfusion.com
Sorry I should know better than to miss that out - Im using 7.1. Thanks for the information - that explains a lot !

Can I suggest a version number is added to the API documentation ? ( There is no way of knowing which version it is for ) http://docs.camunda.org/latest/api-references/rest/#overview

Thanks for the speedy reply - its very much appreciated.

Gareth

Sebastian Menski

unread,
Nov 12, 2014, 11:43:11 AM11/12/14
to camunda-...@googlegroups.com, gar...@tdbfusion.com
Hi Gareth,

the latest docs [1] states always the latest released version of camunda BPM, which is most of the time the latest alpha version. If you want to get the docs of a stable release
like 7.1.x or 7.0.x you can select the version in the upper right. Or bookmark the corresponding url [2]. You can always download the latest alpha from our download page [3]
(you have to scroll below the last stable release).

Cheers,
Sebastian

gar...@tdbfusion.com

unread,
Nov 12, 2014, 11:57:06 AM11/12/14
to camunda-...@googlegroups.com, gar...@tdbfusion.com
Awesome - Thanks Sebastian - Id never noticed the dropdown and assumed ( incorrectly ) that latest, would be the latest released.

Bring on 7.2 :)
Reply all
Reply to author
Forward
0 new messages