<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>how to add ojbc6 jar into module</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121186301" />
  <subtitle>how to add ojbc6 jar into module</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121186301</id>
  <updated>2026-04-04T03:25:06Z</updated>
  <dc:date>2026-04-04T03:25:06Z</dc:date>
  <entry>
    <title>RE: RE: how to add ojbc6 jar into module</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121188329" />
    <author>
      <name>Scarletake Bwi</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121188329</id>
    <updated>2021-10-07T09:13:28Z</updated>
    <published>2021-10-07T09:13:26Z</published>
    <summary type="html">&lt;p&gt;thank you, thank you very much.&lt;/p&gt;
&lt;p&gt;i will try this, and i found that ojdbc6 is for jdk6, i change the jar.&lt;/p&gt;</summary>
    <dc:creator>Scarletake Bwi</dc:creator>
    <dc:date>2021-10-07T09:13:26Z</dc:date>
  </entry>
  <entry>
    <title>RE: how to add ojbc6 jar into module</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121188149" />
    <author>
      <name>Rafał Pydyniak</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121188149</id>
    <updated>2021-10-08T05:57:11Z</updated>
    <published>2021-10-07T07:44:02Z</published>
    <summary type="html">&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;putting any JAR into module doesn't mean it will be available after
  you deploy your module. Please
  read: https://liferay.dev/blogs/-/blogs/osgi-module-dependencies to
  get some idea how it works.&lt;/p&gt;
&lt;p&gt;For ojdbc it's probably the best to put it under tomcat/lib directory
  to make it global JAR. I did that and I can tell it's a valid way.&lt;/p&gt;
&lt;p&gt;Another issue is that you probably don't want to use old ojdbc6 and
  old Oracle 12c. It's not supported anymore in Liferay and it might
  simply not work.&lt;/p&gt;
&lt;p&gt;Regarding the support - the last issue is that Oracle DB is not
  longer supported in CE versions, only in DXP. Such support can be
  added  There is a github repository &lt;a
  href="https://github.com/amusarra/liferay-portal-database-all-in-one-support"&gt;liferay-portal-database-all-in-one-support&lt;/a&gt; which
  explains how you can achieve using Oracle DB but it's not officially
  supported way.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Your best option is to simply change DB to MySQL or Postgres but if
  you really need oracle please look into this repository mentioned
  above or consider using DXP.&lt;/p&gt;</summary>
    <dc:creator>Rafał Pydyniak</dc:creator>
    <dc:date>2021-10-07T07:44:02Z</dc:date>
  </entry>
  <entry>
    <title>how to add ojbc6 jar into module</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121186300" />
    <author>
      <name>Scarletake Bwi</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121186300</id>
    <updated>2021-10-18T19:14:03Z</updated>
    <published>2021-10-06T08:53:55Z</published>
    <summary type="html">&lt;p&gt;hi&lt;/p&gt;
&lt;p&gt;i using liferay ce 7.4.2&lt;/p&gt;
&lt;p&gt;now i have to connect ext-db via service builder, i use data source
  provider way.&lt;/p&gt;
&lt;p&gt;and i modify my build.gradle&lt;/p&gt;
&lt;blockquote&gt;
  &lt;p&gt;dependencies {&lt;br /&gt;     compileOnly group:
    &amp;quot;com.liferay.portal&amp;quot;, name:
    &amp;quot;release.portal.api&amp;quot;&lt;br /&gt;     compileInclude group:
    'oracle', name: 'ojdbc6', version: '11.2.0.3'&lt;br /&gt; }&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;i got noting in my Project and External Dependencies&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;i change my build.gradle&lt;/p&gt;
&lt;blockquote&gt;
  &lt;p&gt;dependencies {&lt;br /&gt;     compileOnly group:
    &amp;quot;com.liferay.portal&amp;quot;, name:
    &amp;quot;release.portal.api&amp;quot;&lt;br /&gt;     compile fileTree(dir:
    'lib', include: '**/*.jar')&lt;br /&gt; }&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;and manually downloaded &lt;strong&gt;ojdbc6.jar&lt;/strong&gt; and copy it into &lt;strong&gt;WEB-INF/lib/&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;my module can be compile, but when i start, i hit exception in
  my DataSourceProviderImpl (in DataSourceFactoryUtil.initDataSource)&lt;/p&gt;
&lt;blockquote&gt;
  &lt;p&gt;2021-10-06 08:44:22.397 ERROR [pipe-start
    1430][DataSourceProviderImpl:33] null&lt;br /&gt;
    java.lang.ClassNotFoundException:
    oracle.jdbc.driver.OracleDriver&lt;br /&gt;     at
    org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1364)
    ~[catalina.jar:9.0.43]&lt;br /&gt;     at
    org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1187)
    ~[catalina.jar:9.0.43]&lt;br /&gt;     at
    com.liferay.shielded.container.internal.ShieldedContainerClassLoader.findClass(ShieldedContainerClassLoader.java:79) ~[com.liferay.shielded.container.impl.jar:?]&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;is there any why to fix it?&lt;/p&gt;
&lt;p&gt;thank you.&lt;/p&gt;</summary>
    <dc:creator>Scarletake Bwi</dc:creator>
    <dc:date>2021-10-06T08:53:55Z</dc:date>
  </entry>
</feed>
