Closed arjantijms closed 2 weeks ago
Shouldn't this issue/challenge be under the Jakarta TCK repo instead of here?
According to https://jakarta.ee/specifications/cdi/4.0/jakarta-cdi-spec-4.0#bean_archive the beans.xml file is required.
In CDI Lite, that is correct.
How are we supposed to pass this?
I'd say add beans.xml
to the test. Is that a problem?
There's https://github.com/jakartaee/platform-tck/issues/1526 already, so it seems to me this issue should just be closed.
There's jakartaee/platform-tck#1526 already, so it seems to me this issue should just be closed.
I agree, I've added my comment there and we can continue the discussion there.
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?