2012-10-18 80 views
3

我想上安裝遠程註冊表,以ESB爲4.5.0建議在這裏:http://ajithvblogs.blogspot.com/2012/09/create-jdbc-mount-to-wso2-governance.html遠程註冊表無法安裝在WSO2 ESB 4.5.0

一切都在按給出的指令完成的 - 但是我得到在ESB啓動期間出現以下錯誤:

TID: [] [WSO2 Enterprise Service Bus] [2012-10-18 07:48:42,555] WARN {org.wso2.carbon.registry.core.config.RegistryConfigurationProcessor} - The instance  identifier was not specified for the mount: /_system/config {org.wso2.carbon.registry.core.config.RegistryConfigurationProcessor} 

TID: [] [WSO2 Enterprise Service Bus] [2012-10-18 07:48:42,557] WARN {org.wso2.carbon.registry.core.config.RegistryConfigurationProcessor} - The instance identifier was not specified for the mount: /_system/governance {org.wso2.carbon.registry.core.config.RegistryConfigurationProcessor} 

沒有其他錯誤。

ESB registry.xml代碼片段:

<dbconfig name="wso2registry_mounted"> 
    <datasource>jdbc/WSO2CarbonDB_GREG</datasource> 
</dbconfig> 

<remoteinstance url="https://localhost:9445/registry"> 
    <id>wso2_registry_mounted</id> 
    <dbconfig>wso2registry_mounted</dbconfig> 
    <readonly>false</readonly> 
    <enablecache>true</enablecache> 
    <registryroot>/</registryroot> 
</remoteinstance> 

<mount overwrite="true" path="/_system/config"> 
    <instanceid>wso2_registry_mounted</instanceid> 
    <targetpath>/_system/nodes</targetpath> 
</mount> 

<mount overwrite="true" path="/_system/governance"> 
    <instanceid>wso2_registry_mounted</instanceid> 
    <targetpath>/_system/governance</targetpath> 
</mount> 

可能有人建議有什麼不對嗎?

最好的問候, 弗拉基米爾。

回答

1

在配置中它應該是<instanceId>而不是<instanceid>。有類似的駱駝案例問題。請看看這個配置元素。

<remoteInstance url="https://localhost:9447/registry"> 
     <id>instanceid</id> 
     <dbConfig>govRegistry</dbConfig> 
     <readOnly>true</readOnly> 
     <enableCache>true</enableCache> 
     <registryRoot>/</registryRoot> 
    </remoteInstance> 

    <mount path="/_system/config" overwrite="true"> 
     <instanceId>instanceid</instanceId> 
     <targetPath>/_system/esb</targetPath> 
    </mount> 

    <mount path="/_system/governance" overwrite="true"> 
     <instanceId>instanceid</instanceId> 
     <targetPath>/_system/governance</targetPath> 
    </mount>