1

テスト接続が正常ではないなどのエラーに直面しています。
bam lib に postgres jar ファイルを追加しました。また、このエラーが表示されます:

[2013-08-16 11:00:30,787] ERROR {org.wso2.carbon.ndatasource.core.DataSourceRepository} -  Error establishing data source connection: org.postgresql.Driver
org.wso2.carbon.ndatasource.common.DataSourceException: Error establishing data source connection: org.postgresql.Driver

どうすればこれを解決できますか?

4

2 に答える 2

0

Postgre を RDBMS タイプとして構成するには、[1]のSetup Configuration Filesセクションに従ってください。

[1] http://docs.wso2.org/display/BAM240/Setting+up+with+PostgreSQL

于 2013-12-04T14:22:14.100 に答える
0

で正しいデータ ソース構成があることを確認してください<BAM_HOME>/repository/conf/datasources/ master-datasources.xml。次のようになります。jar ファイルを<BAM_HOME>/repository/components/libフォルダーに追加します。

<datasource> 
        <name>WSO2BAM_POSTGRESQL</name> 
        <description>The datasource used for registry and user manager</description> 
        <jndiConfig> 
            <name>jdbc/WSO2Bam_Postgresql</name> 
        </jndiConfig> 
        <definition type="RDBMS"> 
            <configuration> 
                <url>jdbc:postgresql://localhost:5432/WSO2Bam_Postgresql</url> 
                <defaultAutoCommit>false</defaultAutoCommit> 
                <username>postgres</username> 
                <password>postgres</password> 
                <driverClassName>org.postgresql.Driver</driverClassName> 
                <maxActive>50</maxActive> 
                <maxWait>60000</maxWait> 
                <testOnBorrow>true</testOnBorrow> 
                <validationQuery>SELECT 1</validationQuery> 
                <validationInterval>30000</validationInterval> 
            </configuration> 
        </definition> 
    </datasource>
于 2013-08-16T06:57:45.847 に答える