Foros de discusión

LR 6.2 on Tomcat 8.5

Jan Tošovský, modificado hace 7 años.

LR 6.2 on Tomcat 8.5

Liferay Master Mensajes: 566 Fecha de incorporación: 22/07/10 Mensajes recientes
I've tried to update tomcat from 8.0.18 to 8.5.12. I've copied a same set of libraries from original LR 6.2 distribution (especially lib/ext libraries and osgi folder in work folder) and edited catalina.properties (to lookup also for lib/ext folder).

https://dev.liferay.com/discover/deployment/-/knowledge_base/6-2/installing-liferay-on-tomcat-7

Newer tomcat seems to be stricter:
  • when scanning for TLD as missing /home/portal/tomcat-8.5.12/lib/ext/jcifs.jar is reported when processing each portlet (just WARNING level)
  • creating cookies with the leading dot, e.g. '.domain.tld' fails (I have to investigate why this dot is there)
  • new syntax error warnings in some customized JSPs (missing semicolons, missing finally statements, ...)

Has anybody encountered other issues or incompatibilities?

Thanks, Jan
Jan Tošovský, modificado hace 6 años.

RE: LR 6.2 on Tomcat 8.5

Liferay Master Mensajes: 566 Fecha de incorporación: 22/07/10 Mensajes recientes
> creating cookies with the leading dot, e.g. '.domain.tld' fails (I have to investigate why this dot is there)

That period is added by LR code, in my opinion to enable sharing setting across multiple subdomains:
https://github.com/liferay/liferay-portal/blob/master/portal-kernel/src/com/liferay/portal/kernel/util/CookieKeys.java#L199,L237

Tomcat 8.5 uses an improved Cookie processor, which rejects such cookies:
https://bz.apache.org/bugzilla/show_bug.cgi?id=59703

That cookie processor can be however replaced with the legacy one in the config http://stackoverflow.com/questions/29608550/tomcat-cookie-domain-validation
thumbnail
David H Nebinger, modificado hace 6 años.

RE: LR 6.2 on Tomcat 8.5

Liferay Legend Mensajes: 14919 Fecha de incorporación: 2/09/06 Mensajes recientes
IIRC Tomcat 8.5 is not yet supported by Liferay due to classloading and/or other issues.

I'd suggest waiting for it to be supported before jumping onboard...








Come meet me at the 2017 LSNA!