-
Bug
-
Resolution: Done
-
Major
-
35.0.0.Final
-
None
Goal is to ensure that app-client container archives do not have persistence units deployed for it when deploying on the server (said persistence units should only be deployed on app-client container).
Background:
https://github.com/scottmarlow/wildfly/tree/HHH-18901_reproducer is a reproducer for a Jakarta EE 10 Platform TCK test failure that occurs when deploying TCK test EARs that contain appclient container archives.
https://hibernate.atlassian.net/browse/HHH-18901 ("Seeing "java.lang.annotation.AnnotationFormatError: Duplicate annotation for class: interface org.hibernate.bytecode.enhance.spi.EnhancementInfo: @org.hibernate.bytecode.enhance.spi.EnhancementInfo(version="6.6.3.Final")" During WildFly TCK testing") is the underlying issue that we will address with this fix although HHH-18901 may need separate improvements.
Note that Java 25 will have an improvement via https://bugs.openjdk.org/browse/JDK-8345614 to show the classname when throwing the "java.lang.annotation.AnnotationFormatError: Duplicate annotation for class" error (just mentioning that in case others see similar problems but have no idea which actual application class is the cause).