on 02-01-2013 7:07 AM
HI All,
I am trying to make a JDBC call from my webdynpro application in 7.3. I have followed the below link to create external lib dc and added reference to the webdynpro project.
The below line to load the JDBC drive class is throwing class not found exception. I have used the mail.jar as well and all the classes related that jar are working fine during runtime. Why am i having problem finding just one class in runtime. If i comment the below line, my code fails during the Drivermanager.getconnection method as the Driver is nor registered, but i dont have problem using any other class during runtime.
Class.forName("oracle.jdbc.driver.OracleDriver");
java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
Apart from adding the ear assembly as dependency do we need to do any thing else??.
Thanks,
ravi.
make sure you followed the doc correctly
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jun, thanks for the reply. I did follow the document. I am not sure what i am missing here.
I have mail.jar as well in the same external lib project. I am able to use the classes and send out email. Why is that only my
Class.forName("oracle.jdbc.driver.OracleDriver"); is throwing exception..do we need any other jar or special reference for Database drivers.
Regards,
Ravi.
Hi,
Add classes12.jar file under lib folder also add the jar file under build path.
Regards,
Manivannan P
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.