【发布时间】:2016-08-29 16:07:08
【问题描述】:
在 WSO2 API Manager 中,我想在本地使用 WSO2 ESB 实例来发布 API。我的意思是,我在 /repository/conf/api-manager.xml 中配置了一个类似 Gateway 的 ESB 实例,如下所示:
<APIGateway>
<Environments>
<Environment type="hybrid" api-console="true">
<Name>Production and Sandbox</Name>
<Description> Description of environment</Description>
<!--ServerURL>https://${carbon.local.ip}:${mgt.transport.https.port}${carbon.context}/services/</ServerURL-->
<ServerURL>https://localhost:8243/services/</ServerURL>
<!--Username>${admin.username}</Username-->
<Username>admin</Username>
<!--Password>${admin.password}</Password-->
<Password>admin</Password>
<!--GatewayEndpoint>http://${carbon.local.ip}:${http.nio.port},https://${carbon.local.ip}:${https.nio.port}</GatewayEndpoint-->
<GatewayEndpoint>http://localhost:8280,https://localhost:8243</GatewayEndpoint>
</Environment>
</Environments>
<EnableGatewayKeyCache>true</EnableGatewayKeyCache>
<EnableGatewayResourceCache>true</EnableGatewayResourceCache>
<ClientDomainHeader>referer</ClientDomainHeader>
</APIGateway>
我关注了这篇文章https://docs.wso2.com/display/AM190/Publish+through+Multiple+API+Gateways,只是根据我的 ESB 实例更改了配置。
问题出在 API 发布者中,当我想发布新 API 时出现以下错误:
Failed to change the life cycle status : Invoking lifecycle action "Publish" failed
注意:我将 serviceURL 的端口从 9443 更改为 8243,因为我无法在浏览器中显示 ESB 的服务列表,而使用 8243 我可以看到它。
【问题讨论】: