on 04-22-2007 6:22 AM
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.