2012-11-28 54 views
1

我在啓動ESB時遇到問題。它安裝到以下INFO消息後,遠程倉庫後立即出現故障,但以前就開始不與相同配置的任何問題:WSO2 ESB 4.5.0掛載到遠程註冊表後無法啓動,掛起

TID: [] [WSO2 Enterprise Service Bus] [2012-11-28 15:16:22,604] INFO {org.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent} - Registry Mode : READ-WRITE {org.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent} 

我已經啓用調試並注意到一些反覆出現的消息從未停止發生:

TID: [] [WSO2 Enterprise Service Bus] [2012-11-28 15:25:21,926] DEBUG {org.wso2.carbon.registry.core.statistics.StatisticsLog} - Total Number of Connections Created  : 598 {org.wso2.carbon.registry.core.statistics.StatisticsLog} 
TID: [] [WSO2 Enterprise Service Bus] [2012-11-28 15:25:21,926] DEBUG {org.wso2.carbon.registry.core.statistics.StatisticsLog} - Total Number of Connections Closed  : 614 {org.wso2.carbon.registry.core.statistics.StatisticsLog} 
TID: [] [WSO2 Enterprise Service Bus] [2012-11-28 15:25:21,926] DEBUG {org.wso2.carbon.registry.core.statistics.StatisticsLog} - Total Number of Connections Committed : 614 {org.wso2.carbon.registry.core.statistics.StatisticsLog} 
TID: [] [WSO2 Enterprise Service Bus] [2012-11-28 15:25:21,926] DEBUG {org.wso2.carbon.registry.core.statistics.StatisticsLog} - Total Number of Connections Rollbacked : 0 {org.wso2.carbon.registry.core.statistics.StatisticsLog} 
TID: [] [WSO2 Enterprise Service Bus] [2012-11-28 15:25:21,926] DEBUG {org.wso2.carbon.registry.core.statistics.StatisticsLog} - Total Number of Statements Prepared  : 402 {org.wso2.carbon.registry.core.statistics.StatisticsLog} 
TID: [] [WSO2 Enterprise Service Bus] [2012-11-28 15:25:21,926] DEBUG {org.wso2.carbon.registry.core.statistics.StatisticsLog} - Total Number of Statements Closed  : 402 {org.wso2.carbon.registry.core.statistics.StatisticsLog} 
TID: [] [WSO2 Enterprise Service Bus] [2012-11-28 15:25:21,926] DEBUG {org.wso2.carbon.registry.core.statistics.StatisticsLog} - Total Number of Active Transactions  : 0 {org.wso2.carbon.registry.core.statistics.StatisticsLog} 
TID: [] [WSO2 Enterprise Service Bus] [2012-11-28 15:25:22,115] DEBUG {org.wso2.carbon.registry.core.statistics.StatisticsLog} - Total Number of get calls    : 36 {org.wso2.carbon.registry.core.statistics.StatisticsLog} 
TID: [] [WSO2 Enterprise Service Bus] [2012-11-28 15:25:22,115] DEBUG {org.wso2.carbon.registry.core.statistics.StatisticsLog} - Total Number of put calls    : 0 {org.wso2.carbon.registry.core.statistics.StatisticsLog} 
TID: [] [WSO2 Enterprise Service Bus] [2012-11-28 15:25:22,115] DEBUG {org.wso2.carbon.registry.core.statistics.StatisticsLog} - Total Number of import calls    : 0 {org.wso2.carbon.registry.core.statistics.StatisticsLog} 
TID: [] [WSO2 Enterprise Service Bus] [2012-11-28 15:25:22,115] DEBUG {org.wso2.carbon.registry.core.statistics.StatisticsLog} - Total Number of move calls    : 0 {org.wso2.carbon.registry.core.statistics.StatisticsLog} 
TID: [] [WSO2 Enterprise Service Bus] [2012-11-28 15:25:22,115] DEBUG {org.wso2.carbon.registry.core.statistics.StatisticsLog} - Total Number of copy calls    : 0 {org.wso2.carbon.registry.core.statistics.StatisticsLog} 
TID: [] [WSO2 Enterprise Service Bus] [2012-11-28 15:25:22,115] DEBUG {org.wso2.carbon.registry.core.statistics.StatisticsLog} - Total Number of rename calls    : 0 {org.wso2.carbon.registry.core.statistics.StatisticsLog} 
TID: [] [WSO2 Enterprise Service Bus] [2012-11-28 15:25:22,115] DEBUG {org.wso2.carbon.registry.core.statistics.StatisticsLog} - Total Number of delete calls    : 0 {org.wso2.carbon.registry.core.statistics.StatisticsLog} 
TID: [] [WSO2 Enterprise Service Bus] [2012-11-28 15:25:22,116] DEBUG {org.wso2.carbon.registry.core.statistics.StatisticsLog} - Total Number of addAssociation calls  : 0 {org.wso2.carbon.registry.core.statistics.StatisticsLog} 
TID: [] [WSO2 Enterprise Service Bus] [2012-11-28 15:25:22,116] DEBUG {org.wso2.carbon.registry.core.statistics.StatisticsLog} - Total Number of removeAssociation calls : 0 {org.wso2.carbon.registry.core.statistics.StatisticsLog} 
TID: [] [WSO2 Enterprise Service Bus] [2012-11-28 15:25:22,116] DEBUG {org.wso2.carbon.registry.core.statistics.StatisticsLog} - Total Number of getAssociations calls : 0 {org.wso2.carbon.registry.core.statistics.StatisticsLog} 
TID: [] [WSO2 Enterprise Service Bus] [2012-11-28 15:25:22,116] DEBUG {org.wso2.carbon.registry.core.statistics.StatisticsLog} - Total Number of getAllAssociations calls : 0 {org.wso2.carbon.registry.core.statistics.StatisticsLog} 
TID: [] [WSO2 Enterprise Service Bus] [2012-11-28 15:25:22,116] DEBUG {org.wso2.carbon.registry.core.statistics.StatisticsLog} - Total Number of executeQuery calls  : 0 {org.wso2.carbon.registry.core.statistics.StatisticsLog} 
TID: [] [WSO2 Enterprise Service Bus] [2012-11-28 15:25:22,116] DEBUG {org.wso2.carbon.registry.core.statistics.StatisticsLog} - Total Number of resourceExists calls  : 234 {org.wso2.carbon.registry.core.statistics.StatisticsLog} 
TID: [] [WSO2 Enterprise Service Bus] [2012-11-28 15:25:22,116] DEBUG {org.wso2.carbon.registry.core.statistics.StatisticsLog} - Total Number of dump calls    : 0 {org.wso2.carbon.registry.core.statistics.StatisticsLog} 
TID: [] [WSO2 Enterprise Service Bus] [2012-11-28 15:25:22,116] DEBUG {org.wso2.carbon.registry.core.statistics.StatisticsLog} - Total Number of restore calls   : 0 {org.wso2.carbon.registry.core.statistics.StatisticsLog} 
TID: [] [WSO2 Enterprise Service Bus] [2012-11-28 15:25:24,262] DEBUG {org.wso2.carbon.user.core.util.DatabaseUtil} - Total Number of Connections Created  : 2 {org.wso2.carbon.user.core.util.DatabaseUtil} 
TID: [] [WSO2 Enterprise Service Bus] [2012-11-28 15:25:24,262] DEBUG {org.wso2.carbon.user.core.util.DatabaseUtil} - Total Number of Connections Closed  : 12 {org.wso2.carbon.user.core.util.DatabaseUtil} 

