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:
Note the org.hibernate.proxy!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.*
Additional Information
- org.hibernate.proxy needs to be available globally for the boot delegation
Subscriber Exclusive Content
A Liferay Enterprise Subscription provides access to over 1,500 articles that include best practices, troubleshooting, and other valuable solutions. Sign in for full access.
Sign In