Quantcast
Channel: SCN : Popular Discussions - Web Dynpro Java
Viewing all articles
Browse latest Browse all 989

java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver

$
0
0

Hi,

We are working on NW 7.3 and trying to connect a Web Dynpro application to Oracle 10g Database. The JDK version is 1.6. We are getting the following error during Runtime:

 

Exception:java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver ------------------------- Loader Info ------------------------- ClassLoader name: [demo.sap.com/testwd] Loader hash code: 48c3794 Living status: alive Direct parent loaders:   [system:Frame]   [interface:webservices]   [interface:cross]   [interface:security]   [interface:transactionext]   [library:webservices_lib]   [library:opensql]   [library:jms]   [library:ejb20]   [service:p4]   [service:ejb]   [service:servlet_jsp]   [library:tc~bl~logging~api]   [library:tc~aii~base~offline~facade]   [library:tc~cmi]   [library:tc~ddic~runtime~facade]   [sap.com/tc~wd~api]   [library:tc~bl~exception~lib] Resources:   E:\usr\sap\CEX\J10\j2ee\cluster\apps\demo.sap.com\testwd\servlet_jsp\webdynpro\resources\demo.sap.com\testwd\root\WEB-INF\lib\demo.sap.com~testwd.jar

 

 

Let me explain what I have done till now:

1) Downloaded the Oracle 10g JDBC driver using the following link: http://www.oracle.com/technetwork/database/enterprise-edition/jdbc-10201-088211.html

Please note that there is no specific driver available for JDK 1.6. Hence I have used ojdbc14.jar. Searched everywhere on net but did not find a specific Oracle 10g JDBC driver for JDK 1.6.

2) Created a Web Dynpro project and added ojdbc14.jar as an External Library under Java Build Path of the project.

3) Also added the jar in the lib folder of the Web Dynpro folder.

4) Wrote a single line of code in the wdDoInit() method of the Component Controller:

Class.forName("oracle.jdbc.driver.OracleDriver");

5) Build and deploy the application.

 

 

For information, I tried performing the exact same steps in NW 7.0 with same Oracle version and JDK version as 1.4. I am successfully able to connect to the DB and fetch the data.

 

Request anyone to please share any information that can be useful for resolving this issue. Also, I am not looking to use EJBs as a middle layer between WD and Database.

 

Thanks & Regards,

Ankur Garg


Viewing all articles
Browse latest Browse all 989

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>