在使用oracle jdk 1.8.0_221(64Bit)运行的wildfly 13服务器上出现以下错误。 NormalizerImpl是rt.jar中的一个类,应始终可用。 因此,这不是普通的ClassNotFound。
> 2019-07-25 13:56:38,914 ERROR [io.undertow.request] (default task-20)
> UT005023: Exception handling request to
> /myServletPath:
> java.lang.NoClassDefFoundError: Could not initialize class
> sun.text.normalizer.NormalizerImpl at
> java.text.RBTableBuilder.build(RBTableBuilder.java:107) at
> java.text.RBCollationTables.(RBCollationTables.java:83) at
> java.text.RuleBasedCollator.(RuleBasedCollator.java:300) at
> java.text.RuleBasedCollator.(RuleBasedCollator.java:281) at
> sun.util.locale.provider.CollatorProviderImpl.getInstance(CollatorProviderImpl.java:106)
> at java.text.Collator.getInstance(Collator.java:242)
或类似的
java.lang.NoClassDefFoundError: Could not initialize class sun.text.normalizer.NormalizerImpl
at sun.text.normalizer.NormalizerBase.isNormalized(NormalizerBase.java:1671)
at sun.text.normalizer.NormalizerBase.isNormalized(NormalizerBase.java:1652)
at java.text.Normalizer.isNormalized(Normalizer.java:177)
我用谷歌搜索,但是在SO上没发现太多,奇怪的是什么;-)