Reputation: 403
I want to change the namespace in my model code (mymodel.cto) different from (org.acme.sample). I'm trying to create the Business Network Definition with:
composer archive create....
I received the following error:
IllegalModelException: Failed to find namespace org.mymodel
I know that with Hyperledger Composer, you can't change the domain, but this is with my own local instance of Hyperledger Composer. How can I set my own domain on the Business Network Definition?
Upvotes: 0
Views: 968
Reputation: 251
I had a similar issue and it was because of a mismatch in naming convention. Some of the tutorials have the model file in a sub-namespace, i.e. org.myorg.myapp.model where all the references in the logic.js & queries.js also referred to the models in org.myorg.myapp.model, but I tried to use the 'top level' namespace 'org.myorg.myapp' in the permissions.acl
When I changed the namespace (and references) to org.myorg.myapp (i.e. removed the .model) then it matched what was in the permissions.acl and worked.
So I don't think the correct answer is to remove your acl but to fix the name mismatch.
Upvotes: 0
Reputation: 403
I just delete the file permissions.acl (with had the correct domain) and it works ...
Upvotes: 1