<?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>Spring MVC portlet cannot be deployed to the Liferay 7.2 Portal</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=118576659" />
  <subtitle>Spring MVC portlet cannot be deployed to the Liferay 7.2 Portal</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=118576659</id>
  <updated>2026-04-03T22:31:05Z</updated>
  <dc:date>2026-04-03T22:31:05Z</dc:date>
  <entry>
    <title>RE: Spring MVC portlet cannot be deployed to the Liferay 7.2 Portal</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118597509" />
    <author>
      <name>Olaf Kock</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118597509</id>
    <updated>2020-02-26T12:23:04Z</updated>
    <published>2020-02-26T12:23:04Z</published>
    <summary type="html">&lt;div class="quote-title"&gt;majdi Achouri:&lt;/div&gt;&lt;blockquote&gt;&lt;br /&gt;Olaf you are right the problem was in the setenv.sh file after checking the size of the MetaSpaceSize It was 512m I changed it to 4G and It is working for now. ​​​​​&lt;br /&gt;&lt;/blockquote&gt;times 8? Wow. I typically double such settings, and especially the Metaspace I&amp;#39;d not expect to grow that dramatically. If you have that memory available: Fine. At least it shouldn&amp;#39;t be the bottleneck any time soon any more ;)</summary>
    <dc:creator>Olaf Kock</dc:creator>
    <dc:date>2020-02-26T12:23:04Z</dc:date>
  </entry>
  <entry>
    <title>RE: Spring MVC portlet cannot be deployed to the Liferay 7.2 Portal</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118590980" />
    <author>
      <name>majdi Achouri</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118590980</id>
    <updated>2020-02-25T21:14:34Z</updated>
    <published>2020-02-25T21:14:34Z</published>
    <summary type="html">&lt;div class="quote-title"&gt;Olaf Kock:&lt;/div&gt;&lt;blockquote&gt;&lt;br /&gt;&lt;div class="quote-title"&gt;majdi Achouri:&lt;/div&gt;&lt;blockquote&gt;&lt;br /&gt;This is the trace when deploying the war file in the deploy folder:&lt;br /&gt;&lt;br /&gt;Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread &amp;#34;ajp-nio-8009-exec-1746&amp;#34;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;No matter what you do to the code: You&amp;#39;re running out of memory. What are your appserver settings - have you tried raising the available memory for the process?&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Thanks to all for the recommendations, &lt;br /&gt;Olaf you are right the problem was in the setenv.sh file after checking the size of the MetaSpaceSize It was 512m I changed it to 4G and It is working for now. &lt;br /&gt;​​​​​​​+1 . </summary>
    <dc:creator>majdi Achouri</dc:creator>
    <dc:date>2020-02-25T21:14:34Z</dc:date>
  </entry>
  <entry>
    <title>RE: Spring MVC portlet cannot be deployed to the Liferay 7.2 Portal</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118582521" />
    <author>
      <name>Olaf Kock</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118582521</id>
    <updated>2020-02-25T09:54:40Z</updated>
    <published>2020-02-25T09:54:40Z</published>
    <summary type="html">&lt;div class="quote-title"&gt;majdi Achouri:&lt;/div&gt;&lt;blockquote&gt;&lt;br /&gt;This is the trace when deploying the war file in the deploy folder:&lt;br /&gt;&lt;br /&gt;Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread &amp;#34;ajp-nio-8009-exec-1746&amp;#34;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;No matter what you do to the code: You&amp;#39;re running out of memory. What are your appserver settings - have you tried raising the available memory for the process?</summary>
    <dc:creator>Olaf Kock</dc:creator>
    <dc:date>2020-02-25T09:54:40Z</dc:date>
  </entry>
  <entry>
    <title>RE: Spring MVC portlet cannot be deployed to the Liferay 7.2 Portal</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118583890" />
    <author>
      <name>majdi Achouri</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118583890</id>
    <updated>2020-02-25T08:16:00Z</updated>
    <published>2020-02-25T08:16:00Z</published>
    <summary type="html">Hi Alberto &lt;br /&gt;&lt;br /&gt;Thank you for the reply, &lt;br /&gt;I followed your recommendation and I just use the portletmvc4spring( this one : &lt;a href="https://github.com/liferay/portletmvc4spring/tree/master/demo/applicant-jsp-portlet"&gt;https://github.com/liferay/portletmvc4spring/tree/master/demo/applicant-jsp-portlet&lt;/a&gt; ) as a base portlet and build the war and deploy it into the server, I got the same error ( can&amp;#39;t deploy it anymore ) in the Lr7.2 Ce ga1 instance &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This is the trace when deploying the war file in the deploy folder:&lt;br /&gt;&lt;br /&gt;Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread &amp;#34;ajp-nio-8009-exec-1746&amp;#34;&lt;br /&gt;Exception in thread &amp;#34;ajp-nio-8009-exec-1749&amp;#34; Exception in thread &amp;#34;ajp-nio-8009-exec-1765&amp;#34; Exception in thread &amp;#34;ajp-nio-8009-exec-1756&amp;#34; Exception in thread &amp;#34;ajp-nio-8009-exec-1757&amp;#34; Exception in thread &amp;#34;ajp-nio-8009-exec-1750&amp;#34; Exception in thread &amp;#34;liferay/scheduler_dispatch-375&amp;#34; Exception in thread &amp;#34;ajp-nio-8009-exec-1753&amp;#34; Exception in thread &amp;#34;ajp-nio-8009-exec-1767&amp;#34; Exception in thread &amp;#34;ajp-nio-8009-exec-1769&amp;#34; Exception in thread &amp;#34;ajp-nio-8009-exec-1738&amp;#34; Exception in thread &amp;#34;ajp-nio-8009-exec-1797&amp;#34;&lt;br /&gt;Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread &amp;#34;ajp-nio-8009-exec-1749&amp;#34;Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread &amp;#34;ajp-nio-8009-exec-1765&amp;#34;Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread &amp;#34;ajp-nio-8009-exec-1750&amp;#34;Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread &amp;#34;liferay/scheduler_dispatch-375&amp;#34;&lt;br /&gt;Exception in thread &amp;#34;ajp-nio-8009-exec-1747&amp;#34;&lt;br /&gt;Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread &amp;#34;ajp-nio-8009-exec-1753&amp;#34;&lt;br /&gt;Exception in thread &amp;#34;ajp-nio-8009-exec-1795&amp;#34;&lt;br /&gt;Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread &amp;#34;ajp-nio-8009-exec-1767&amp;#34;Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread &amp;#34;ajp-nio-8009-exec-1769&amp;#34;Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread &amp;#34;ajp-nio-8009-exec-1738&amp;#34;Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread &amp;#34;ajp-nio-8009-exec-1756&amp;#34;Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread &amp;#34;ajp-nio-8009-exec-1757&amp;#34;&lt;br /&gt;Exception in thread &amp;#34;ajp-nio-8009-exec-1780&amp;#34; Exception in thread &amp;#34;ajp-nio-8009-exec-1768&amp;#34; Exception in thread &amp;#34;ajp-nio-8009-exec-1752&amp;#34; Exception in thread &amp;#34;ajp-nio-8009-exec-1761&amp;#34;&lt;br /&gt;Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread &amp;#34;ajp-nio-8009-exec-1797&amp;#34;&lt;br /&gt;Exception in thread &amp;#34;ajp-nio-8009-exec-1751&amp;#34;&lt;br /&gt;Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread &amp;#34;ajp-nio-8009-exec-1752&amp;#34;Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread &amp;#34;ajp-nio-8009-exec-1747&amp;#34;Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread &amp;#34;ajp-nio-8009-exec-1761&amp;#34;Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread &amp;#34;ajp-nio-8009-exec-1795&amp;#34;Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread &amp;#34;ajp-nio-8009-exec-1780&amp;#34;&lt;br /&gt;Exception in thread &amp;#34;ajp-nio-8009-exec-1754&amp;#34; Exception in thread &amp;#34;ajp-nio-8009-exec-1741&amp;#34;&lt;br /&gt;Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread &amp;#34;ajp-nio-8009-exec-1768&amp;#34;&lt;br /&gt;Exception in thread &amp;#34;ajp-nio-8009-exec-1766&amp;#34; Exception in thread &amp;#34;ajp-nio-8009-exec-1770&amp;#34; Exception in thread &amp;#34;ajp-nio-8009-exec-1743&amp;#34;&lt;br /&gt;Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread &amp;#34;ajp-nio-8009-exec-1751&amp;#34;Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread &amp;#34;ajp-nio-8009-exec-1754&amp;#34;Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread &amp;#34;ajp-nio-8009-exec-1743&amp;#34;Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread &amp;#34;ajp-nio-8009-exec-1770&amp;#34;&lt;br /&gt;2020-01-06 11:48:55.354 INFO  [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:261] Processing com.liferay.portletmvc4spring.demo.applicant.jsp.portlet-5.2.1-SNAPSHOT.warException: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread &amp;#34;ajp-nio-8009-exec-1741&amp;#34;Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread &amp;#34;ajp-nio-8009-exec-1766&amp;#34;&lt;br /&gt;2020-01-06 11:50:01.622 WARN  [HikariPool-1 housekeeper][HikariPool:686] HikariPool-1 - Thread starvation or clock leap detected (housekeeper delta=14m11s23ms494µs69ns).&lt;br /&gt;&lt;br /&gt;Cheers</summary>
    <dc:creator>majdi Achouri</dc:creator>
    <dc:date>2020-02-25T08:16:00Z</dc:date>
  </entry>
  <entry>
    <title>RE: Spring MVC portlet cannot be deployed to the Liferay 7.2 Portal</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118579400" />
    <author>
      <name>Alberto Chaparro</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118579400</id>
    <updated>2020-02-24T17:47:09Z</updated>
    <published>2020-02-24T17:47:09Z</published>
    <summary type="html">Hi Madji,&lt;br /&gt;Spring pruned Spring MVC in its newer versions so Liferay adopted the project. For this reason, be sure you have followed these guidelines during the upgrade of your portlet to 7.2:&lt;br /&gt;&lt;a href="https://github.com/liferay/portletmvc4spring/blob/master/README.md"&gt;https://github.com/liferay/portletmvc4spring/blob/master/README.md&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I hope it helps.&lt;br /&gt;&lt;br /&gt;Cheers! </summary>
    <dc:creator>Alberto Chaparro</dc:creator>
    <dc:date>2020-02-24T17:47:09Z</dc:date>
  </entry>
  <entry>
    <title>Spring MVC portlet cannot be deployed to the Liferay 7.2 Portal</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118576658" />
    <author>
      <name>majdi Achouri</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118576658</id>
    <updated>2020-02-24T16:33:51Z</updated>
    <published>2020-02-24T16:33:51Z</published>
    <summary type="html">Hello everyone&lt;br /&gt;I&amp;#39;m migrating a  spring mvc 6.2 portlet to a spring mvc 7.2 portlet, I detected that the architecture is a little bit different between both, for that I created a new spring mvc-7.2 portlet with blade  using this   &amp;lt; blade create -t spring-mvc-portlet -v 7.2 -p packageTest -c classTestName first-Lr7-portlet -b maven &amp;gt; and do the upgrade manually by copying the js, css, liferay&amp;#39;s xml config file.&lt;br /&gt;The problem is when I deploy this portlet in deploy folder of distant liferay server it showed me the following log: &lt;br /&gt;&lt;br /&gt;&lt;img src="/documents/portlet_file_entry/14/image--tempRandomSuffix--epL62PuJ.png/5f8b8ad9-3760-f7c5-3263-6c70f540bd02" /&gt;&lt;br /&gt;&lt;br /&gt;Also, I specified in the liferay-plugin-package.properties that   &amp;#34; liferay-versions=7.0.0+,7.1.0+,7.2.0+ &amp;#34; .&lt;br /&gt;this is the portlet architecture: &lt;br /&gt;&lt;img src="/documents/portlet_file_entry/14/image--tempRandomSuffix--W7ioNvtT.png/e95394f3-e126-cdb3-1777-4c1191aaf3e2" /&gt;&lt;br /&gt;&lt;br /&gt;Any advice or recommendation please, thank you...</summary>
    <dc:creator>majdi Achouri</dc:creator>
    <dc:date>2020-02-24T16:33:51Z</dc:date>
  </entry>
</feed>