完整的日誌可用here

主datasource.xml:

<datasource> 
     <name>WSO2_CARBON_DB</name> 
     <description>The datasource used for registry and user manager</description> 
     <jndiConfig> 
      <name>jdbc/WSO2CarbonDB</name> 
     </jndiConfig> 
     <definition type="RDBMS"> 
      <configuration> 
       <url>jdbc:mysql://localhost:3306/WSO2_ESB?autoReconnect=true</url> 
       <username>username</username> 
       <password>password</password> 
       <driverClassName>com.mysql.jdbc.Driver</driverClassName> 
       <maxActive>50</maxActive> 
       <maxWait>60000</maxWait> 
       <testOnBorrow>true</testOnBorrow> 
       <validationQuery>SELECT 1</validationQuery> 
       <validationInterval>30000</validationInterval> 
      </configuration> 
     </definition> 
    </datasource> 

    <datasource> 
     <name>WSO2_CARBON_DB_GREG</name> 
     <description>The datasource used for registry </description> 
     <jndiConfig> 
      <name>jdbc/WSO2CarbonDB_GREG</name> 
     </jndiConfig> 
     <definition type="RDBMS"> 
      <configuration> 
       <url>jdbc:mysql://localhost:3306/WSO2_REGISTRY?autoReconnect=true</url> 
       <username>username</username> 
       <password>password</password> 
       <driverClassName>com.mysql.jdbc.Driver</driverClassName> 
       <maxactive>50</maxactive> 
       <maxwait>60000</maxwait> 
       <testonborrow>true</testonborrow> 
       <validationquery>SELECT 1</validationquery> 
       <validationinterval>30000</validationinterval> 
      </configuration> 
     </definition> 
    </datasource> 

registry.xml:

<currentDBConfig>wso2registry</currentDBConfig> 
<readOnly>false</readOnly> 
<enableCache>true</enableCache> 
<registryRoot>/</registryRoot> 

<dbConfig name="wso2registry"> 
    <dataSource>jdbc/WSO2CarbonDB</dataSource> 
</dbConfig> 

<dbConfig name="wso2registry_mounted"> 
    <dataSource>jdbc/WSO2CarbonDB_GREG</dataSource> 
</dbConfig> 

<remoteInstance url="https://localhost:9443/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> 

沒有人遭遇了同樣的問題?

在此先感謝, 弗拉基米爾。

回答

0

我注意到您的配置中存在標記錯誤。標記區分大小寫。下面的標籤在您的第二個數據源配置中是錯誤的。

<maxactive>50</maxactive> 
<maxwait>60000</maxwait> 
<testonborrow>true</testonborrow> 
<validationquery>SELECT 1</validationquery> 
<validationinterval>30000</validationinterval> 

它應該是,

<maxActive>50</maxActive> 
<maxWait>60000</maxWait> 
<testonBorrow>true</testonBorrow> 
<validatiOnQuery>SELECT 1</validatiOnQuery> 
<validatiOnInterval>30000</validatiOnInterval> 

同一時間,你可以按照指南[1]。

  1. http://ajithvblogs.blogspot.com/2012/09/create-jdbc-mount-to-wso2-governance.html
+0

感謝您指出這一點。即使使用錯誤的配置,它也會正確啓動,因爲它只是忽略了miscased標籤。但問題依然存在。 –

+0

你可以附加你當前的註冊表配置嗎? – ChamaraS

0

只是有這個問題,有人被卡在它試圖安裝兩個支座我們設立的一個點。我們發現通過評論一個它的工作。

我們最終的解決方案是同時安裝新建文件夾並將所有內容移入其中,刪除舊文件夾,然後重新命名新文件夾。