on 04-09-2005 3:04 PM
Hello everybody,
Ive got a problem with connecting to SAP DB via JDBC from a jsp. Im using WAS 6.40 SP 9 Snake Preview on Max DB.
Here is the story:
Im tying to use a web based query tool called ART (http://sourceforge.net/projects/art/). So Ive downloaded the war file (war.art) and deployed it successfully to the SAP j2ee engine. Ive tested it, and it seemed to work fine (I can call all jsp-s). But when I try to connect to the SAP DB, I get the following Error: ClassNotFound. I use the following URL and driver: jdbc:sapdb://ip_address/db_name,
com.sap.dbtech.jdbc.DriverSapDB
Ive imported the jdbc driver with visual administrator (JDBC connections -> new driver). But there was still this error. Ive found out, that in the core_lib library, there is already this sapdbc.jar file.
Ive done following, to get this tool working:
1. Ive unzipped the art.war
2. Ive added the sapdbc.jar to the web-inf/lib folder.
3. Ive zipped it
4. and deployed,
and it works fine.
But I dont like this solution. So my question is:
how can I use the jdbc driver, without changing the web archive (art.war) file.
Any help appreciated
Pawel
i hope this help you
1. with visual administrator upload the archives jdbc... this jdbc not is the same that use your instance SAP
2. verify the jdbc creating a datasource and this section exist a section the test..
use the Natve SQL
in VA:
/cluster/services/jdbc_connector
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.