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
You are viewing an article from our legacy "FastTrack"
publication program, made available for informational purposes. Articles
in this program were published without a requirement for independent
editing or verification and are provided"as is" without
guarantee.
Before using any information from this article, independently verify its
suitability for your situation and project.
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)
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 ?