cancel
Showing results for 
Search instead for 
Did you mean: 

DriverSapDB not found

Former Member
0 Kudos

Hi

I am trying to establish connection to MaxDB db on some machine.

When I run my following code:

public void doContent(IPortalComponentRequest request, IPortalComponentResponse response)

{

//open a connection

IConnectorGatewayService Iservice = null;

String className = Iservice.KEY;

IConnectorGatewayService service = null;

service = (IConnectorGatewayService) PortalRuntime.getRuntimeResources().getService(className);

ConnectionProperties prop = new ConnectionProperties(request.getLocale(), request.getUser());

//get connection to my DB

IConnection client = null;

//, NoLogon

try

{

if(service==null)

throw new NullPointerException();

else

client = service.getConnection("LocalMaxDB", prop);

}

catch (NullPointerException np)

{

System.out.println("NULLPOINTEREXCEPTION:")

;np.getLocalizedMessage();

}

I get java.lang.RuntimeException: ClassNotFound Exception: com.sap.dbtech.jdbc.DriverSapDB

I made sure that this class in part of the environment variable and I even ran a little program to see if I can load this driver on that machine.

Now I am stuck with this troublesome ClassNotFoundException.

Any idea would be helpful.

regards

yuval

Accepted Solutions (0)

Answers (1)

Answers (1)

ankur_garg5
Active Contributor
0 Kudos

Hi yuval,

See if any of the following links proves to be of any help:

Bye

Ankur

Do reward points for helpful as well as solved answers!!