You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Specifically, Weld Servlet in org.jboss.weld.environment.deployment.discovery.AbstractDiscoveryStrategy.performDiscovery() skips scanning completely if there is no beans.xml present as per the following code:
for (ScanResultscanResult : scanner.scan()) { // scanResult is beansXmlResult reallyfinalStringref = scanResult.getBeanArchiveRef();
if (processedRefs.contains(ref)) {
throwCommonLogger.LOG.invalidScanningResult(ref);
}
CommonLogger.LOG.processingBeanArchiveReference(ref);
processedRefs.add(ref);
BeanArchiveBuilderbuilder = null;
for (BeanArchiveHandlerhandler : beanArchiveHandlers) {
builder = handler.handle(ref);
if (builder != null) {
CommonLogger.LOG.beanArchiveReferenceHandled(ref, handler);
builder.setId(scanResult.getBeanArchiveId());
builder.setBeansXml(scanResult.getBeansXml());
beanArchiveBuilders.add(builder);
break;
}
}
if (builder == null) {
CommonLogger.LOG.beanArchiveReferenceCannotBeHandled(ref, beanArchiveHandlers);
}
}
How are we supposed to pass this?
The text was updated successfully, but these errors were encountered:
The test ee.jakarta.tck.core.rest.jsonb.cdi.CustomJsonbSerializationIT in the 10.0.3 core profile TCK creates the following archive:
According to https://jakarta.ee/specifications/cdi/4.0/jakarta-cdi-spec-4.0#bean_archive the beans.xml file is required.
Specifically, Weld Servlet in
org.jboss.weld.environment.deployment.discovery.AbstractDiscoveryStrategy.performDiscovery()
skips scanning completely if there is no beans.xml present as per the following code:How are we supposed to pass this?
The text was updated successfully, but these errors were encountered: