Re: [Dev] Deploying Capp using Java Client

2015-11-24 Thread Aruna Karunarathna
On Tue, Nov 24, 2015 at 2:40 PM, Rukshan Premathunga wrote: > Hi Lakshman, > > Yes. It is working if we set file type as "jar" like here[1]. But actually > capp have .car file type. So is this way is correct? > > [1] > https://github.com/arunasujith/capp-upload-admin-service-sample/blob/master/sr

Re: [Dev] Deploying Capp using Java Client

2015-11-24 Thread Rukshan Premathunga
Hi Lakshman, Yes. It is working if we set file type as "jar" like here[1]. But actually capp have .car file type. So is this way is correct? [1] https://github.com/arunasujith/capp-upload-admin-service-sample/blob/master/src/main/java/org/wso2/carbon/cappupload/sample/CarbonAppUploaderClient.java

Re: [Dev] Deploying Capp using Java Client

2015-11-24 Thread Lakshman Udayakantha
For some time ago I used [1] to upload a capp written by aruna. You can use that. [1] https://github.com/arunasujith/capp-upload-admin-service-sample Thanks On Tue, Nov 24, 2015 at 2:17 PM, Lakshman Udayakantha wrote: > what is the error? > > On Tue, Nov 24, 2015 at 2:11 PM, Rukshan Premathung

Re: [Dev] Deploying Capp using Java Client

2015-11-24 Thread Lakshman Udayakantha
what is the error? On Tue, Nov 24, 2015 at 2:11 PM, Rukshan Premathunga wrote: > Hi, > > I was trying to deploy carbon-app (.car file) using java client. For that > i used the *CarbonAppUploader *service. > > Below the code i used to deploy the capp and it is worked fine. > > > File file = new F

[Dev] Deploying Capp using Java Client

2015-11-24 Thread Rukshan Premathunga
Hi, I was trying to deploy carbon-app (.car file) using java client. For that i used the *CarbonAppUploader *service. Below the code i used to deploy the capp and it is worked fine. File file = new File(cAppPath); //get the byte array of file byte[] byteArray = FileUtils.readFileToByteArray(