<?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>Liferay DXP - Debug JSPs in OSGi bundles</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=112440771" />
  <subtitle>Liferay DXP - Debug JSPs in OSGi bundles</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=112440771</id>
  <updated>2026-04-04T04:27:42Z</updated>
  <dc:date>2026-04-04T04:27:42Z</dc:date>
  <entry>
    <title>RE: Liferay DXP - Debug JSPs in OSGi bundles</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113257831" />
    <author>
      <name>Dominik Marks</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113257831</id>
    <updated>2019-04-16T14:54:25Z</updated>
    <published>2019-04-16T14:54:25Z</published>
    <summary type="html">Hello Vitaliy,&lt;br /&gt;&lt;br /&gt;I have implemented the functionality to debug JSPs from your own modules, from any dependency and from the liferay sources (if you are using the target workspace plugin) into the IntelliJ plugin.&lt;br /&gt;&lt;br /&gt;The latest plugin has been released today, so you can try it.&lt;br /&gt;&lt;a href="https://plugins.jetbrains.com/plugin/10739-liferay-intellij-plugin"&gt;https://plugins.jetbrains.com/plugin/10739-liferay-intellij-plugin&lt;/a&gt;</summary>
    <dc:creator>Dominik Marks</dc:creator>
    <dc:date>2019-04-16T14:54:25Z</dc:date>
  </entry>
  <entry>
    <title>RE: Liferay DXP - Debug JSPs in OSGi bundles</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112616805" />
    <author>
      <name>Dominik Marks</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112616805</id>
    <updated>2019-03-07T08:02:06Z</updated>
    <published>2019-03-07T08:02:06Z</published>
    <summary type="html">Hello Vitaly,&lt;br /&gt;&lt;br /&gt;I have to add that if you are using the IntelliJ plugin and you create a &amp;#34;Liferay Server&amp;#34; Run Configuration, it is not possible to debug inside JSPs (not even in your own modules).&lt;br /&gt;&lt;br /&gt;If you create a &amp;#34;Tomcat&amp;#34; Run Configuration instead (if you are using a tomcat bundle), you can at least debug inside the JSPs in your own modules.&lt;br /&gt;&lt;br /&gt;Does this help you?</summary>
    <dc:creator>Dominik Marks</dc:creator>
    <dc:date>2019-03-07T08:02:06Z</dc:date>
  </entry>
  <entry>
    <title>RE: Liferay DXP - Debug JSPs in OSGi bundles</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112507971" />
    <author>
      <name>Dominik Marks</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112507971</id>
    <updated>2019-02-28T07:54:59Z</updated>
    <published>2019-02-28T07:54:59Z</published>
    <summary type="html">Hello Vitaly,&lt;br /&gt;&lt;br /&gt;at the moment it is not possible to debug JSPs from the Liferay Sources in IntelliJ IDEA (I think it is not possible in Eclipse as well, but not sure).&lt;br /&gt;&lt;br /&gt;To be able to debug JSPs the directories containing the JSPs must be detected as &amp;#34;Web Context&amp;#34;. For WAR-style modules IntelliJ detects those automatically e.g. in /src/main/web. For OSGi-based JAR-modules IntelliJ does not know which directory contains the JSPs files. &lt;br /&gt;&lt;br /&gt;When you are using the Liferay IntelliJ plugin that plugin tells IntelliJ IDEA that the directory META-INF/resources contains JSP files and declares this folder as &amp;#34;Web Context&amp;#34;. By this, it should be possible to debug inside those JSPs. So for your own modules it is possible to debug.&lt;br /&gt;&lt;br /&gt;Unfortunately you cannot define &amp;#34;Web Context&amp;#34;s to be present inside libraries. So even if you add a dependency to an existing Liferay module (e.g. using gradle or maven), you cannot define that the META-INF/resouces folder inside that library should be a &amp;#34;Web Context&amp;#34;. Those have to be in a relative path to an existing module inside IntelliJ IDEA.&lt;br /&gt;&lt;br /&gt;It may be possible to add such a functionality to the Liferay Intellij plugin. I will try to find out if it is possible to influence the debugger behaviour of IntelliJ to make it possible to debug JSPs inside libraries.&lt;br /&gt;&lt;br /&gt;Regards, &lt;br /&gt;​​​​​​​ Dominik</summary>
    <dc:creator>Dominik Marks</dc:creator>
    <dc:date>2019-02-28T07:54:59Z</dc:date>
  </entry>
  <entry>
    <title>Liferay DXP - Debug JSPs in OSGi bundles</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112440770" />
    <author>
      <name>Vitaliy Koshelenko</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112440770</id>
    <updated>2019-02-22T22:17:27Z</updated>
    <published>2019-02-22T22:17:27Z</published>
    <summary type="html">Hi everyone,&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I use Liferay DXP and IntelliJ IDEA (with Liferay Intellij Plugin).&lt;br /&gt;Question - how can I debug JSPs inside OSGi jar modules?&lt;br /&gt;(it was working &amp;#34;by default&amp;#34; for Liferay 6.x WARs, but debug doest not work for jars - perhaps, some additional configuration needed?)&lt;br /&gt;&lt;br /&gt;Also, how can I debug JSPs from Liferay sources?&lt;br /&gt;In 6.x I could include the entire webapps/ROOT as module to IDE, and debug required parts of code.&lt;br /&gt;In DXP those JSPs are inside jars (which are inside lpkg files), for example:&lt;br /&gt;../osgi/marketplace/Liferay Web Experience - Liferay Asset - Impl.lpkg!/com.liferay.asset.publisher.web-2.0.40.jar!/META-INF/resources/view.jsp&lt;br /&gt;Is it possible to debug such parts of Liferay code?&lt;br /&gt;(I need to check which JSPs are invoked, which values are passed, etc. in order to understand better how things work internally).&lt;br /&gt;&lt;br /&gt;Any help appreciated &lt;img alt="emoticon" src="@theme_images_path@/emoticons/smile.gif" &gt;​​​​​​​ &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Vitaliy</summary>
    <dc:creator>Vitaliy Koshelenko</dc:creator>
    <dc:date>2019-02-22T22:17:27Z</dc:date>
  </entry>
</feed>
