<?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>topic Re: Jdbc Connection Problem in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Jdbc-Connection-Problem/m-p/2280774#M55511</link>
    <description>Hi, 
&lt;BR /&gt;actually you can, but you will have to use a workaround: when you create a General JDBC connection, even using the Export as Context button, you have to specify the JDBC Driver JAR (let's assume you chose a DB2 JDBC Driver). Then, in the corresponding&amp;nbsp;Context Group, you can change the driver to use it with other DB Types (for example, selecting an Oracle JDBC Driver), BUT if you use it in your job the componente won't load correctly the new driver when you run the job, causing the error you posted.&amp;nbsp; 
&lt;BR /&gt;But if you add a General JDBC component to your Job with a JDBC connection orignally created with an Oracle JDBC Driver and configured with a JDBC Oracle Driver in its Context Group, then your job will run correctly!&amp;nbsp;Please note that the second General JDBC "Oracle" Component (let's call it the DUMMY_CONNECTION) hasn't to be configured with a "real" connection. You can leave all of his contexts blank (or default) except for jdbc driver and class. To avoid errors, you can put a DO_NOTHING tJava component linked with an impossible "if" condition (see picture) 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCfS.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150436i76480D18D119091B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCfS.png" alt="0683p000009MCfS.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCMH.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155634iB8DA971D4C0E9C46/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCMH.png" alt="0683p000009MCMH.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;I know it's a workaround, but I haven't figured out any other solution, it seems to be a Talend bug. 
&lt;BR /&gt;You can even create a DUMMY Connection job, where you can put as many Dummy DB components as the DB types you want your project to work with, and then add this job with the tRunJob component to all of your project jobs (see pictures below). I hasn't to be linked to anything. 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MAF4.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149307i9C9841AEA0267F2F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MAF4.png" alt="0683p000009MAF4.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MClZ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157979i0D75FB6082863946/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MClZ.png" alt="0683p000009MClZ.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;Hope this solution can work for you!</description>
    <pubDate>Thu, 12 Feb 2015 08:08:20 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-02-12T08:08:20Z</dc:date>
    <item>
      <title>Jdbc Connection Problem</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Jdbc-Connection-Problem/m-p/2280771#M55508</link>
      <description>Hi. 
&lt;BR /&gt;I'm getting this error : 
&lt;BR /&gt;Exception in component tJDBCInput_1 
&lt;BR /&gt;java.lang. 
&lt;B&gt;ClassNotFoundException&lt;/B&gt;: oracle.jdbc.OracleDriver 
&lt;BR /&gt;&amp;nbsp;at java.net.URLClassLoader$1.run(Unknown Source) 
&lt;BR /&gt;&amp;nbsp;at java.net.URLClassLoader$1.run(Unknown Source) 
&lt;BR /&gt;&amp;nbsp;at java.security.AccessController.doPrivileged(Native Method) 
&lt;BR /&gt;&amp;nbsp;at java.net.URLClassLoader.findClass(Unknown Source) 
&lt;BR /&gt;&amp;nbsp;at java.lang.ClassLoader.loadClass(Unknown Source) 
&lt;BR /&gt;&amp;nbsp;at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) 
&lt;BR /&gt;&amp;nbsp;at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.Class.forName0(Native Method) 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCWQ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/148803i828BDE4FFB313DB5/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCWQ.png" alt="0683p000009MCWQ.png" /&gt;&lt;/span&gt;The jdbc component causes the error with Oracle database but not with DB2. 
&lt;BR /&gt;The property "Driver JAR &amp;gt; Jar name" it set dinamically using a context variable. 
&lt;BR /&gt;If I add a new "do nothing"&amp;nbsp;general jdbc component (for example a connection) connecting to a different Oracle database the drivers are loaded and the job works fine. 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCjj.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134050iC3C15D3148EBC3C6/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCjj.png" alt="0683p000009MCjj.png" /&gt;&lt;/span&gt;The only thing I notice is that when I created the Database Connection I've also created the context using the &amp;nbsp;"Export as context" button specifying a db2 jdbc driver. When I try to use this connection I change the cotext value dinamically using the Oracle parameters. 
&lt;BR /&gt;Thank a lot. 
&lt;BR /&gt;Andrea</description>
      <pubDate>Sat, 16 Nov 2024 11:19:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Jdbc-Connection-Problem/m-p/2280771#M55508</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T11:19:37Z</dc:date>
    </item>
    <item>
      <title>Re: Jdbc Connection Problem</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Jdbc-Connection-Problem/m-p/2280772#M55509</link>
      <description>Hi,&lt;BR /&gt;Could you please take a look at a related forum:&lt;A href="http://community.talend.com:80/t5/Deployment/resolved-java-lang-ClassNotFoundException-oracle-jdbc-driver/m-p/16067#M346" target="_blank"&gt;http://community.talend.com:80/t5/Deployment/resolved-java-lang-ClassNotFoundException-oracle-jdbc-driver/m-p/16067#M346&lt;/A&gt;&amp;nbsp;to see if it is OK with you?&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
      <pubDate>Tue, 10 Feb 2015 03:51:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Jdbc-Connection-Problem/m-p/2280772#M55509</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-10T03:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: Jdbc Connection Problem</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Jdbc-Connection-Problem/m-p/2280773#M55510</link>
      <description>You can't load JDBC drivers during runtime.&lt;BR /&gt;Please refer to:&amp;nbsp;&lt;A href="http://www.kfu.com/~nsayer/Java/dyn-jdbc.html" target="_blank" rel="nofollow noopener noreferrer"&gt;http://www.kfu.com/~nsayer/Java/dyn-jdbc.html&lt;/A&gt;</description>
      <pubDate>Wed, 11 Feb 2015 00:35:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Jdbc-Connection-Problem/m-p/2280773#M55510</guid>
      <dc:creator>Dezzsoke</dc:creator>
      <dc:date>2015-02-11T00:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: Jdbc Connection Problem</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Jdbc-Connection-Problem/m-p/2280774#M55511</link>
      <description>Hi, 
&lt;BR /&gt;actually you can, but you will have to use a workaround: when you create a General JDBC connection, even using the Export as Context button, you have to specify the JDBC Driver JAR (let's assume you chose a DB2 JDBC Driver). Then, in the corresponding&amp;nbsp;Context Group, you can change the driver to use it with other DB Types (for example, selecting an Oracle JDBC Driver), BUT if you use it in your job the componente won't load correctly the new driver when you run the job, causing the error you posted.&amp;nbsp; 
&lt;BR /&gt;But if you add a General JDBC component to your Job with a JDBC connection orignally created with an Oracle JDBC Driver and configured with a JDBC Oracle Driver in its Context Group, then your job will run correctly!&amp;nbsp;Please note that the second General JDBC "Oracle" Component (let's call it the DUMMY_CONNECTION) hasn't to be configured with a "real" connection. You can leave all of his contexts blank (or default) except for jdbc driver and class. To avoid errors, you can put a DO_NOTHING tJava component linked with an impossible "if" condition (see picture) 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCfS.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150436i76480D18D119091B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCfS.png" alt="0683p000009MCfS.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCMH.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155634iB8DA971D4C0E9C46/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCMH.png" alt="0683p000009MCMH.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;I know it's a workaround, but I haven't figured out any other solution, it seems to be a Talend bug. 
&lt;BR /&gt;You can even create a DUMMY Connection job, where you can put as many Dummy DB components as the DB types you want your project to work with, and then add this job with the tRunJob component to all of your project jobs (see pictures below). I hasn't to be linked to anything. 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MAF4.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149307i9C9841AEA0267F2F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MAF4.png" alt="0683p000009MAF4.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MClZ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157979i0D75FB6082863946/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MClZ.png" alt="0683p000009MClZ.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;Hope this solution can work for you!</description>
      <pubDate>Thu, 12 Feb 2015 08:08:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Jdbc-Connection-Problem/m-p/2280774#M55511</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-12T08:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: Jdbc Connection Problem</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Jdbc-Connection-Problem/m-p/2280775#M55512</link>
      <description>Hi&amp;nbsp;
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Andrea,&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Is there any update for your issue?&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Best regards&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Sabrina&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Thu, 12 Feb 2015 09:21:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Jdbc-Connection-Problem/m-p/2280775#M55512</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-12T09:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: Jdbc Connection Problem</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Jdbc-Connection-Problem/m-p/2280776#M55513</link>
      <description>&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;Hi&amp;nbsp;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Andrea,&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Is there any update for your issue?&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Best regards&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Sabrina&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;Hi Sabrina.
&lt;BR /&gt;I tried andrea.sarti workaround and it seems good , it works fine !
&lt;BR /&gt;Many thanks.
&lt;BR /&gt;Andrea</description>
      <pubDate>Thu, 12 Feb 2015 09:36:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Jdbc-Connection-Problem/m-p/2280776#M55513</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-12T09:36:11Z</dc:date>
    </item>
  </channel>
</rss>

