legacy-knowledge-base
公開されました Jul. 2, 2025

既知の問題Tomcat 8.5でピリオド(.)で始まるURLでエラーが発生する。

written-by

Brian Suh

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

Tomcat 8.5をご利用のお客様で、URLの先頭にピリオド(.)を持つLiferayプラットフォームを設定されている場合、以下のエラーが発生する場合があります:

java.lang.IllegalArgumentException: An invalid domain [.example.com] was specified for this cookie

解決策

session.cookie.use.full.hostname=trueportal-ext.propertiesで設定してください。

session.cookie.use.full.hostname プロパティの説明は以下の通りです:

Set this to true to use the full hostname for cookie domain values. By default the domain is trimmed to use only the root domain to allow cross domain logins.
did-this-article-resolve-your-issue

legacy-knowledge-base