error in xml config file

classic Classic list List threaded Threaded
5 messages Options
tomk tomk
Reply | Threaded
Open this post in threaded view
|

error in xml config file

I don;t know why, following error is :
Caused by: class org.apache.ignite.IgniteCheckedException: Failed to instantiate Spring XML application context [springUrl=file:/home/tomk/downloads/apache-ignite-fabric-1.5.0.final-bin/bin/../config/turbines_table_cluster-server.xml, err=Error creating bean with name 'turbines_table_datasource' defined in URL [file:/home/tomk/downloads/apache-ignite-fabric-1.5.0.final-bin/bin/../config/turbines_table_cluster-server.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'url' of bean class [org.postgresql.ds.PGPoolingDataSource]: Bean property 'url' is not writable or has an invalid setter method. Did you mean 'ssl'?]

xml file:
http://pastebin.com/PWi3wWmy

database.properties:
turbines_table_datasource.jdbc.url=jdbc:postgresql://localhost:5432/testdb
turbines_table_datasource.jdbc.username=ignite
turbines_table_datasource.jdbc.password=ignite


Can you help me ?
vkulichenko vkulichenko
Reply | Threaded
Open this post in threaded view
|

Re: error in xml config file

This means that PGPoolingDataSource class doesn't have 'setUrl' method. Quick googling showed that they use separate properties like 'serverName', 'portNumber', etc. You should refer to the JDBC driver documentation to find out how to properly configure it.

-Val
tomk tomk
Reply | Threaded
Open this post in threaded view
|

Re: error in xml config file

Could you tell more about it ? I cant find information in google about it.
vkulichenko vkulichenko
Reply | Threaded
Open this post in threaded view
|

Re: error in xml config file

tomk tomk
Reply | Threaded
Open this post in threaded view
|

Re: error in xml config file

Thanks, it helps me.