java.lang.ClassNotFoundException: org.hibernate.proxy.HibernateProxy cannot be found when blob column is used in service builder

Issue

  • I use a blob column type in service builder. On deployment i get
    Caused by: java.lang.ClassNotFoundException: org.hibernate.proxy.HibernateProxy cannot be found

Environment

  • 7.4

Resolution

  • Add the followings to your 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.*
    Note the org.hibernate.proxy!

Additional Information

  • org.hibernate.proxy needs to be available globally for the boot delegation

 

¿Fue útil este artículo?
Usuarios a los que les pareció útil: 0 de 1