Description
Error message:
cvc-complex-type.2.4.a: Invalid content was found starting with element 'weld:scan'. One of '{"http://xmlns.jcp.org/xml/ns/javaee":interceptors, "http://xmlns.jcp.org/xml/ns/javaee":decorators, "http://xmlns.jcp.org/xml/ns/javaee":alternatives, "http://xmlns.jcp.org/xml/ns/javaee":scan, "http://xmlns.jcp.org/xml/ns/javaee":trim}' is expected.
Affected weld version details:
- Weld se version: 2.2.4.Final, 2.4.8.Final
- Weld api version: 2.2.SP3, 3.1.SP1
Additional information:
- error only appears when using CDI 2.0, older versions of CDI are working properly
- Error appears when using WildFly 16 and in several CodeReady Studio version (July/August)
- See the pom-xml.png image in the attachment to see, where the error appears