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

java.lang.ClassNotFoundException: サービスビルダーでblobカラムを使用する場合、org.hibernate.proxy.HibernateProxyが見つからない。

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

問題

  • サービスビルダーでblobのカラム型を使っています。 デプロイ時、以下のようになります。
    Caused by: java.lang.ClassNotFoundException: org.hibernate.proxy.HibernateProxy cannot be found

Environment

  • 7.4

解決策

  • portal-ext.propertiesに以下の項目を追加します:
    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.hibernate.proxy に注意してください!

追加情報

  • org.hibernate.proxy は、ブートデリゲーションのためにグローバルに利用できる必要があります。

did-this-article-resolve-your-issue

legacy-knowledge-base