DEV Community

Discussion on: Getting started with Hyperledger Composer and private blockchains

Collapse
 
prasadraavi profile image
prasadraavi

Hi Damien,

Firstly let me thank you for wonderful guidance on how to create blockchain business network.

I am halfway through but got stuck with deployment. I am getting the following error, could you please help me with the mistake I am doing and how can overcome that issue. Thanks in advance.


Issue :

I am getting the following error when I try to execute the commands for business network deployment. Can somebody help me with a solution for this. I am using ubuntu 16.04 ver.

Error :
dev1@localhost:~/land-registry$ composer archive create -t dir -n .
Creating Business Network Archive

Looking for package.json of Business Network Definition
Input directory: /home/dev1/land-registry
ParseException: Expected "namespace", comment, end of line or whitespace but "*" found. File /home/dev1/land-registry/models/org.acme.landregistry.cto line 19 column 1
Command failed

Collapse
 
eoghanr profile image
EoghanR • Edited

Hi prasadraavi,

I don't know if you still need this, but I'll put it here in case anyone else has this issue. In the .cto file, you need to have the line "namespace org.acme.landregistry". The same would need to be done with any other cto file by having namespace {your .cto file here} without the .cto attached.

I'm not sure if this is a universal solution, but it's the one that worked for me.

Best,
Eoghan