legacy-knowledge-base
公開されました Sep. 10, 2025

CaptchaUtil を使用したカスタム キャプチャ検証が失敗し、「Captcha Validation Failed」というエラーが表示される

written-by

Anishq Sharma

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

問題

  • JSP ファイルに以下のコードがある場合、CaptchaUtil API を使用したカスタム キャプチャ検証が失敗し、ログに "Captcha Validation Failed" エラーが表示されます。
    <liferay-captcha:captcha url="<%= captchaResourceURL %>"/>    

Environment

  • Liferay DXP 7.3

解決策

  • Liferay DXP 7.3 から、属性 urltaglib liferay-captchaの使用に必須ではありません。 以下のように jsp コードを置き換えると、問題が修正され、キャプチャが正常に検証されます。
    <liferay-captcha:captcha />  

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base