how to add non osgi jar in globalhow to add non osgi jar in globalhttps://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=1212077282024-03-28T17:16:46Z2024-03-28T17:16:46ZRE: RE: how to add non osgi jar in globalScarletake Bwihttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1212105162021-10-21T15:16:58Z2021-10-21T15:16:57Z<p>hi Fernando</p>
<p>i find your example project, <a href="https://github.com/amusarra/sb-extdb">sb-extdb</a></p>
<p>i will try this. i am not sure it can work in 7.4.2 or not, hope it work</p>
<p>before i try, allow me to ask a domn question</p>
<p>base on the project, is that mean, the only thing i have to do, is
download the all-in-one jar, and put it in ROOT/lib?</p>
<p>i do not have to do anything in bnd.bnd or build.gradle?</p>
<p>my target is oracle, and my liferay use jdk8</p>Scarletake Bwi2021-10-21T15:16:57ZRE: RE: how to add non osgi jar in globalScarletake Bwihttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1212098582021-10-21T06:36:20Z2021-10-21T06:36:19Z<p>hi </p>
<p>after i read <a href="https://github.com/amusarra/liferay-portal-database-all-in-one-support">liferay-portal-database-all-in-one-support</a></p>
<p>i have to say it's powerful, but it cannot help in my case. </p>
<p>it's for someone who want use Oracle or MS-Sql or DB2 to be main
database of liferay 7.X</p>
<p>but my request is read a exernal database data from liferay.</p>Scarletake Bwi2021-10-21T06:36:19ZRE: RE: how to add non osgi jar in globalScarletake Bwihttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1212092232021-10-20T22:11:59Z2021-10-20T22:11:58Z<p>hi Fernando</p>
<p>thank you for reply.</p>
<p>i will try it, but it looks likw for liferay ce to use oracle/sql
server as main database, but i just want to connect external database
to query some data.</p>
<p>anyway, i will feedbake the result doday, again, thank you.</p>Scarletake Bwi2021-10-20T22:11:58ZRE: how to add non osgi jar in globalFernando Pazhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1212083942021-10-20T13:55:55Z2021-10-20T13:55:54Z<p>Hi AFAIK you need make a OSGI module for suport it. Check this HOW
TO
url https://github.com/amusarra/liferay-portal-database-all-in-one-support.
Hope it helps!!</p>Fernando Paz2021-10-20T13:55:54Zhow to add non osgi jar in globalScarletake Bwihttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1212077272021-10-20T09:18:57Z2021-10-20T09:18:56Z<p>hi</p>
<p>i try use ojdbc8.jar in my module, and i know it's non-osgi</p>
<p>so i download the jar and put it in <TOMCAT>\lib\ext</p>
<p>and check module.framework.system.packages.extra from <a
href="https://docs.liferay.com/portal/7.4-ga3/propertiesdoc/portal.properties.html">portal.properties</a>,
in liferay ce 7.4.2 ga3, oracle.jdbc is already in the list</p>
<blockquote>
<p>module.framework.system.packages.extra=\<br />
com.ibm.crypto.provider,\<br /> com.ibm.db2.jcc,\<br />
com.microsoft.sqlserver.jdbc,\<br /> com.mysql.cj.jdbc,\<br />
com.mysql.jdbc,\<br /> com.p6spy.engine.spy,\<br />
com.sun.security.auth.module,\<br />
com.sybase.jdbc4.jdbc,\<br /> oracle.jdbc,\
<===========here<br /> org.postgresql,\<br />
org.hsqldb.jdbc,\<br /> org.mariadb.jdbc,\<br />
sun.misc,\<br /> sun.net.util,\<br />
sun.security.provider,\<br /> \<br /> #<br /> #
WebSocket Support<br /> #<br /> \<br />
com.ibm.websphere.wsoc,\<br />
io.undertow.websockets.jsr,\<br /> javax.websocket,\<br />
javax.websocket.server,\<br />
org.apache.tomcat.websocket.server,\<br /> weblogic.websocket.tyrus</p></blockquote>
<p>and i modify my build.gradle</p>
<blockquote>
<p>dependencies {<br /> compileOnly group:
"com.liferay.portal", name:
"release.portal.api"<br /> compileOnly group:
'com.oracle.database.jdbc', name: '