In xsi:schemaLocation you reference http://java.sun.com/xml/ns/javaee/beans_1_0.xsd which does not allow any element as child of <beans>. Please use http://docs.jboss.org/cdi/beans_1_0.xsd that allows it by
<xs:any namespace="##other" processContents="lax"/>
The reference http://docs.jboss.org/weld/reference/latest/en-US/html/configure.html also suggests http://docs.jboss.org/cdi/beans_1_0.xsd.
CDI tool parses content based on xmlns="http://java.sun.com/xml/ns/javaee", ignoring suggested schema location, that is why Tree tab looks ok, but Eclipse XML validation checks xml against the provided schema and detects the error.
In xsi:schemaLocation you reference http://java.sun.com/xml/ns/javaee/beans_1_0.xsd which does not allow any element as child of <beans>. Please use http://docs.jboss.org/cdi/beans_1_0.xsd that allows it by
The reference http://docs.jboss.org/weld/reference/latest/en-US/html/configure.html also suggests http://docs.jboss.org/cdi/beans_1_0.xsd.
CDI tool parses content based on xmlns="http://java.sun.com/xml/ns/javaee", ignoring suggested schema location, that is why Tree tab looks ok, but Eclipse XML validation checks xml against the provided schema and detects the error.