2014-12-02 68 views
0

我已經通過WSO2 DOC了: https://docs.wso2.com/display/Governance460/Changing+Storage+Location+of+Services如何更改服務的存儲位置WSO2 governancy註冊表

當我改變服務的regisrty.xml文件的位置

<staticConfiguration> 
    <versioningProperties>true</versioningProperties> 
    <versioningComments>true</versioningComments> 
    <versioningTags>true</versioningTags> 
    <versioningRatings>true</versioningRatings> 
    <!-- Location you want to add service and default location will be /services/ --> 
    <servicePath>/trunk/services/mylocation</servicePath> 
</staticConfiguration> 

時曾經試圖註冊服務投擲以下異常:

錯誤{} org.wso2.carbon.governance.api.common.GovernanceArtifactManager - 無法添加神器:神器ID:153b122e-5b4f -4e8e-bbe0-e7934da571d0,路徑:/ trunk/services/mylocation/sample/com/myservice。資源不存在於path/_system/governance/trunk/services/sample/com org.wso2.carbon.registry.core.exceptions.ResourceNotFoundException:資源不存在於路徑/ _system/governance/trunk/services/sample/COM

如何解決錯誤提前

謝謝...

+0

希望下面的答案幫助你解決問題?如果你有任何疑問,請告訴我們。 – tkr 2016-05-30 11:50:37

回答

0

嘗試在RXT水平,進入首頁>擴展>配置>工件類型>神器源(選擇工件類型)和通過更改以下行更改存儲路徑,

<storagePath>/trunk/services/@{namespace}/@{overview_version}/@{name}</storagePath>