<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/java-lang-classnotfoundexception-oracle-jdbc-driver-oracledriver/qaa-p/8692816#M3086309</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I added ojdbc14.jar in the Java Build Path as external jar. I also added the jar in the lib folder of the Web Dynpro project. After that I just wrote the JDBC code in Component Controller and built and deployed the application. No error was received and I was able to get data from the database.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 May 2012 01:59:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-05-09T01:59:30Z</dc:date>
    <item>
      <title>java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver</title>
      <link>https://community.sap.com/t5/technology-q-a/java-lang-classnotfoundexception-oracle-jdbc-driver-oracledriver/qaq-p/8692812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;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:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="517303620-08052012"&gt;&lt;SPAN id="AAJC..WD_MessageArea-txt"&gt;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:&amp;nbsp;&amp;nbsp; [system:Frame]&amp;nbsp;&amp;nbsp; [interface:webservices]&amp;nbsp;&amp;nbsp; [interface:cross]&amp;nbsp;&amp;nbsp; [interface:security]&amp;nbsp;&amp;nbsp; [interface:transactionext]&amp;nbsp;&amp;nbsp; [library:webservices_lib]&amp;nbsp;&amp;nbsp; [library:opensql]&amp;nbsp;&amp;nbsp; [library:jms]&amp;nbsp;&amp;nbsp; [library:ejb20]&amp;nbsp;&amp;nbsp; [service:p4]&amp;nbsp;&amp;nbsp; [service:ejb]&amp;nbsp;&amp;nbsp; [service:servlet_jsp]&amp;nbsp;&amp;nbsp; [library:tc~bl~logging~api]&amp;nbsp;&amp;nbsp; [library:tc~aii~base~offline~facade]&amp;nbsp;&amp;nbsp; [library:tc~cmi]&amp;nbsp;&amp;nbsp; [library:tc~ddic~runtime~facade]&amp;nbsp;&amp;nbsp; [sap.com/tc~wd~api]&amp;nbsp;&amp;nbsp; [library:tc~bl~exception~lib] Resources:&amp;nbsp;&amp;nbsp; 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&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="517303620-08052012"&gt;&lt;SPAN&gt;Let me explain what I have done till now:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="517303620-08052012"&gt;&lt;SPAN&gt;1) Downloaded the Oracle 10g JDBC driver using the following link: &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;A href="http://www.oracle.com/technetwork/database/enterprise-edition/jdbc-10201-088211.html" title="http://www.oracle.com/technetwork/database/enterprise-edition/jdbc-10201-088211.html"&gt;http://www.oracle.com/technetwork/database/enterprise-edition/jdbc-10201-088211.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;2) Created a Web Dynpro project and added ojdbc14.jar as an External Library under Java Build Path of the project.&lt;/P&gt;&lt;P&gt;3) Also added the jar in the lib folder of the Web Dynpro folder.&lt;/P&gt;&lt;P&gt;4) Wrote a single line of code in the wdDoInit() method of the Component Controller:&lt;/P&gt;&lt;P&gt;Class.forName("oracle.jdbc.driver.OracleDriver");&lt;/P&gt;&lt;P&gt;5) Build and deploy the application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Ankur Garg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2012 22:38:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/java-lang-classnotfoundexception-oracle-jdbc-driver-oracledriver/qaq-p/8692812</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-05-08T22:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver</title>
      <link>https://community.sap.com/t5/technology-q-a/java-lang-classnotfoundexception-oracle-jdbc-driver-oracledriver/qaa-p/8692813#M3086306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;EMBED height="0" type="application/lingoes-npruntime-capture-word-plugin" width="0"&gt;&lt;/EMBED&gt;you just put the jar build path, it is not enough. it is only available at design time.&lt;/DIV&gt;&lt;DIV&gt;you have to know how to use external lib.&lt;/DIV&gt;&lt;DIV&gt;search in sdn you find a lot.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2012 22:51:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/java-lang-classnotfoundexception-oracle-jdbc-driver-oracledriver/qaa-p/8692813#M3086306</guid>
      <dc:creator>junwu</dc:creator>
      <dc:date>2012-05-08T22:51:18Z</dc:date>
    </item>
    <item>
      <title>Re: java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver</title>
      <link>https://community.sap.com/t5/technology-q-a/java-lang-classnotfoundexception-oracle-jdbc-driver-oracledriver/qaa-p/8692814#M3086307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply. I have already searched a lot on sdn but not for creating an external lib.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following thread has been resolved by you by recommending to put the jar file in the lib folder along with putting it in build path: &lt;A _jive_internal="true" class="active_link" href="https://answers.sap.com/thread/3145699" title="http://scn.sap.com/thread/3145699"&gt;http://scn.sap.com/thread/3145699&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will try to do it using the external lib, but I cannot believe that without external lib, this is not possible. The same thing is working in NWDS 7.0 without external lib.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyways, thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Ankur Garg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2012 22:57:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/java-lang-classnotfoundexception-oracle-jdbc-driver-oracledriver/qaa-p/8692814#M3086307</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-05-08T22:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver</title>
      <link>https://community.sap.com/t5/technology-q-a/java-lang-classnotfoundexception-oracle-jdbc-driver-oracledriver/qaa-p/8692815#M3086308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;EMBED height="0" type="application/lingoes-npruntime-capture-word-plugin" width="0"&gt;&lt;/EMBED&gt;how you did that in nw7?&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2012 00:30:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/java-lang-classnotfoundexception-oracle-jdbc-driver-oracledriver/qaa-p/8692815#M3086308</guid>
      <dc:creator>junwu</dc:creator>
      <dc:date>2012-05-09T00:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver</title>
      <link>https://community.sap.com/t5/technology-q-a/java-lang-classnotfoundexception-oracle-jdbc-driver-oracledriver/qaa-p/8692816#M3086309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I added ojdbc14.jar in the Java Build Path as external jar. I also added the jar in the lib folder of the Web Dynpro project. After that I just wrote the JDBC code in Component Controller and built and deployed the application. No error was received and I was able to get data from the database.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2012 01:59:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/java-lang-classnotfoundexception-oracle-jdbc-driver-oracledriver/qaa-p/8692816#M3086309</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-05-09T01:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver</title>
      <link>https://community.sap.com/t5/technology-q-a/java-lang-classnotfoundexception-oracle-jdbc-driver-oracledriver/qaa-p/8692817#M3086310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes, that's nw7 project, &lt;/P&gt;&lt;P&gt;there is no project in nw7.3, all are DC. the build path is determined by DC dependency, manually adding jar to the build path will not work&lt;/P&gt;&lt;DIV&gt;&lt;EMBED height="0" type="application/lingoes-npruntime-capture-word-plugin" width="0"&gt;&lt;/EMBED&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2012 02:17:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/java-lang-classnotfoundexception-oracle-jdbc-driver-oracledriver/qaa-p/8692817#M3086310</guid>
      <dc:creator>junwu</dc:creator>
      <dc:date>2012-05-09T02:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver</title>
      <link>https://community.sap.com/t5/technology-q-a/java-lang-classnotfoundexception-oracle-jdbc-driver-oracledriver/qaa-p/8692818#M3086311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using the external library this time but still getting the same error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN id="AAJC..WD_MessageArea-txt"&gt;Exception:java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver ------------------------- Loader Info ------------------------- ClassLoader name: [demo.sap.com/testwd] Loader hash code: 7c583538 Living status: alive Direct parent loaders:&amp;nbsp;&amp;nbsp; [system:Frame]&amp;nbsp;&amp;nbsp; [interface:webservices]&amp;nbsp;&amp;nbsp; [interface:cross]&amp;nbsp;&amp;nbsp; [interface:security]&amp;nbsp;&amp;nbsp; [interface:transactionext]&amp;nbsp;&amp;nbsp; [library:webservices_lib]&amp;nbsp;&amp;nbsp; [library:opensql]&amp;nbsp;&amp;nbsp; [library:jms]&amp;nbsp;&amp;nbsp; [library:ejb20]&amp;nbsp;&amp;nbsp; [service:p4]&amp;nbsp;&amp;nbsp; [service:ejb]&amp;nbsp;&amp;nbsp; [service:servlet_jsp]&amp;nbsp;&amp;nbsp; [library:tc~bl~logging~api]&amp;nbsp;&amp;nbsp; [library:tc~aii~base~offline~facade]&amp;nbsp;&amp;nbsp; [library:tc~cmi]&amp;nbsp;&amp;nbsp; [library:tc~ddic~runtime~facade]&amp;nbsp;&amp;nbsp; [demo.sap.com/oradbear]&amp;nbsp;&amp;nbsp; [sap.com/tc~wd~api]&amp;nbsp;&amp;nbsp; [library:tc~bl~exception~lib] Resources:&amp;nbsp;&amp;nbsp; 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~oracledb~oracleJDBC_assembly.jar&amp;nbsp;&amp;nbsp; 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&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I removed the jar from the web dynpro build path and lib folder. And then I followed the steps given in the following tutorial: &lt;A _jive_internal="true" class="active_link" href="https://answers.sap.com/docs/DOC-7637" title="http://scn.sap.com/docs/DOC-7637"&gt;http://scn.sap.com/docs/DOC-7637&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea what might be going wrong now?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Ankur Garg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2012 15:45:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/java-lang-classnotfoundexception-oracle-jdbc-driver-oracledriver/qaa-p/8692818#M3086311</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-05-09T15:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver</title>
      <link>https://community.sap.com/t5/technology-q-a/java-lang-classnotfoundexception-oracle-jdbc-driver-oracledriver/qaa-p/8692819#M3086312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have finally been able to run my application without any errors. Apart from the tutorial (&lt;A _jive_internal="true" href="https://answers.sap.com/docs/DOC-7637"&gt;http://scn.sap.com/docs/DOC-7637&lt;/A&gt;), the following thread proved to be a life saver: &lt;A _jive_internal="true" class="active_link" href="https://answers.sap.com/thread/1724661" title="http://scn.sap.com/thread/1724661"&gt;http://scn.sap.com/thread/1724661&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Jun for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2012 16:08:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/java-lang-classnotfoundexception-oracle-jdbc-driver-oracledriver/qaa-p/8692819#M3086312</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-05-09T16:08:36Z</dc:date>
    </item>
    <item>
      <title>Re: java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver</title>
      <link>https://community.sap.com/t5/technology-q-a/java-lang-classnotfoundexception-oracle-jdbc-driver-oracledriver/qaa-p/8692820#M3086313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;good to know you have overcome the issue:)&lt;/P&gt;&lt;DIV&gt;&lt;EMBED height="0" type="application/lingoes-npruntime-capture-word-plugin" width="0"&gt;&lt;/EMBED&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2012 16:57:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/java-lang-classnotfoundexception-oracle-jdbc-driver-oracledriver/qaa-p/8692820#M3086313</guid>
      <dc:creator>junwu</dc:creator>
      <dc:date>2012-05-09T16:57:15Z</dc:date>
    </item>
  </channel>
</rss>

