cancel
Showing results for 
Search instead for 
Did you mean: 

Web Dynpro - Connection via JDBC

Former Member
0 Kudos

Hi,

I try to connect via jdbc in a Web Dynpro to the MaxDB (I have installed the Sneak Preview only with Java WebAS). I know that i not the correct way, but I it is only a test.

I have add the sabdb.jar in the Web dynpro project - and add it to Order and Export - than I wrote following code into the wdDoInit() method:

/*

  • parse arguments

*/

try{

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

}catch(ClassNotFoundException e1){

}

- But I get always a java.lang.ClassNotFoundException:

com.sap.dbtech.jdbc.DriverSapDB

I find no way out - can anybody help?

Thanks

Stefan Porges

View Entire Topic
guru_subramanianb
Active Contributor
0 Kudos

Hi Stefan,

pls check the corresponding sabdb.jar exits in the "lib" folder of your WebDynpro project.Normally you get this kind of ClassNotFound Exception when the classpath is not being set ie the the application is unable to find the driver file to connect to the particular Database.

Pls close this thread if it helps.

Regards,

Guru

Former Member
0 Kudos

Hi,

many thanks it helps!

Stefan