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

問題

  • サービスビルダーで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 は、ブートデリゲーションのためにグローバルに利用できる必要があります。

この記事は役に立ちましたか?
1人中0人がこの記事が役に立ったと言っています