Hi All
I need to deploy the Spring based Java Application in the HANA Cloud, i am not able to get the Data source giving error
2016 05 17 14:33:45#INFO#LJS_OUTPUT#Thread-11#14:33:45.128 [localhost-startStop-1] ERROR c.s.c.r.k.p.client.PersistenceDataSourceFactory - An exception occurred during rest communication with local config service: java.io.FileNotFoundException: http://localhost:20002/config/v1/services/persistence/jdbc/someothername|
2016 05 17 14:33:45#INFO#LJS_OUTPUT#Thread-11#14:33:45.129 [localhost-startStop-1] ERROR c.s.c.r.k.p.client.PersistenceDataSourceFactory - Retrieved persistence properties are null!|
Here is the Data source config details
Image may be NSFW.
Clik here to view.
and my web.xml as below
<resource-ref>
<description>DB Connection</description>
<res-ref-name>jdbc/someothername</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
</resource-ref>
and the i tried though JNDI Lookup
@Bean
public DataSource getDataSource() {
final JndiDataSourceLookup dsLookup = new JndiDataSourceLookup();
dsLookup.setResourceRef(true);
DataSource dataSource = dsLookup.getDataSource("jdbc/someothername");
return dataSource;
}
and i tired directly as
@Resource
DataSource dataSource
and also
@Resource("jdbc/someothername")
DataSource dataSource
Help me how to solve this issue
Thanks
Chiranjeevi GK