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

Liferay Throws java.lang.ClassCastException: class org.apache.xerces.parsers on Login

written-by

Emma Carr-Gardner

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

  • Liferay throws a ClassCastException after upgrading, the upgrade logs show no errors. 
  • Liferay throws an error after non-graceful shutdown
ERROR [http-nio-8080-exec-8][AutoLoginFilter:247] Current URL /home generates exception: com.liferay.portal.kernel.security.auto.login.AutoLoginException: java.lang.ClassCastException: class org.apache.xerces.parsers.XIncludeAwareParserConfiguration cannot be cast to class org.apache.xerces.xni.parser.XMLParserConfiguration (org.apache.xerces.parsers.XIncludeAwareParserConfiguration is in unnamed module of loader com.liferay.shielded.container.internal.ShieldedContainerClassLoader @24fb6a80; org.apache.xerces.xni.parser.XMLParserConfiguration is in unnamed module of loader org.eclipse.osgi.internal.loader.EquinoxClassLoader @4c66592d)

 

Environment

  • Liferay DXP 2024.Q2.2

Resolution

  • To resolve this behavior, upgrade to Liferay DXP 2024.Q2.8+, or request a hotfix built on LPD-31188, if you are still within the Support Coverage window.
did-this-article-resolve-your-issue

legacy-knowledge-base