Quantcast
Viewing all articles
Browse latest Browse all 3285

Deploy java app on Cloud foundry in using user-provided-service

Hello,

 

 

I’m trying to run my app in the Cloud Foundry but I get an error.

 

What I’m doing is creating a user provided service connect to our Hana instance, just as this page said :

https://github.wdf.sap.corp/xs2/xs2-docs/wiki/User-Provided%20Databases

 

But finally my app doesn’t work, and I get an error :

 

Cannot create JDBC driver of class '' for connect URL 'null'

Caused by: java.sql.SQLException: No suitable driver

 

It seems that there is no jdbc driver in the server.  Can anyone help me ?

 

PS : Locally, my app works well. I put the ngdbc.jar in TOMCAT_HOME/lib, and set the context as :

<Resourceauth="Container" 

driverClassName="com.sap.db.jdbc.Driver"

maxActive="100"maxIdle="30"maxWait="10000"

name="jdbc/DefaultDB"username="xxx"password="xxx"

type="javax.sql.DataSource"url="jdbc:sap://xxx.wdf.sap.corp:30015/"/>

 

 

Thanks

 

Yan Xu


Viewing all articles
Browse latest Browse all 3285

Trending Articles