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

7.2 で sax パーサーをセットアップするには?

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

問題

  • system-ext.properties で SAX パーサーを設定すると、次の例外がスローされます。
  •  org.xml.sax.SAXException: SAX2 driver class com.sun.org.apache.xerces.internal.parsers.SAXParser not found_java.lang.ClassNotFoundException: com.sun.org.apache.xerces.internal.parsers.SAXParser

Environment

  • Liferay DXP 7.2
  • Liferay DXP 7.3

解決策

  • 1. SAXParser クラスは 7.2 で変更され、system-ext.properties で次のプロパティを使用する必要があります。
    org.xml.sax.driver=org.apache.xerces.parsers.SAXParser
  • 2. また、 portal-ext.properties の module.framework.properties.org.osgi.framework.bootdelegation プロパティに SAXParser のパッケージを追加する必要があります:
    module.framework.properties.org.osgi.framework.bootdelegation=\
            __redirected,\
            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.*,\
            javassist.util.proxy,\
            jdk.*,\
            org.hibernate.proxy,\
            sun.*,\
            weblogic.jndi,\
            weblogic.jndi.*,\
    	org.apache.xerces.parsers

did-this-article-resolve-your-issue

legacy-knowledge-base