Foros de discusión

Jsp does not reflect changes in Liferay 7

thumbnail
pablo iglesias, modificado hace 6 años.

Jsp does not reflect changes in Liferay 7

New Member Mensajes: 9 Fecha de incorporación: 16/12/13 Mensajes recientes
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, modificado hace 6 años.

RE: Jsp does not reflect changes in Liferay 7

New Member Mensajes: 17 Fecha de incorporación: 16/02/17 Mensajes recientes
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, modificado hace 6 años.

RE: Jsp does not reflect changes in Liferay 7

New Member Mensajes: 9 Fecha de incorporación: 16/12/13 Mensajes recientes
Thanks Alexandr,

I have tried it but this is not the solution.

Regards
thumbnail
David H Nebinger, modificado hace 6 años.

RE: Jsp does not reflect changes in Liferay 7

Liferay Legend Mensajes: 14919 Fecha de incorporación: 2/09/06 Mensajes recientes
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, modificado hace 6 años.

RE: Jsp does not reflect changes in Liferay 7

New Member Mensajes: 9 Fecha de incorporación: 16/12/13 Mensajes recientes
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, modificado hace 6 años.

RE: Jsp does not reflect changes in Liferay 7

Liferay Legend Mensajes: 14919 Fecha de incorporación: 2/09/06 Mensajes recientes
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, modificado hace 6 años.

RE: Jsp does not reflect changes in Liferay 7

New Member Mensajes: 9 Fecha de incorporación: 16/12/13 Mensajes recientes
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