External Jar for Liferay DXPExternal Jar for Liferay DXPhttps://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=909317352024-03-28T10:07:25Z2024-03-28T10:07:25ZRE: External Jar for Liferay DXPDavid H Nebingerhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=909426922017-06-21T17:23:56Z2017-06-21T17:23:56Z<div class="quote-title">Manish Jha:</div><blockquote>I would like to know is there any way to know jars provided by liferay OSGI container ?</blockquote><br /><br />No.<br /><br />Normally you find out what is missing and fill in the holes until you get no more undefined references. Any transitive dependencies that do not get flagged as undefined refs will represent packages that are available.<br /><br />That's also a key to understanding, though, there's no concept of "available jars" or "provided jars" in OSGi, there's just "exposed packages". Any packages not exposed are going to represent dependencies that you have to satisfy.<br /><br />Looking for jars can mess you up because I could add commons-codec into my bundle, but I could also export the packages thus exposing commons-codec without you finding a jar anywhere.<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><a href="https://www.eventbrite.com/e/liferay-symposium-north-america-2017-registration-28398031276">Come meet me at the 2017 LSNA!</a>David H Nebinger2017-06-21T17:23:56ZRE: External Jar for Liferay DXPManish Jhahttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=909358992017-06-21T15:11:18Z2017-06-21T15:11:18ZOSGI service list does not list available jars for OSGI modules.<br />For example , I searched for Spring jar in the gogo shell, i could not jars listed. We know that spring jars are provided by Liferay OSGI container and we do not need to include the jar in the module's class path.Manish Jha2017-06-21T15:11:18ZRE: External Jar for Liferay DXPChristoph Rabelhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=909375562017-06-21T14:51:18Z2017-06-21T14:51:18ZYou can list all services through the gogo shell with the lb command<br />https://dev.liferay.com/develop/reference/-/knowledge_base/7-0/using-the-felix-gogo-shell<br /><br />telnet localhost 11311<br />lb<br /><br />On windows telnet is usually not installed, it can somehow be added, but it's probably easier to download putty.Christoph Rabel2017-06-21T14:51:18ZExternal Jar for Liferay DXPManish Jhahttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=909317342017-06-21T13:37:33Z2017-06-21T13:37:33ZI am creating Liferay DXP service and it has dependency on external jar. These jar have dependency on other jar as transitive dependency. This includes dependency on spring jars.<br /><br />I followed option 4 on the following link to include dependent jar in the module. <br />https://web.liferay.com/web/user.26526/blog/-/blogs/osgi-module-dependencies <br /><br />However, i do not want to include jar already provid