Message Boards
LinkageError: loader constraint violation
Philipp Glatzl, modified 3 Years ago.
LinkageError: loader constraint violation
New Member Posts: 23 Join Date: 2/27/12 Recent Posts
Hi all,
im facing an issue, that when i deploy a WAR hook on a Liferay 7.3.4 GA5, that im getting the following error:
java.lang.LinkageError: loader constraint violation: loader (instance of org/eclipse/osgi/internal/loader/EquinoxClassLoader) previously initiated loading for a different type with name "javax/validation/ConstraintValidatorFactory"
I have added the library validation-api-1.1.0.Final.jar to ${lifery_home}/tomcat/lib/ext
and added the package javax.validation to the portal property module.framework.system.packages.extra
I am sure, that there is no other validation-api.jar inside the classloader hierarchy.
May you can help we, what i am doing wrong here.
Thanks & BR,
Philipp
im facing an issue, that when i deploy a WAR hook on a Liferay 7.3.4 GA5, that im getting the following error:
java.lang.LinkageError: loader constraint violation: loader (instance of org/eclipse/osgi/internal/loader/EquinoxClassLoader) previously initiated loading for a different type with name "javax/validation/ConstraintValidatorFactory"
I have added the library validation-api-1.1.0.Final.jar to ${lifery_home}/tomcat/lib/ext
and added the package javax.validation to the portal property module.framework.system.packages.extra
I am sure, that there is no other validation-api.jar inside the classloader hierarchy.
May you can help we, what i am doing wrong here.
Thanks & BR,
Philipp