wso2carbon - I cant able to connect the datasource in wso2 bam 2.3.0 -
i facing error test connection not healthy.
added postgres jar file in bam lib. showing me error:
[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 how can solve this?
make sure have correct data-source configuration in <bam_home>/repository/conf/datasources/ master-datasources.xml. should similar following. , add jar files in <bam_home>/repository/components/lib folder.
<datasource> <name>wso2bam_postgresql</name> <description>the datasource used registry , 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>
Comments
Post a Comment