cancel
Showing results for 
Search instead for 
Did you mean: 

having problems with com.sap.dbtech.jdbc.DriverSapDB

Former Member
0 Kudos

Hi all,

I'm using webdynpro and i need to connect to a db.

the line below throghs the Exception

the line above throghs an Exception ClassNotFoundException

Class.forName("com.sap.dbtech.jdbc.DriverSapDB");

I have imported thre jar sapDB.jar what else can i do?

I want to connect to an sql DB via java and i stack.

need your help,

Yoav

Message was edited by: Yoav Toussia Cohen

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Yoav,

I belive you put the database access codes in your Web Dynpro's implementation. In this case you need to have your JDBC driver deployed as shared library to the server. You also need to define the Library Reference in your Web Dynpro's project properties.

However, this is not a good approach and Web Dynpro never intends for business process development. You should have an EJB wrapped your database access. Then import this EJB as a model in Web Dynpro to preserve the MVC separation. Always remember Web Dynpro is an UI development tool and not for business process.

Regards,

Marc

Answers (0)