掲示板

LR 6.2 on Tomcat 8.5

7年前 に Jan Tošovský によって更新されました。

LR 6.2 on Tomcat 8.5

Liferay Master 投稿: 566 参加年月日: 10/07/22 最新の投稿
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
6年前 に Jan Tošovský によって更新されました。

RE: LR 6.2 on Tomcat 8.5

Liferay Master 投稿: 566 参加年月日: 10/07/22 最新の投稿
> 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
6年前 に David H Nebinger によって更新されました。

RE: LR 6.2 on Tomcat 8.5

Liferay Legend 投稿: 14919 参加年月日: 06/09/02 最新の投稿
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!