<?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 use jdbc jar in tomcat/lib</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120630271" />
  <subtitle>how to use jdbc jar in tomcat/lib</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120630271</id>
  <updated>2026-04-25T19:51:41Z</updated>
  <dc:date>2026-04-25T19:51:41Z</dc:date>
  <entry>
    <title>RE: RE: how to use jdbc jar in tomcat/lib</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120658024" />
    <author>
      <name>Scarletake Bwi</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120658024</id>
    <updated>2021-03-04T02:11:25Z</updated>
    <published>2021-03-04T02:11:25Z</published>
    <summary type="html">&lt;p&gt;Hi Andrew&lt;/p&gt;
&lt;p&gt;thank you!&lt;/p&gt;
&lt;p&gt;on 7.3, newest. &lt;/p&gt;
&lt;p&gt;i still on tring, due to i a have to generate excel file, i ain't
  sure the service can provide it or not. hope it can.&lt;/p&gt;
&lt;p&gt;again, thiank you and have a nice day.&lt;/p&gt;</summary>
    <dc:creator>Scarletake Bwi</dc:creator>
    <dc:date>2021-03-04T02:11:25Z</dc:date>
  </entry>
  <entry>
    <title>RE: how to use jdbc jar in tomcat/lib</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120657771" />
    <author>
      <name>Andrew Jardine</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120657771</id>
    <updated>2021-03-03T12:37:42Z</updated>
    <published>2021-03-03T12:37:42Z</published>
    <summary type="html">&lt;p&gt;Hi Scarletake,&lt;/p&gt;
&lt;p&gt;If I am following what you are saying then it sounds like the better
  solution. The idea in the 7 series is to have things broken up anyway
  rather than everything all bundled together into a single module. If
  you are using Service Builder and the idea of &amp;quot;fake
  entities&amp;quot; (also common place to have a standard pattern for
  development), and you are on 7.2, AND you don't need to persist the
  entity data, then make sure you
  add &lt;strong&gt;persistence=&amp;quot;false&amp;quot;&lt;/strong&gt; to the
  &amp;lt;entity/&amp;gt; definitions. That will eliminate all the persistence
  level code from being generated. No point if generating it and having
  it lying around if you aren't planning to use it :)&lt;/p&gt;</summary>
    <dc:creator>Andrew Jardine</dc:creator>
    <dc:date>2021-03-03T12:37:42Z</dc:date>
  </entry>
  <entry>
    <title>RE: RE: how to use jdbc jar in tomcat/lib</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120658963" />
    <author>
      <name>Scarletake Bwi</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120658963</id>
    <updated>2021-03-03T03:37:04Z</updated>
    <published>2021-03-03T03:37:04Z</published>
    <summary type="html">&lt;p&gt;hi andrew&lt;/p&gt;
&lt;p&gt;thnak you very much for reply.&lt;/p&gt;
&lt;p&gt;yes, i google it, got many posts and articls, and try many times.&lt;/p&gt;
&lt;p&gt;i change my strategy(i do not like word &amp;quot;give up&amp;quot;). it's
  too complicated.&lt;/p&gt;
&lt;p&gt;i re-write all common jars that i made for all portlet(now we call
  module project). as service, build via service builder, even some of
  those are empty entity, maybe for very first time, i have to do many
  thing, but i think in future, i only have to mantain service, and do
  not need to restart server.&lt;/p&gt;
&lt;p&gt;again, thank you.&lt;/p&gt;</summary>
    <dc:creator>Scarletake Bwi</dc:creator>
    <dc:date>2021-03-03T03:37:04Z</dc:date>
  </entry>
  <entry>
    <title>RE: how to use jdbc jar in tomcat/lib</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120656995" />
    <author>
      <name>Andrew Jardine</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120656995</id>
    <updated>2021-03-02T12:40:33Z</updated>
    <published>2021-03-02T12:40:33Z</published>
    <summary type="html">&lt;p&gt;Hey Scarletake,&lt;/p&gt;
&lt;p&gt;I'm not sure that I am totally following what it is you want to do,
  but if the goal is to try to have a library globally available through
  the TOMCAT_HOME/lib/ext folder then you can still do this in 7.x, but
  it requires a couple of extra steps. &lt;/p&gt;
&lt;p&gt;1. Place the library in the /lib/ext directory of course&lt;/p&gt;
&lt;p&gt;2. In your &lt;strong&gt;portal-ext.properties &lt;/strong&gt;file you need to
  add the property &lt;b&gt;module.framework.system.packages.extra &lt;/b&gt;which
  should include the values that the portal provides and the jar you are
  looking to include (I believe you have to provide both and you can't
  just specify your jar)&lt;/p&gt;
&lt;p&gt;3. Restart your portal&lt;/p&gt;
&lt;p&gt;You sitll have to include a reference to the library in your
  build.gradle or POM files of course but once you have done this you
  should be able to change the inclusions to be &amp;quot;compile&amp;quot;
  instead of including them in the final package. &lt;/p&gt;
&lt;p&gt;NOTE though that sometimes the library that you want to use is
  &amp;quot;OSGI ready&amp;quot; in which case all you have to do is copy the
  jar to the LIFERAY_HOME/osgi/modules location and the container will
  take care of the rest for you. I use this approach with a handful of
  libraries including gson, stripe and a few others and it works great. &lt;/p&gt;
&lt;p&gt;Let us know how it goes!&lt;/p&gt;</summary>
    <dc:creator>Andrew Jardine</dc:creator>
    <dc:date>2021-03-02T12:40:33Z</dc:date>
  </entry>
  <entry>
    <title>how to use jdbc jar in tomcat/lib</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120630270" />
    <author>
      <name>Scarletake Bwi</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120630270</id>
    <updated>2021-02-22T10:09:50Z</updated>
    <published>2021-02-22T10:09:50Z</published>
    <summary type="html">&lt;p&gt;hi&lt;/p&gt;
&lt;p&gt;i know if i use serivce builder and i want referenct the service api,
  i should modify the build.gradle&lt;/p&gt;
&lt;p&gt;and add &lt;/p&gt;
&lt;p&gt;
  &lt;strong&gt;compile project(&amp;quot;:modules:ServiceBuilderDemo:ServiceBuilderDemo-api&amp;quot;)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;but how about i want use jdbc jar in tomcat/lib? because i have many
  old data have to sync to new service-builder object. and i do not want
  add jar in each module-project. i want just reuse it and just only one
  version is okay for me.&lt;/p&gt;
&lt;p&gt;is there any place i can just config and reach the goal?&lt;/p&gt;
&lt;p&gt;thank you&lt;/p&gt;</summary>
    <dc:creator>Scarletake Bwi</dc:creator>
    <dc:date>2021-02-22T10:09:50Z</dc:date>
  </entry>
</feed>
