<?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 read portlet.properties file in liferay 7.2</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120621990" />
  <subtitle>How to read portlet.properties file in liferay 7.2</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120621990</id>
  <updated>2026-04-06T15:00:03Z</updated>
  <dc:date>2026-04-06T15:00:03Z</dc:date>
  <entry>
    <title>How to read portlet.properties file in liferay 7.2</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120621989" />
    <author>
      <name>Nikitha cgg</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120621989</id>
    <updated>2021-02-18T14:45:23Z</updated>
    <published>2021-02-18T11:16:19Z</published>
    <summary type="html">&lt;p&gt;Hai All,&lt;/p&gt;
&lt;p&gt;I am trying to upgrade my liferay portal from 6.2 to 7.2.&lt;/p&gt;
&lt;p&gt;I upgraded using liferay upgrade planner. while deploying project i
  got below error.&lt;/p&gt;
&lt;p&gt;2021-02-18 11:04:05.915 ERROR
  [http-nio-8080-exec-9][render_portlet_jsp:131]
  null&lt;br /&gt;com.liferay.portal.kernel.exception.SystemException: The
  base properties file was not found for portlet&lt;br /&gt;    at
  com.liferay.portal.configuration.ClassLoaderAggregateProperties._addBaseFileName(ClassLoaderAggregateProperties.java:172)&lt;br /&gt;  
   at
  com.liferay.portal.configuration.ClassLoaderAggregateProperties.&amp;lt;init&amp;gt;(ClassLoaderAggregateProperties.java:69)&lt;br /&gt;  
   at
  com.liferay.portal.configuration.ClassLoaderAggregatePropertiesUtil.create(ClassLoaderAggregatePropertiesUtil.java:43)&lt;br /&gt;  
   at
  com.liferay.portal.configuration.ConfigurationImpl.&amp;lt;init&amp;gt;(ConfigurationImpl.java:79)&lt;br /&gt;  
   at
  com.liferay.portal.configuration.ConfigurationFactoryImpl.getConfiguration(ConfigurationFactoryImpl.java:36)&lt;br /&gt;  
   at com.liferay.portal.kernel.configuration.ConfigurationFactoryUtil.getConfiguration(ConfigurationFactoryUtil.java:25)&lt;/p&gt;
&lt;p&gt;I tried to read portlet.properties file by using below lines of code:&lt;/p&gt;
&lt;p&gt;Configuration portletPropertiesConfiguration =
  ConfigurationFactoryUtil.getConfiguration(
  PortalClassLoaderUtil.getClassLoader(), &amp;quot;portlet&amp;quot;);&lt;/p&gt;
&lt;p&gt;String mailSubject = ContentUtil.get(PortalClassLoaderUtil.getClassLoader(),portletPropertiesConfiguration.get(&amp;quot;properties.dbHost&amp;quot;));&lt;/p&gt;
&lt;p&gt;Please provide me info on how to resolve this issue.&lt;/p&gt;
&lt;p&gt;Thanks in advance.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</summary>
    <dc:creator>Nikitha cgg</dc:creator>
    <dc:date>2021-02-18T11:16:19Z</dc:date>
  </entry>
</feed>
