Deployment rest end point to deploy kjar on Business Central not working on 6.3.1
Issue
POST operation issue to the following rest end point is throwing syntax error for deploying the kjar which has been already uploaded in the maven artifact repository of business central. However when we try to manually deploy the kjar using add "New Deployment Unit" from Business Central UI, the kjar is successfully deployed.
curl -X POST -v -w "\n\n" -H 'Content-Type: application/xml' -u bpmsAdmin:bpmsAdmin1@# http://localhost:8080/business-central/rest/deployment/com.sample:JBPMTCPA:1.0.0/deploy
Error Response:
* About to connect() to localhost port 8080 (#0)
* Trying localhost... connected
* Connected to localhost (localhost) port 8080 (#0)
* Server auth using Basic with user 'bpmsAdmin'
> POST /business-central/rest/deployment/com.sample:JBPMTCPA:1.0.0/deploy HTTP/1.1
> Authorization: Basic YnBtc0FkbWluOmJwbXNBZG1pbjFAIw==
> User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.27.1 zlib/1.2.3 libidn/1.18 libssh2/1.4.2
> Host: localhost:8080
> Accept: */*
> Content-Type: application/xml
>
< HTTP/1.1 400 Bad Request
< Server: Apache-Coyote/1.1
< X-FRAME-OPTIONS: SAMEORIGIN
< X-XSS-Protection: 1; mode=block
< Set-Cookie: JSESSIONID=EgwrIxUoI6WZpygc7b-VzZQp.tcpao-bpm-31vyv_0000; Path=/business-central
< Content-Type: text/html;charset=utf-8
< Content-Length: 1358
< Date: Fri, 18 Aug 2017 17:15:13 GMT
< Connection: close
<
<html><head><title>JBWEB000065: HTTP Status 400 - javax.xml.bind.UnmarshalException
- with linked exception:
[org.xml.sax.SAXParseException; Premature end of file.]</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>JBWEB000065: HTTP Status 400 - javax.xml.bind.UnmarshalException
- with linked exception:
[org.xml.sax.SAXParseException; Premature end of file.]</h1><HR size="1" noshade="noshade"><p><b>JBWEB000309: type</b> JBWEB000067: Status report</p><p><b>JBWEB000068: message</b> <u>javax.xml.bind.UnmarshalException
- with linked exception:
* Closing connection #0
[org.xml.sax.SAXParseException; Premature end of file.]</u></p><p><b>JBWEB000069: description</b> <u>JBWEB000120: The request sent by the client was syntactically incorrect.</u></p><HR size="1" nos
Environment
Red Hat JBoss BPM Suite
- 6.3.x
- 6.4.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
