Foren

Jsp does not reflect changes in Liferay 7

thumbnail
pablo iglesias, geändert vor 6 Jahren.

Jsp does not reflect changes in Liferay 7

New Member Beiträge: 9 Beitrittsdatum: 16.12.13 Neueste Beiträge
Hello,
I have the problem when modifying the jsp of an MVC portlet module and deploying it to the server I do not see the changes in the jsp until I upload the version to the module or do not delete the working directory of liferay home. Anyone knows how to solve this?

Liferay dxp sp 2
CentOS 6.5 machine

Thanks and best regards
thumbnail
Alexandr Kozhin, geändert vor 6 Jahren.

RE: Jsp does not reflect changes in Liferay 7

New Member Beiträge: 17 Beitrittsdatum: 16.02.17 Neueste Beiträge
May be it's because SPA mode enabled by default in LR.
For development I suggest to disable SPA and enable development mode via portal-ext.properties

#Disable single page application mode (enabled by default)
javascript.single.page.application.enabled=false
#Development mode
include-and-override=portal-developer.properties
thumbnail
pablo iglesias, geändert vor 6 Jahren.

RE: Jsp does not reflect changes in Liferay 7

New Member Beiträge: 9 Beitrittsdatum: 16.12.13 Neueste Beiträge
Thanks Alexandr,

I have tried it but this is not the solution.

Regards
thumbnail
David H Nebinger, geändert vor 6 Jahren.

RE: Jsp does not reflect changes in Liferay 7

Liferay Legend Beiträge: 14919 Beitrittsdatum: 02.09.06 Neueste Beiträge
I have found that at times it may be necessary to purge the osgi/state and $LIFERAY_HOME/work directory in order to cause the recompile of the JSPs.








Come meet me at the 2017 LSNA!
thumbnail
pablo iglesias, geändert vor 6 Jahren.

RE: Jsp does not reflect changes in Liferay 7

New Member Beiträge: 9 Beitrittsdatum: 16.12.13 Neueste Beiträge
Thanks for answering David,

I have already deleted the work directory of liferay_home and this action makes it work and you see the changes in the jsp, but if I go back to modify the jsp, the same thing happens again. What I find strange is that in the server of a local machine (Windows) I do not pass this and if in a machine of a prepoductive environment (centOS). The two machines have the same configuration at the portal-ext.properties level. I have checked the permissions of the liferay_home directory and they are correct.

I think the solution will be to increase the module version of the Bnd each time you make a change so that they are reflected.

Greetings,
thumbnail
David H Nebinger, geändert vor 6 Jahren.

RE: Jsp does not reflect changes in Liferay 7

Liferay Legend Beiträge: 14919 Beitrittsdatum: 02.09.06 Neueste Beiträge
Make sure the two clocks are in sync. If the JSP modified time was not adjusted, the JSP compiler will not know that it needs to recompile.









Come meet me at the 2017 LSNA!
thumbnail
pablo iglesias, geändert vor 6 Jahren.

RE: Jsp does not reflect changes in Liferay 7

New Member Beiträge: 9 Beitrittsdatum: 16.12.13 Neueste Beiträge
Thanks, David,
I will reinstall the Liferay DXP on the server taking advantage of SP3. I think it is my installation problem since on all the other computers I have (windows, Mac) it works correctly.
Regards,
Paul