| One of bv-tck test case "org.hibernate.beanvalidation.tck.tests.integration.cdi.managedobjects" fails with ClassNotFoundException: >>>>> ####<Apr 25, 2019 10:33:41,881 AM CST> <Error> <Deployer> <xixiSun> <AdminServer> <[STANDBY] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <7633a048-787e-4315-b636-a8fa4984d7b3-00000016> <1556159621881> <[severity-value: 8] [rid: 0] [partition-id: 0] [partition-name: DOMAIN] > <BEA-149265> <Failure occurred in the execution of deployment request with ID "3607133425562" for task "0" on [partition-name: DOMAIN]. Error is: "weblogic.management.DeploymentException: CDI deployment failure:org/jboss/shrinkwrap/impl/base/URLPackageScanner$Callback" <<<<<< And as my investigation, URLPackageScanner is referred by ArchiveBuilder which is in same package, but in generated archive, there is only ArchiveBuilder.class, URLPackageScanner.class is missing. it seems AbstractTCKTest - who builds the archive, doesn't add it to archive at first place: >>>>> package org.hibernate.beanvalidation.tck.tests; ... public abstract class AbstractTCKTest extends Arquillian { protected static WebArchiveBuilder webArchiveBuilder() { WebArchiveBuilder webArchiveBuilder = new WebArchiveBuilder(); webArchiveBuilder.withClasses( ArchiveBuilder.class, WebArchiveBuilder.class, AbstractTCKTest.class, AbstractBootstrapFailureTCKTest.class, TestUtil.class, ConstraintViolationAssert.class, CollectionHelper.class, ValidationInvocationHandler.class ); <<<<< I tried to add URLPackageScanner.class to AbstractTCKTest and rebuild beanvalidation-tck-tests-2.0.4.Final.jar, then it works well, comparing test case archive before and after the change, the only different is URLPackageScanner.class: >>>>> $ jar tvf ManagedObjectsTest_ko.war | grep URLPackageScanner # before change $ jar tvf ManagedObjectsTest_ok.war | grep URLPackageScanner # after change 6964 Fri Apr 26 19:40:48 CST 2019 WEB-INF/classes/org/hibernate/beanvalidation/tck/util/shrinkwrap/URLPackageScanner.class 374 Fri Apr 26 19:40:48 CST 2019 WEB-INF/classes/org/hibernate/beanvalidation/tck/util/shrinkwrap/URLPackageScanner$Callback.class <<<<< So I think this is a bug, I will attach my changed code and those 2 archives. AbstractTCKTest.java AbstractTCKTest.java.orig ManagedObjectsTest_ko.war ManagedObjectsTest_ok.war Thanks -X.O. |