如何为API Manager群集产品配置Deployment Synchronizer

时间:2015-03-10 10:47:55

标签: wso2 wso2-am

我已经配置了API Manager集群环境,并将产品分为GatewayManager,GatewayWorker,KeyManager,APIPublisher和AP​​IStore。现在我想配置基于SVN的部署sychronizer,但是根据文档https://docs.wso2.com/display/CLUSTER420/SVN-based+Deployment+Synchronizer,似乎只能使用svn同步器配置管理器和工作节点,如何为KeyManager,APIPublisher和AP​​IStore配置它? 下面是我的ELB loadbalancer.conf:

apimanager {
    domains   {
        abc.wso2am.domain {
            tenant_range    *;
            group_mgt_port 4560;
            mgt {
                hosts   mgt.wso2am.abc.com;
            }
            worker {
                hosts   wso2am.abc.com;
            }
        }
        abc.wso2am.key.domain {
            tenant_range    *;
            group_mgt_port 4580;
            key {
                hosts   key.wso2am.abc.com;
            }
        }

        abc.api.pub-store.domain {
            tenant_range    *;
            group_mgt_port 4590;
            publisher {
                hosts   api-publisher.abc.com;
            }
            store {
                hosts   api-store.abc.com;
            }
        }
    }
}

carbon.xml中的GatewayManager,KeyManager,API Publisher和AP​​I商店的svn配置如下:

<DeploymentSynchronizer>
    <Enabled>true</Enabled>
    <AutoCommit>true</AutoCommit>
    <AutoCheckout>true</AutoCheckout>
    <RepositoryType>svn</RepositoryType>
    <SvnUrl>svn://wso2svnrep:6001/depsync_am/</SvnUrl>
    <SvnUser>test</SvnUser>
    <SvnPassword>test</SvnPassword>
    <SvnUrlAppendTenantId>true</SvnUrlAppendTenantId>
</DeploymentSynchronizer>

当我在API Publisher中设置svn config时,它在启动时出现以下错误:

TID: [0] [AM] [2015-03-10 06:56:50,609] ERROR {org.apache.catalina.core.ApplicationContext} -  StandardWrapper.Throwable {org.apache.catalina.core.ApplicationContext}

org.springframework.beans.factory.BeanCreationException:创建名称为&#39; tokEP&#39;的bean时出错:无法解析对bean的引用&#39; authzEndpointBean&#39;在设置bean属性&#39; serviceBeans&#39;用键[0];嵌套异常是org.springframework.beans.factory.BeanCreationException:创建名为&#39; authzEndpointBean&#39;的bean时出错。在URL [jndi:/localhost/oauth2/WEB-INF/cxf-servlet.xml]中定义:bean的实例化失败;嵌套异常是java.lang.NoClassDefFoundError:org / wso2 / carbon / identity / oauth / cache / AuthorizationGrantCacheKey ...

1 个答案:

答案 0 :(得分:0)

您需要为网关配置depsync,因为API工件部署在网关中。如果你配置了二级用户界面,你也需要知识管理器的depsync。(也就是说,你需要有经理/工人)。否则,你可以在所有节点中复制二级usertsore的user-mgt.xml。