How to read portlet.properties file in liferay 7.2How to read portlet.properties file in liferay 7.2https://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=1206219902024-03-29T11:36:41Z2024-03-29T11:36:41ZHow to read portlet.properties file in liferay 7.2Nikitha cgghttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1206219892021-02-18T14:45:23Z2021-02-18T11:16:19Z<p>Hai All,</p>
<p>I am trying to upgrade my liferay portal from 6.2 to 7.2.</p>
<p>I upgraded using liferay upgrade planner. while deploying project i
got below error.</p>
<p>2021-02-18 11:04:05.915 ERROR
[http-nio-8080-exec-9][render_portlet_jsp:131]
null<br />com.liferay.portal.kernel.exception.SystemException: The
base properties file was not found for portlet<br /> at
com.liferay.portal.configuration.ClassLoaderAggregateProperties._addBaseFileName(ClassLoaderAggregateProperties.java:172)<br />
at
com.liferay.portal.configuration.ClassLoaderAggregateProperties.<init>(ClassLoaderAggregateProperties.java:69)<br />
at
com.liferay.portal.configuration.ClassLoaderAggregatePropertiesUtil.create(ClassLoaderAggregatePropertiesUtil.java:43)<br />
at
com.liferay.portal.configuration.ConfigurationImpl.<init>(ConfigurationImpl.java:79)<br />
at
com.liferay.portal.configuration.ConfigurationFactoryImpl.getConfiguration(ConfigurationFactoryImpl.java:36)<br />
at com.liferay.portal.kernel.configuration.ConfigurationFactoryUtil.getConfiguration(ConfigurationFactoryUtil.java:25)</p>
<p>I tried to read portlet.properties file by using below lines of code:</p>
<p>Configuration portletPropertiesConfiguration =
ConfigurationFactoryUtil.getConfiguration(
PortalClassLoaderUtil.getClassLoader(), "portlet");</p>
<p>String mailSubject = ContentUtil.get(PortalClassLoaderUtil.getClassLoader(),portletPropertiesConfiguration.get("properties.dbHost"));</p>
<p>Please provide me info on how to resolve this issue.</p>
<p>Thanks in advance.</p>
<p>