legacy-knowledge-base
公開されました Jun. 30, 2025

com.liferay.portal.kernel.exception.LocaleException occurs during upgrade

written-by

Ally McGill

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

Issue

  • I am receiving the following locale exception error when upgrading my database: 
ERROR - Failed upgrade process for module com.liferay.layout.admin.web 
com.liferay.portal.kernel.upgrade.UpgradeException: com.liferay.portal.kernel.exception.LocaleException
...
Caused by: com.liferay.portal.kernel.exception.LocaleException

Environment

  • Liferay 7.1

Resolution

  • One of the locales used by default is not considered an "available" locale. The fix is to add to the portal-upgrade-ext.properties file the following property: 
    locales=ar_SA,eu_ES,bg_BG,ca_AD,ca_ES,zh_CN,zh_TW,hr_HR,cs_CZ,da_DK,nl_NL,nl_BE,en_US,en_GB,en_AU,et_EE,fi_FI,fr_FR,fr_CA,gl_ES,de_DE,el_GR,iw_IL,hi_IN,hu_HU,in_ID,it_IT,ja_JP,ko_KR,lo_LA,lt_LT,nb_NO,fa_IR,pl_PL,pt_BR,pt_PT,ro_RO,ru_RU,sr_RS,sr_RS_latin,sl_SI,sk_SK,es_419,es_ES,sv_SE,th_TH,tr_TR,uk_UA,vi_VN

 

 

 

did-this-article-resolve-your-issue

legacy-knowledge-base