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

JBoss EAP 7.3 および IBMJava を使用した Xerces での ClassCastException

written-by

Zalán Szakolci

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

問題

  • Liferay 7.3 が IBMJava を使用して JBoss EAP 7.3 にデプロイされると、起動時に次の例外がスローされ、サーバーの起動に失敗します。
ERROR [ServerService Thread Pool -- 80][ServletContextHelperFactoryImpl:93] bundle com.liferay.portal.osgi.web.servlet.context.helper.impl:3.0.8 (31)[com.liferay.portal.osgi.web.servlet.context.helper.internal.ServletContextHelperFactoryImpl(10)] : The activate method has thrown an exception
java.lang.ClassCastException: org.apache.xerces.parsers.XIncludeAwareParserConfiguration incompatible with org.apache.xerces.xni.parser.XMLParserConfiguration
at org.apache.xerces.parsers.SAXParser.<init>(Unknown Source)
at org.apache.xerces.parsers.SAXParser.<init>(Unknown Source)

Environment

  • Liferay DXP 7.3
  • JBoss Enterprise Application Platform 7.3
  • IBM Java JDK 8/11

解決策

  • 起動前に、次のプロパティを portal-ext.properties に追加します。
  • module.framework.properties.org.osgi.framework.bootdelegation=\
    __redirected,\
    com.ibm.*,\
    com.liferay.aspectj,\
    com.liferay.aspectj.*,\
    com.liferay.expando.kernel.model,\
    com.liferay.portal.servlet.delegate,\
    com.liferay.portal.servlet.delegate*,\
    com.sun.ccpp,\
    com.sun.ccpp.*,\
    com.sun.crypto.*,\
    com.sun.image.*,\
    com.sun.imageio.plugins.*,\
    com.sun.jmx.*,\
    com.sun.jna,\
    com.sun.jndi.*,\
    com.sun.mail.*,\
    com.sun.management.*,\
    com.sun.media.*,\
    com.sun.msv.*,\
    com.sun.org.*,\
    com.sun.syndication,\
    com.sun.tools.*,\
    com.sun.xml.*,\
    com.yourkit.*,\
    jdk.*,\
    sun.*,\
    org.apache.xerces.*,\
    weblogic.jndi,\
    weblogic.jndi.*

did-this-article-resolve-your-issue

legacy-knowledge-base