Forums de discussion

LR 6.2 on Tomcat 8.5

Jan Tošovský, modifié il y a 7 années.

LR 6.2 on Tomcat 8.5

Liferay Master Publications: 566 Date d'inscription: 22/07/10 Publications récentes
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ý, modifié il y a 6 années.

RE: LR 6.2 on Tomcat 8.5

Liferay Master Publications: 566 Date d'inscription: 22/07/10 Publications récentes
> 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, modifié il y a 6 années.

RE: LR 6.2 on Tomcat 8.5

Liferay Legend Publications: 14917 Date d'inscription: 02/09/06 Publications récentes
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!