unable to start ballerina as gateway

强颜欢笑 提交于 2020-01-05 04:41:30

问题


I've downloaded the WSO2-ApiManager-3.0.0-m2 release and I'm trying to invoke an api via the ballerina gateway(version 0.88). When I'm trying to start ballerina with:

bin/ballerina run service deployment/org/wso2/apim/

it gives me ballerina: no such file or directory: deployment/org/wso2/apim

If I manually create that directory in $gwHome I get ballerina: no bal files in the package: deployment/org/wso2/apim

How do I start the ballerina gateway?


回答1:


WSO2-ApiManager-3.0.0-m2 works with ballerina 0.85 version. Here you have to set an environment variable as 'gwHome' by pointing to the Ballerina home directory. Then start APIM and publish an API which will create the deployment/org/wso2/apim path in ballerina and also create an API there. Then you can start ballerina with the same command.

Also note that, APIM 3.0.0 M3 will be released end of this week or early next week, which has major changes.



来源:https://stackoverflow.com/questions/44550713/unable-to-start-ballerina-as-gateway

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!